My website was previously on a windows server A with ip 79.137.24.248
but my mail server was on a Linux hosting with ip of 185.81.99.111
. There were three DNS record that were connecting these two servers:
- Name:
example.com.
Type:MX
Data:mail.example.com.
- Name:
mail
Type:A
Data:185.81.99.111
- Name:
example.com.
Type:TXT
Data:v=spf1 mx a ip4:79.137.24.248/32 ~all
Now I have moved my website on a new windows server B with ip 185.10.75.6
but I want to keep the mail server on that Linux server. On the new server I have set MX
and A
records exactly as same as previous ones but for TXT
record I am confused. What should I do? Which server is responsible to translate the TXT record? Should I add the TXT record on new server B or add a new TXT record on old server A to allow the new IP using that mail server?
Footnote: mail.example.com
is now loading fine but when I try sending/receiving emails it seems that the new IP is now allowed to communicate with the Linux mail server.