I have two domains: 'example.com' and 'elpmaxe.org' and a server - 'server.example.com'
At the moment the mail for 'example.com' is hosted elsewhere so I have set up postfix, dovecot etc to be able to host email on two domains. The setup seems fine with local command line testing.
So I have two mx records on 'example.com' pointing to hosted mail servers elsewhere which i want to eventually delete.
I have an A record pointing to 123.456.123.456 (server.example.com) on both DNS zones 'example.com' and 'elpmaxe.org' and I did have a 'mail.example.com' MX record pointing to server.example.com ip address until i changed the FQDN to server.example.com
Now I have added an MX record to example.org to point to server.example.com (can I add an A record - server.example.com.example.org(??))
I can't now add an MX record on example.com to point to server.example.com
If i dig mx server.example.com it is not showing anything - its only been a couple of hours maybe it needs time to propogate.
so DNS zone 'example.com'
@ IN 300 A 0.0.0.0 @ IN 300 MX 10 mail.example.com. @ IN 300 MX 20 mail2.example.com. www IN 300 A 22.214.171.124 #(server.example.com) mail IN 300 A 126.96.36.199 mail2 IN 300 A 188.8.131.52
DNS zone 'elpmaxe.org'
@ IN 3600 A 184.108.40.206 #(server.example.com) @ IN 3600 MX 10 server.example.com mail IN 3600 A 220.127.116.11 www IN 3600 A 18.104.22.168
Can anyone tell me what I am doing wrong here?