Chapter 15 Unified Threat Management for FortiOS 5.0 : Email filter : Email filter examples : Configuring simple antispam protection : Selecting the email filter profile in a security policy
  
Selecting the email filter profile in a security policy
An email filter profile directs the FortiGate unit to scan network traffic only when it is selected in a security policy. When an email filter profile is selected in a security policy, its settings are applied to all the traffic the security policy handles.
To select the email filter profile in a security policy — web-based manager
1. Go to Policy > Policy > Policy.
2. Create a new or edit a policy.
3. Turn on email filtering.
4. Select the basic_emailfilter profile from the list.
5. Select OK to save the security policy.
To select the email filter profile in a security policy — CLI
config firewall policy
edit 1
set utm-status enable
set profile-protocol-options default
set spamfilter-profile basic_emailfilter
end
IMAP, POP3, and SMTP email traffic handled by the security policy you modified will be scanned for spam. Spam messages have the text “Spam” added to their subject lines. A small office may have only one security policy configured. If you have multiple policies, consider enabling spam scanning for all of them.