OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Deny one IP address that falls under mynetworks

From: Eray Aslan (eray.aslancaf.com.tr)
Date: Tue Jun 19 2007 - 02:47:04 CDT


On 19.06.2007 10:37, Neil Wilson wrote:
> How can I just deny the one ip(192.168.0.8) to stop this server acting
> as an open relay?
>
> Everything I've tried so far seems to be getting overridden by the fact
> that the ip falls under the "mynetworks" range.

/etc/postfix/main.cf:
        myneworks = 127.0.0.0/8 !192.168.0.8 192.168.0.0/24

http://www.postfix.org/postconf.5.html#mynetworks

This is a FAQ.

--
Eray