OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: I need some help with postfix

From: /dev/rob0 (rob0gmx.co.uk)
Date: Mon Oct 24 2005 - 15:21:59 CDT


On Wednesday 2005-October-19 19:50, Jorey Bump wrote:
> check_helo_access pcre:/etc/postfix/helo
>
> Contents of /etc/postfix/helo, assuming you own example.net &
> example.com:
>
> /^example\.(com|net)$/ REJECT Unauthorized use of hostname in helo

You should know that no one can post a regexp/pcre without someone
taking issue with it. ;)

I would do this:
/[\.^]example\.(com|net)$/ REJECT Unauthorised use of domain in HELO

because you would also want to block subdomains and other hostnames,
not just the parent domain. I don't think this rule catches much spam
overall, however; the server's IP is the most common single bad HELO.
--
    mail to this address is discarded unless "/dev/rob0"
    or "not-spam" is in Subject: header