Hi,

I get mails from addresses like these.

Pls pay attention to the *username* part before *@ sign.*

the string* bounce* is present somewhere *before @  sign. *


*bounce*@anydomain.com
list*bounce*[email protected]
list*bounce*[email protected]
*bounce*[email protected]
*bounce*[email protected]
*bounce*[email protected]
*bounce*[email protected]
ml-*bounce*[email protected]
ab-*bounce*[email protected]


I want to block these email address with spam assassin.

I wrote a *from.cf <http://from.cf>* file to match these?


header FROM_BOUNCE From:addr =~* /(bounce)/i*
describe FROM_BOUNCE From address contain the word bounce
score FROM_BOUNCE 3.1

it matches the word *bounce *any where* before and after @ sign.*

e.g -

ml-*bounce*-newsletter@*bounce*.anydomain.com

So, it is NOT the regex I expect since I *DO NOT* want to filter
anything *after
@* sign.

So I am trying like this. But it still does NOT work.

*(bounce)\@* instead of* /(bounce)/i*

header FROM_BOUNCE From:addr =~ */(bounce)\@/i*
describe FROM_BOUNCE From address contain the word bounce and bounces
score FROM_BOUNCE 3.1


I go  to below site and see whether it matches.

https://regex101.com/

it does NOT matches.

Can you guys make any comments on this?



-
cat /etc/motd

Thank you
Indunil Jayasooriya
http://www.theravadanet.net/
http://www.siyabas.lk/sinhala_how_to_install.html   -  Download Sinhala
Fonts

Reply via email to