< Home

recv-mail sender filter-mode

Function

The recv-mail sender filter-mode command configures the action for email that matches the mail address check condition when sender-address-based mail filtering in the receiving direction is configured.

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

Format

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

undo recv-mail sender filter-mode

Parameters

Parameter Description Value
allow

Permits the email when the sender address matches the filtering condition.

For example, if the sender 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 when the sender address matches the filtering condition.

For example, if the sender address john@example.com 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 sender filter-mode command to configure the action for emails that match the mail address check condition when sender-address-based mail filtering in the receiving direction is configured.

The default action is block.

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 from only the specified sender.

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