> -----Original Message----- > From: owner-postfix-us...@postfix.org [mailto:owner-postfix- > us...@postfix.org] On Behalf Of DUBOURG Kevin > Sent: 28 January 2010 13:38 > To: postfix users > Subject: Re: Filter on recipient and subject > > Hello ! > > Maildrop can routing your email with many regex and criteria. > http://www.courier-mta.org/maildrop/ > > Regards, > > On Thu, 28 Jan 2010 07:32:04 -0600, Noel Jones > wrote: > > On 1/28/2010 5:32 AM, Nick Lunt wrote: > >> Hi all, > >> > >> postfix-2.3.3-2.1.el5_2 > >> > >> If the subject does not match match /*.ABC.*/ and the recipient is > >> "f...@example.com" I want this email to be discarded. > >> > >> This is not for spam detection it's simply an organisational > >> requirement. > >> > >> Does anyone have a method to achieve this ? > >> > >> Many thanks > >> Nick. > >> > > > > This requires a content_filter or milter that can compare both > > the subject and the envelope recipient. > > > > Probably SpamAssassin with some custom rules would be the > > easiest (or maybe regexp-milter if it can compare multiple > > items -- don't know, I don't use it). > > > > -- Noel Jones
Thanks for the pointer. I ended up using dovecot-sieve to simply discard the unwanted messages addressed to that particular sender. Nick. __________ Information from ESET NOD32 Antivirus, version of virus signature database 4816 (20100128) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com