< Home

imap-detect

Function

The imap-detect command enables antivirus (AV) scanning for the files transmitted using IMAP.

The undo imap-detect command disables AV scanning for the files transmitted using IMAP.

Format

imap-detect direction { both | download | upload } [ action { alert | declare | delete-attachment } ]

undo imap-detect [ direction ] [ action ]

Parameters

Parameter Description Value

direction { both | download | upload }

Specifies the transmission direction of the files requiring AV scanning.

The direction can be one of the following:
  • both:

    The system detects viruses on both uploaded and downloaded files.

  • download:

    The system detects viruses on downloaded files.

  • upload:

    The system detects viruses on uploaded files.

action { alert | declare | delete-attachment }

Specifies the response action.

The response action can be either of the following (the default action is alert):
  • alert:

    The system permits files and generates logs.

  • declare:

    The system permits files, add declarations to the email bodies, and generates logs.

  • delete-attachment:

    The system deletes the email attachments, add declarations to the email bodies, and generates logs.

Views

Antivirus profile view

Default Level

2: Configuration level

Usage Guidelines

By default, the system scans viruses on files both uploaded and downloaded using IMAP.

If no response action is configured, the default action alert takes effect.

The client/server type of protocols supported by the AV function also applies to the direction.
  • Upload: The file is sent from a client to a server.
  • Download: The file is sent from a server to a client.

Connections are generally initiated by a client. To ensure that connections can be established and the AV process can be implemented successfully, configure the zone of the client as the source and that of the server as the destination when you configure the security policy.

Example

# Create profile av_imap, configure AV scanning on files both uploaded and downloaded using IMAP, and set the response action to declare.
<sysname> system-view
[sysname] profile type av name av_imap
[sysname-profile-av-av_imap] imap-detect direction both action declare
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >