< Home

send-mail attachment max-amount action

Function

The send-mail attachment max-amount action command sets the maximum number of attachments allowed in an email to be sent and configures the action to take if the attachments exceed the allowed limit.

The undo send-mail attachment max-amount command restores the default configuration.

Format

send-mail attachment max-amount max-amount action { alert | block }

undo send-mail attachment max-amount

Parameters

Parameter Description Value
max-amount max-amount Specifies the maximum allowed number of attachments in an email. The value is an integer ranging from 0 to 10. The default value is 10.
action Indicates the action for an email whose attachments exceed the allowed limit.

alert: The FW permits the email and generates a log.

block: The FW blocks the email.

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 by size and number of attachments in the sending direction.

Mail attachment control controls the size and number of attachments to prevent information leaks.

The send-mail attachment max-amount action command sets the maximum number of attachments allowed in an email to be sent and configures the action to take if the attachments exceed the allowed limit.

Example

# Set the maximum allowed number of attachments in an email to be sent to 5 and the filtering action to block if the attachments exceed 5.

<sysname> system-view
[sysname] profile type mail-filter name abc
[sysname-profile-mail-filter-abc] send-mail attachment max-amount 5 action block
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >