< Home

recv-mail attachment max-size action

Function

The recv-mail attachment max-size action command sets the maximum attachment size allowed in a received email and configures the action for the email if the attachment size exceeds the allowed limit.

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

Format

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

undo recv-mail attachment max-size

Parameters

Parameter Description Value
max-size max-size Specifies the maximum allowed attachment size. The value is an integer ranging from 1 to 20480, in KB. The default value is 20480.
action Indicates the action to take when the size of a single email attachment exceeds 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 size of received emails prevents the transmission of undesired information, such as gambling and pornographic information on the intranet.

The recv-mail attachment max-size action command sets the maximum attachment size allowed in a received email and configures the action for the email if the attachment size exceeds the allowed limit.

The maximum size applies to a single attachment.

Example

# Set the maximum allowed size of a single attachment in an email to 1000 KB.

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