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*s...@anydoamin.com
list*bounce*s-myw...@anydoamin.com
*bounce*r...@me-ss2-qaesx6.domain.com
*bounce*-684_html-239103804-572627-1363516-4...@rock.info.domain.com
*bounce*-7071912-884185...@sub.domain.com
*bounce*s+1501722-c815-sam=mydomain....@mail.123xyz.com
ml-*bounce*-newslet...@anydomain.com
ab-*bounce*s-newslet...@anydomain.com


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