Re: spam assassin rule to block a From address

2016-10-12 Thread Maurizio Poli
Hi I'm sorry for my poor english... are you for usage of '^' ? because the string not start with sender address, you can try withou it. Can you post to us a source code of spam mail? Maurizio Dear list, I get mails from below FROM address. airecom612+97d7d60a91d9695c9a4240f92d5c3...@holis

Re: spam assassin rule to block a From address

2016-10-12 Thread Maurizio Poli
I think that the parenthesis are not necessary and the @ must be escaped ^.*airecom612\+97d7d60a91d9695c9a4240f92d5c3cae\@ for check on https://regex101.com you can try the regex on complete mail source code like this: .. .. X-Received: by 10.194.204.198 with SMTP id la6mr8163648wjc.

Re: spam assassin rule to block a From address

2016-10-12 Thread Indunil Jayasooriya
> > are you for usage of '^' ? because the string not start with sender > address, you can try withou it. > ^ - start matching from the beginning of the string in regex anyway, without it, I can try. here's my new file ( without ^ ) my /etc/mail/spamassassin/SPAM_11Oct2016_From_1.cf file he

Re: spam assassin rule to block a From address

2016-10-12 Thread Indunil Jayasooriya
> > I think that the parenthesis are not necessary and the @ must be escaped I sometimes use brackets to filter Subject (some times multiple Subjects). They work. see one rule I use below . It is for Subject with brackets. Not for From address file /etc/mail/spamassassin/SPAM_12AUG2016_Sub