I am trying to move my site to a different provider. The mail server I am using at the moment I want to keep. My DNS management is done at a different service. I am trying to figure out what the right settings are but somehow I am keep getting this wrong.
Original working settings with site and mail server at the same location
Note: In this example i use
99.999.999.99 as the IP for the website server. I use
88.888.888.88 as the IP for the mail server (and old website server).
A *.example.com → 88.888.888.88 A example.com → 88.888.888.88 A localhost.example.com → 127.0.0.1 MX-10 example.com → mail.example.com CNAME imap.example.com → example.com
Now I moved the website to a new server (
99.999.999.99) and changed the DNS like this. I created a CNAME and an A record for mail.example.com. Now the site is working but I can not send mails.
A *.example.com → 99.999.999.99 A example.com → 99.999.999.99 A localhost.example.com → 127.0.0.1 A mail.example.com → 88.888.888.88 MX-10 example.com → mail.example.com CNAME imap.example.com → example.com CNAME www.example.com → certainserver.com
I guess I need to add some record for the IMAP. But I don't know to what. Does it need an A record for the Imap?