< Home

recv-mail attachment max-amount action

Function

The recv-mail attachment max-amount action command sets the maximum number of attachments allowed in a received email and configures the action for the email if the attachments exceed the specified limit.

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

Format

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

undo recv-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 POP3 or IMAP, the FW performs filtering on the email by size and number of attachments in the receiving direction.

Limiting the number of attachments in the receiving direction prevents the transmission of undesired information, such as gambling and pornographic information on the intranet.

The recv-mail attachment max-amount action command sets the maximum number of attachments allowed in a received email and configures the action for those exceeding the specified limit.

Example

# Set the maximum allowed number of attachments in a received email to 5 and the action for the email with more than 5 attachments to block.

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