Technical Tip: Mark as Spam and discard SPAM Email of a specific domain using AntiSpam profile and Regular Expression on FortiGate
| Description | This article demonstrates the use of regular expression on FortiGate to mark an email sourced from a specific domain as spam with email filter block-allow-list. |
| Scope | FortiGate. |
| Solution | The block-allow-list in the email filter can mark a domain as spam and also can clear and pass the domain without tagging as spam. The configuration sample is showed here:
config emailfilter block-allow-list
edit email_filter config smtp
Note: The action discard is only available for the SMTP and not for other protocols.
Apply this antispam profile to a PROXY-BASED Firewall policy. As of v7.2.0, new filter types {ip | email-to | email-from | subject} are currently not supported in flow inspection mode.
Administrators should be careful about FortiOS downgrading plan can make the 'email-to', 'email-from', and 'subject' entries and fields can be lost from the configuration. For more information about the block-allow-list feature on FortiGate, refer to: |