On 5/26/2013 9:31 PM, SONNY LASKAR wrote: > inet_protocols = all
Use both IPv4 and IPv6 > mynetworks = 198.98.80.80/28, 127.0.0.0/8 # Assume my IP is 198.98.80.85 mynetworks is all IPv4, no IPv6 > smtpd_recipient_restrictions = > permit_sasl_authenticated > permit_mynetworks Deny relay if client not in mynetworks > *[root@server1 ~]# telnet localhost smtp* > Trying ::1... ... > *554 5.7.1 <x...@gmail.com>: Relay access denied* ... > May 27 06:23:58 server1 postfix/smtpd[27718]: connect from localhost[::1] > May 27 06:24:14 server1 postfix/smtpd[27718]: NOQUEUE: reject: RCPT from > localhost[::1]: 554 5.7.1 <x...@gmail.com>: Relay access denied; from=< > x...@gmail.com> to=<x...@gmail.com> proto=ESMTP helo=<localhost> > May 27 06:24:16 server1 postfix/smtpd[27718]: disconnect from localhost[::1] Your connection to Postfix is via IPv6. No IPv6 subnets are in mynetworks, thus IP6 clients are not permitted to relay. Thus "Relay access denied." To fix this, choose one of these solutions: 1. Disable IPv6 in CentOS 2. Add the appropriate IPv6 subnet to mynetworks 3. Set inet_protocols=ipv4 You seem to have no need for IPv6 since you ignored it in your Postfix config. So #1 above is your best bet. It will likely prevent other headaches not related to Postfix as well. -- Stan