< Home

send-mail sender filter-mode

Function

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

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

Format

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

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

The default action is block.

Example

# Allow email to be sent from the specified sender only.

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