Postfix sending and receiving in strange way.
I have an email server, running on CentOS 6.5, 32bit system, with Postfix and Dovecot running along all their dependencies. Let's assume my domain is www.anw.com
I have created A
record in this order for my domain
www.anw.com 37.143.374.15 # points to my web server
anw.com 37.143.374.15 # points to my web server
mail.anw.com 227.80.74.199 # points to my mail server
I have also created an MX
server
mail.anw.com 227.80.74.199
Now, using postfix I have created two accounts, namely [email protected]
and [email protected]
using squirrelmail I can send and receive between those accounts without any problem. I can also send emails to any email account like Yahoo and Google, but I can't receive emails sent from Google or Yahoo.
In your /etc/postfix/main.cf look at the following settings and the associated comments:
myhostname (your mail server's host name) mydomain = dailytech24.com (you domain name) myorigin = $mydomain inet_interfaces = all (if you only have IPv4 then this needs to change) mydestination mynetworks
Your Postfix is listening only on the Loopback interface (127.0.0.1
). Edit the /etc/postfx/main.cf
file and update the inet_interfaces
parameters with your public IP address.
inet_interfaces = MY.IP.AD.DR,127.0.0.1
You will then have to restart the Postfix service.
# service postfix restart