[pfx] Re: Block based on subject and rcpt to

2023-08-15 Thread Bill Cole via Postfix-users
On 2023-08-14 at 15:13:54 UTC-0400 (Mon, 14 Aug 2023 16:13:54 -0300) SysAdmin EM via Postfix-users 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

[pfx] Re: Block based on subject and rcpt to

2023-08-14 Thread Viktor Dukhovni via Postfix-users
On Mon, Aug 14, 2023 at 04:13:54PM -0300, SysAdmin EM via Postfix-users wrote: > 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 Note that "the destination

[pfx] Re: Block based on subject and rcpt to

2023-08-14 Thread postfix--- via Postfix-users
Hi, Is it possible to discard an email based on the Subject and the destination email address? /^Subject:.*Test email subject .*To:.*m...@me.com/ DISCARD The postfix filters only work on one header at a time. You can not put conditions for multiple headers. As already suggested, a milter wou

[pfx] Re: Block based on subject and rcpt to

2023-08-14 Thread Noel Jones via Postfix-users
On 8/14/2023 2:13 PM, SysAdmin EM via Postfix-users wrote: 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'll need a mil