On 2023-08-14 at 15:13:54 UTC-0400 (Mon, 14 Aug 2023 16:13:54 -0300)
SysAdmin EM via Postfix-users <emaw...@gmail.com>
is rumored to have said:

Hi, Is it possible to discard an email based on the Subject and the
destination email address?

I try this and not work:

/^Subject:.*Test email subject .*To:.*m...@me.com/ DISCARD

Any helps?

You cannot do this within Postfix proper. You need a content filter, SMTP proxy filter, or milter to examine multiple headers together. You could also deliver to a program like procmail (e.g. via ~/.forward) or a Sieve filter (e.g. via Dovecot with it's Sieve plugin) and handle disposition of such messages there.


--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to