On Fri, 2011-05-06 at 17:53:13 -0500, CT wrote:

> Question on main.cf
> 
> mynetworks = hash:/etc/postfix/network_table
> 
> After much looking and I surmise the format should be
> 192.168.1.2 OK   (a space between IP and "OK")
> "should work"..

In this context, Postfix only cares if the lookup succeeds; the result
(whether it's OK, or anything else) is ignored.

> and that CIDR
> 192.168.1.0/24 OK   (a space between IP and "OK")
> does not work.

If you wish to use CIDR, then use cidr: instead of hash:.

> In my test  the "single IP" did not work either..
> 
> May  6 17:30:03 mailhost postfix/smtpd[30135]: NOQUEUE: reject: RCPT
> from host.example.com [162.198.1.2]: 554 5.7.1 <u...@example.com>:
> Relay access denied;

192.168.1.2 != 162.198.1.2.  For more help, please consult the
DEBUG_README before your next post to this mailing list.

-- 
Sahil Tandon <sa...@freebsd.org>

Reply via email to