< Home

recv-mail receiver filter-mode

Function

The recv-mail receiver filter-mode command configures the action for emails that match the mail address check conditions when receiver-address-based mail filtering in the receiving direction is configured.

The undo recv-mail receiver filter-mode command restores the default configuration.

Format

recv-mail receiver filter-mode { allow | block }

undo recv-mail receiver filter-mode

Parameters

Parameter Description Value
allow

Permits the email if the receiver address matches the filtering condition.

For example, if the receiver address john@example.com matches the filtering condition, the FW permits the email. All emails that do not match the filtering condition are blocked.

-

block

Blocks the email if the receiver address matches the filtering condition.

For example, if the receiver address john@example.com and matches the filtering condition, the FW blocks the email. All emails that do not match the filtering condition are permitted.

-

Views

Mail filtering profile view

Default Level

2: Configuration level

Usage Guidelines

Upon detecting an email encapsulated in POP3 or IMAP, the FW checks the address of the email. Both the sender address and receiver address of the email can be used as the filtering condition. You can use the recv-mail receiver filter-mode command to configure the action for emails that match the mail address check condition when receiver-address-based mail filtering in the receiving direction is configured.

The default filtering action is block.

  • You can repeat the recv-mail receiver filter-mode command to reference multiple mail address groups in the same mail filtering profile.

  • For intranet users who download emails through POP3 or IMAP, you can set the filtering action to allow or block.

Example

# Allow emails to be received by the specified receiver only.

<sysname> system-view
[sysname] profile type mail-filter name abc
[sysname-profile-mail-filter-abc] recv-mail receiver filter-mode allow
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >