Re: Fwd: Can Amavisd block based on Message-ID ?

2016-09-21 Thread Indunil Jayasooriya
On Mon, Sep 19, 2016 at 8:37 AM, Indunil Jayasooriya wrote: > >> > >> > I want to know if amavisd-new can bock mails based on Message-ID:, when >> it >> > has a particular PATTERN? >> >> You can do that in the MTA. In Postfix this would be in header_checks: >> >> thanks for the answer. it i

Re: Fwd: Can Amavisd block based on Message-ID ?

2016-09-21 Thread Indunil Jayasooriya
> > > > > > I want to know if amavisd-new can bock mails based on Message-ID:, when > it > > has a particular PATTERN? > > You can do that in the MTA. In Postfix this would be in header_checks: > > thanks for the answer. it is something I never thought of. > > > > > I get mails whose Mess

Re: Fwd: Can Amavisd block based on Message-ID ?

2016-09-20 Thread Benny Pedersen
On 2016-09-15 05:11, Indunil Jayasooriya wrote: Message-ID: c4aaf04e-24c231f0-12bb-1f68-clmthigeer-PC-EXC02.Fanex-us.local Now we can see every mail shares the string clmthigeer-PC-EXC02.Fanex-us.local and ? Can I have a Regex to block it in amavisd-new? sure, define the invalid part firs

Re: Fwd: Can Amavisd block based on Message-ID ?

2016-09-18 Thread Ralf Hildebrandt
* Indunil Jayasooriya : > Hi list, > > > I want to know if amavisd-new can bock mails based on Message-ID:, when it > has a particular PATTERN? You can do that in the MTA. In Postfix this would be in header_checks: > > I get mails whose Message-ID s are like these? > > > Message-ID: 861dfa6

Re: Fwd: Can Amavisd block based on Message-ID ?

2016-09-16 Thread Dino
Well, you can create rules in spamassassin not amavis as far as I know. However, creating rules based on Message-ID is generally a bad idea because you will might get false pasitives. If you are still insisting to filter on Message-ID, insert something like below in your spamassassin local.cf f