OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Regexp for blocking dynamic hosts?

From: Patrick Lists (postfix-listpuzzled.xs4all.nl)
Date: Mon Aug 30 2010 - 18:00:25 CDT


On 08/31/2010 12:40 AM, Stan Hoeppner wrote:
[snip]
>
> /^[12]?[0-9]{1,2}(-[12]?[0-9]{1,2}){3}\.(customer|dsl|dial-up)\.telesp\.net\.br$/
> REJECT Generic - Please relay via ISP (telesp.net.br)
>
> That's all one line, TB wrapped it. You may as well just use this.
> Over 1600 regex patterns matching generic dynamics and statics. Rejects
> all generic dynamics, tags generic statics. Provided with no
> warranties, use at your own risk, etc. Has worked well here.
>
> http://www.hardwarefreak.com/fqrdns.regexp
>
> Use in main.cf as:
>
> check_client_access regexp:/etc/postfix/fqrdns.regexp

Thanks Stan. Much appreciated.

Regards,
Patrick