<div dir="ltr"><div><br></div><div>Hi, <br><br></div><div>I get mails from addresses like these. <br><br></div><div>Pls pay attention to the <b>username</b> part before <b>@ sign.</b><br><br></div><div>the string<b> bounce</b> is present somewhere <b>before @ sign. </b><br><br></div><div><br><b>bounce</b>@<a href="http://anydomain.com">anydomain.com</a><br>list<b>bounce</b><a href="mailto:s@anydoamin.com">s@anydoamin.com</a><br>list<b>bounce</b><a href="mailto:s-myword@anydoamin.com">s-myword@anydoamin.com</a><br><b>bounce</b><a href="mailto:r@me-ss2-qaesx6.domain.com">r@me-ss2-qaesx6.domain.com</a><br><b>bounce</b>-<a href="mailto:684_HTML-239103804-572627-1363516-4539@rock.info.domain.com">684_HTML-239103804-572627-1363516-4539@rock.info.domain.com</a><br><b>bounce</b>-<a href="mailto:7071912-884185899@sub.domain.com">7071912-884185899@sub.domain.com</a><br><b>bounce</b>s+1501722-c815-sam=<a href="mailto:mydomain.com@mail.123xyz.com">mydomain.com@mail.123xyz.com</a><br>ml-<b>bounce</b>-<a href="mailto:newsletter@anydomain.com">newsletter@anydomain.com</a> <br>ab-<b>bounce</b><a href="mailto:s-newsletter@anydomain.com">s-newsletter@anydomain.com</a> <br><br><br></div><div>I want to block these email address with spam assassin. <br><br></div><div>I wrote a <b><a href="http://from.cf">from.cf</a></b> file to match these? <br><br></div><div><br>header FROM_BOUNCE From:addr =~<b> /(bounce)/i</b><br>describe FROM_BOUNCE From address contain the word bounce<br>score FROM_BOUNCE 3.1<br><br></div><div>it matches the word <b>bounce </b>any where<b> before and after @ sign.</b><br><br></div><div>e.g - <br><br>ml-<b>bounce</b>-newsletter@<b>bounce</b>.<a href="http://anydomain.com">anydomain.com</a><br><br></div><div>So, it is NOT the regex I expect since I <b>DO NOT</b> want to filter anything <b>after @</b> sign.<br></div><div><br></div><div>So I am trying like this. But it still does NOT work. <br><br><b>(bounce)\@</b> instead of<b> /(bounce)/i</b><br><br>header FROM_BOUNCE From:addr =~ <b>/(bounce)\@/i</b><br>describe FROM_BOUNCE From address contain the word bounce and bounces<br>score FROM_BOUNCE 3.1<br><br> <br>I go to below site and see whether it matches. <br><br><a href="https://regex101.com/">https://regex101.com/</a><br><br></div><div>it does NOT matches. <br><br></div><div>Can you guys make any comments on this? <br></div><div><br><br></div><div><br></div>- <div><div class="gmail_signature"><div dir="ltr">cat /etc/motd<br><br>Thank you<br>Indunil Jayasooriya <br><a href="http://www.theravadanet.net/" target="_blank">http://www.theravadanet.net/</a><br><a href="http://www.siyabas.lk/sinhala_how_to_install.html" target="_blank">http://www.siyabas.lk/sinhala_how_to_install.html</a> - Download Sinhala Fonts<br><br></div></div>
</div></div>