So I bought a new domain name from GoDaddy and pointed the domain to my VPS IP Address which works fine.
[Please note, the VPS is not hosted with GoDaddy, just the domain name.]
However, I noticed that all incoming mails from external servers (gmail, yahoomail, other domains, etc) keep bouncing back even though outcoming emails (from my domain to other mail servers work fine).
After googling the issue out, it seems that I need to make changes to my domain's MX Records in order to be able to send/receive mail.
In GoDaddy, the mx records are as follows:
10 @ mailstore1.secureserver.net 1 Hour
0 @ smtp.secureserver.net 1 Hour
What I have tried so far:
So as instructed by online tutorials and forums, I created an A Record
mail.abcd.com
and pointed it to my VPS IP Address.After that, I added this line to the list of MX Records:
1 @ mail.abcd.com 1 hour
So now it looks like this:
10 @ mailstore1.secureserver.net 1 Hour
0 @ smtp.secureserver.net 1 Hour
1 @ mail.abcd.com 1 Hour
[I have replaced my domain with abcd.com
in the above snippet]
However, I still can't send anything to any email hosted in my server.
What am I doing wrong?