Fortinet Document Library

Version:

Version:

Version:

Version:

Version:

Version:

Version:


Table of Contents

CLI Reference

archive policy

Use this command to configure email archiving policies.

This command applies only if email archiving is enabled.

Syntax

config archive policy

edit <policy_id>

set account <account_name>

set pattern <string>

set status {enable | disable}

set type {attachment | body | recipient | sender | subject}

end

Variable

Description

Default

<policy_id>

Enter the index number of the policy.

To view a list of existing entries, enter a question mark ( ? ).

account <account_name>

Enter the name of the email archive account where you want to archive email.

 

pattern <string>

Enter a pattern, such as user*@example.com, that matches the attachment file name, text in the email body, text in the email subject, sender or recipient email addresses to which this policy will apply.

*

status {enable | disable}

Enable to activate the email archiving policy.

 

disable

type {attachment | body | recipient | sender | subject}

Enter one of the following match types:

attachment: The attachment file name will be evaluated for matches with pattern.

body: The body text will be evaluated for matches with pattern.

recipient: The recipient email address will be evaluated for matches with pattern.

sender: The sender email address will be evaluated for matches with pattern.

subject: The email subject will be evaluated for matches with pattern.

sender

Related topics

archive exempt-policy

antispam url-fgas-exempt-list

archive policy

Use this command to configure email archiving policies.

This command applies only if email archiving is enabled.

Syntax

config archive policy

edit <policy_id>

set account <account_name>

set pattern <string>

set status {enable | disable}

set type {attachment | body | recipient | sender | subject}

end

Variable

Description

Default

<policy_id>

Enter the index number of the policy.

To view a list of existing entries, enter a question mark ( ? ).

account <account_name>

Enter the name of the email archive account where you want to archive email.

 

pattern <string>

Enter a pattern, such as user*@example.com, that matches the attachment file name, text in the email body, text in the email subject, sender or recipient email addresses to which this policy will apply.

*

status {enable | disable}

Enable to activate the email archiving policy.

 

disable

type {attachment | body | recipient | sender | subject}

Enter one of the following match types:

attachment: The attachment file name will be evaluated for matches with pattern.

body: The body text will be evaluated for matches with pattern.

recipient: The recipient email address will be evaluated for matches with pattern.

sender: The sender email address will be evaluated for matches with pattern.

subject: The email subject will be evaluated for matches with pattern.

sender

Related topics

archive exempt-policy

antispam url-fgas-exempt-list