add the regex to spamassassin
I have alreday added in this way
cat /etc/mail/spamassassin/SPAM_19Sep2016_Message_ID_1.cf
header SPAM19SepMID1 Message-ID =~ /(fanex-us\.local)\b/i
describe SPAM19SepMID1 Message-ID header matches the above pattern
score SPAM19SepMID1 5
--
cat /etc/motd
T
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
>
>
> >
> > 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
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
* 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
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
Hi list,
I want to know if amavisd-new can bock mails based on Message-ID:, when it
has a particular PATTERN?
I get mails whose Message-ID s are like these?
Message-ID: 861dfa65-7e64a83d-4434-525d-clmthigeer-PC-EXC02.Fanex-us.local
Message-ID: fe8e9914-909f386c-dd43-fa1c-clmthigeer-PC-EXC02.