OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: mynetworks not even works if i store address in file

From: Patrick Ben Koetter (pstate-of-mind.de)
Date: Tue Jun 06 2006 - 03:51:33 CDT


* Arya, Manish Kumar <m.aryayahoo.com>:
> Hi,
>
> Now I have tired to store mynetwork address in
> /etc/postfix/mynetworks file but...
>
> NOT WORKS if i add n/w in file
>
> rootbh1:/etc/postfix# cat mynetworks
> 10.44.85.23 OK
> 10.44.85.0/24 OK
> 192.168.1.1/24 OK

CIDR-notation requires a CIDR-map type. You probably use the default (hash)
map type that doesn't support CIDR-notation.

prick

>
> rootbh1:/etc/postfix# /opt/postfix-2.2.9/bin/postmap
> -q 192.168.1.2 /etc/postfix/mynetworks
> rootbh1:/etc/postfix#
>
> 192.168.1.2 not mapped ! though i have read in a doc
> that it sud map (
> http://www.onlamp.com/pub/a/bsd/2005/03/10/uucpmail.html
> )
>
> WORKS if i add IP in file
> rootbh1:/etc/postfix# cat mynetworks
> 10.44.85.23 OK
> 10.44.85.171 OK
>
> rootbh1:/etc/postfix# /opt/postfix-2.2.9/bin/postmap
> -q 10.44.85.171 /etc/postfix/mynetworks
> OK
>
> Regards,
> -Manish
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com

--
The Book of Postfix
<http://www.postfix-book.com>
saslfinger (debugging SMTP AUTH):
<http://postfix.state-of-mind.de/patrick.koetter/saslfinger/>