policy recipient
Use this command to create recipient-based policies based on the inbound or outbound directionality of an email message with respect to the protected domain.
Syntax
config policy recipient
edit <policy_int>
set direction {incoming | outgoing}
set recipient-name <local-part_str>
set recipient-domain <domain_str>
set recipient-email-address-group <group_name>
set profile-ldap-recipient <ldap-profile_name>
set recipient-regex <recipient_pattern>
set recipient-exclusion-status {enable | disable}
set recipient-exclusion-type {email-address-group | user-regex | user-wildcard}
set recipient-exclusion-email-address-group <group_name>
set recipient-exclusion-name <local-part-str>
set recipient-exclusion-domain <domain-part_str>
set recipient-exclusion-regex <exclusion_pattern>
set sender-name <local-part_str>
set sender-domain <domain_str>
set sender-email-address-group <group_name>
set profile-ldap-sender <ldap-profile_name>
set sender-regex <sender_pattern>
set smtp-diff-identity {enable | disable}
set smtp-diff-identity-ldap {enable | disable}
set smtp-diff-identity-ldap-profile <profile_name>
set auth-access-options {pop3 | smtp-auth | smtp-diff-identity | web}
set pkiauth {enable | disable}
set certificate-required {yes | no}
set profile-auth-type {imap | ldap | local | none | pop3 | radius | smtp}
set profile-antispam <antispam-profile_name>
set profile-antivirus <antivirus-profile_name>
set profile-content <content-profile_name>
set profile-dlp <profile_name>
set profile-resource <profile_name>
end
Variable |
Description |
Default |
Enter the index number of the recipient-based policy. |
|
|
auth-access-options {pop3 | smtp-auth | smtp-diff-identity | web} |
Enter the method that email users matching this policy use to retrieve the contents of their per-recipient spam quarantine.
Note: Entering this option allows, but does not require, SMTP authentication. To enforce SMTP authentication for connecting SMTP clients, ensure that all access control rules require authentication. |
|
If the email user’s web browser does not provide a valid personal certificate, the FortiMail unit will fall back to standard user name and password-style authentication. To require valid certificates only and disallow password-style fallback, enter This setting only applies if pkiauth {enable | disable} is |
no |
|
Enter a comment or description. |
|
|
Select the direction of email traffic that this policy matches. |
incoming |
|
Enable if you want to allow email users to log in to their per-recipient spam quarantine by presenting a certificate rather than a user name and password. Also configure pkiuser <user_str> and |
disable |
|
Enter the name of a PKI user, such as This setting only applies if pkiauth {enable | disable} is |
|
|
Enter the name of an antispam profile, if any, that this policy will apply. |
|
|
Enter the name of an antivirus profile, if any, that this policy will apply. |
|
|
profile-auth-type {imap | ldap | local | none | pop3 | radius | smtp} |
Enter the type of the authentication profile that this policy will apply. Depending on the type that you select, also configure profile-auth-imap <profile_name> etc. |
none |
Select the name of a profile to use for authentication. This setting is available only if profile-auth-type {imap | ldap | local | none | pop3 | radius | smtp} is |
|
|
Select the name of a profile to use for authentication. This setting is available only if profile-auth-type {imap | ldap | local | none | pop3 | radius | smtp} is |
|
|
Select the name of a profile to use for authentication. This setting is available only if profile-auth-type {imap | ldap | local | none | pop3 | radius | smtp} is |
|
|
Select the name of a profile to use for authentication. This setting is available only if profile-auth-type {imap | ldap | local | none | pop3 | radius | smtp} is |
|
|
Select the name of a profile to use for authentication. This setting is available only if profile-auth-type {imap | ldap | local | none | pop3 | radius | smtp} is |
|
|
Enter the name of the DLP profile that you want to apply to connections matching the policy. |
|
|
Enter the name of the content profile that you want to apply to connections matching the policy. |
|
|
Enter the name of the resource profile that you want to apply to connections matching the policy. |
|
|
If recipient-type {email-user-group | import-group | import-user | ldap-group | user-regex | user-wildcard} is |
|
|
If sender-type {email-user-group | import-group | import-user | ldap-group | user-regex | user-wildcard} is |
|
|
Enter the domain name of recipient email addresses that match this policy. |
|
|
Enter the group of recipient email addresses. This setting is available only if recipient-type {email-user-group | import-group | import-user | ldap-group | user-regex | user-wildcard} is |
|
|
Enter the domain name of recipient email addresses that you want to exclude. This setting is available only if recipient-exclusion-type {email-address-group | user-regex | user-wildcard} is |
* |
|
Select a group of email addresses you want to exclude. This setting is available only if recipient-exclusion-type {email-address-group | user-regex | user-wildcard} is |
|
|
Enter the local part (username) of recipient email addresses that you want to exclude. This setting is available only if recipient-exclusion-type {email-address-group | user-regex | user-wildcard} is |
* |
|
Enter a regular expression that matches only recipient email addresses that you want to exclude. This setting is available only if recipient-exclusion-type {email-address-group | user-regex | user-wildcard} is |
|
|
Enable if you want to exclude some recipient email addresses from matching this policy. |
disable |
|
recipient-exclusion-type {email-address-group | user-regex | user-wildcard} |
Select how you want to define excluded recipient email addresses. Depending on which you select, also configure recipient-exclusion-name <local-part-str> etc. This setting is available only if recipient-exclusion-status {enable | disable} is |
user-wildcard |
Enter the local part (username) of recipient email addresses that match this policy. |
|
|
Enter a regular expression that matches only the recipient email addresses that should match this policy. This setting is only available when recipient-type {email-user-group | import-group | import-user | ldap-group | user-regex | user-wildcard} is |
.* |
|
recipient-type {email-user-group | import-group | import-user | ldap-group | user-regex | user-wildcard} |
Enter one of the following ways to define recipient ( Depending on which you select, also configure profile-ldap-recipient <ldap-profile_name>, recipient-regex <recipient_pattern>, etc. |
user |
Enter the domain name of sender email addresses that match this policy. This setting is available only if sender-type {email-user-group | import-group | import-user | ldap-group | user-regex | user-wildcard} is |
|
|
Enter the group of sender email addresses. This setting is available only if sender-type {email-user-group | import-group | import-user | ldap-group | user-regex | user-wildcard} is |
|
|
Enter the local part (username) of sender email addresses that match this policy. This setting is available only if sender-type {email-user-group | import-group | import-user | ldap-group | user-regex | user-wildcard} is |
|
|
Enter a regular expression that matches only the sender email addresses that should match this policy. This setting is only available when sender-type {email-user-group | import-group | import-user | ldap-group | user-regex | user-wildcard} is |
.* |
|
sender-type {email-user-group | import-group | import-user | ldap-group | user-regex | user-wildcard} |
Select how to define sender ( Depending on which you select, also configure profile-ldap-sender <ldap-profile_name>, sender-regex <sender_pattern>, etc. |
user |
Enable to allow the SMTP client to send email using a different sender email address ( Disable to require that the sender email address in the SMTP envelope match the authenticated user name. This setting is applicable only if |
enable |
|
Enable to allow the SMTP client to verify SMTP sender identity with LDAP for authenticated email. This setting is applicable only if |
disable |
|
Enter the LDAP profile name for SMTP sender identity verification. This setting is applicable only if |
|
|
Enable to apply this policy. |
enable |