1

Topic: Block email based on Subject Line

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: CentOS 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? Yes
- Related log if you're reporting an issue:
====

If possible I like to block any incoming email with an exact match of words on the subject line  that contains "match these words". It would be nice if it can be done at a mailbox level, if not I am OK with doing it server wide. I don't want to block the sender as this sender is safe and already in the whitelist. I just need to block some specific email (subject line) sent by their automated system. Any idea?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Block email based on Subject Line

For server-wide header checking, you need Postfix parameter header_checks:
http://www.postfix.org/header_checks.5.html