Wietse Venema wrote:
http://www.postfix.org/SMTPD_ACCESS_README.html
http://www.postfix.org/access.5.html
http://www.postfix.org/cidr_table.5.html

/etc/postfix/main.cf
   smtpd_client_restrictions = check_client_access 
cidr:/etc/postfix/client_access

/etc/postfix/client_access
   192.168.0.0/28 OK
   192.168.1.1/32 OK
   0.0.0.0/0 REJECT

Use smtpd_CLIENT_restrictions not smtpd_RECIPIENT_restrictions.


OMG - that was fast and helpfull!

postconf -m | grep cidr
cidr

postconf -e smtpd_client_restrictions="check_client_access cidr:/etc/postfix/client_access" for i in 127.0.0.0/8 <ip> <ip> <ip> <net> <net> ; do echo $i >> /etc/postfix/client_access ; done
postfix reload

Tested: works!

Thanx :)

Reply via email to