< Home

send-mail receiver filter-mode

Function

The send-mail receiver filter-mode command configures the action to take on an email that matches the mail address check condition when receiver-address-based mail filtering in the sending direction is configured.

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

Format

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

undo send-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 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 SMTP, the FW performs filtering on the email in the sending direction. Both the sender address and receiver addresses of the email can be used as the filtering condition. You can use the send-mail receiver filter-mode command to configure the action to take on an email that matches the mail address check condition when receiver-address-based mail filtering in the sending direction is configured.

The default filtering action is block.

Example

# Allow email to be sent to the specified receiver only.

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