Hi!
I have 2 cPanel servers and i have a website on server1 and have configured emails on server2.
Let's call it domain.com
Now i will explain what i have done to achieve this.
I have configured the domain.com on server1 as normal.
The nameservers of the domain.com are pointing to server1.
Then i have configured the same domain.com on server2 as normal.
On server1 where is the website, i made the next changes:
So, my question is.... it this correct? Do i need to do more? Or, do i have to change/correct something?
It seems to be working but I'm not sure about the DKIM record. The emails need to have all the measures anti-spam applied.
I know that this can be done with Office365 just changing some records from cPanel (MX, SPF and autodiscover) and not messing with DKIM and anything else. So, how they make this work? The DKIM should be invalid, but it's not.
Any ideas?
Thanks
I have 2 cPanel servers and i have a website on server1 and have configured emails on server2.
Let's call it domain.com
Now i will explain what i have done to achieve this.
I have configured the domain.com on server1 as normal.
The nameservers of the domain.com are pointing to server1.
Then i have configured the same domain.com on server2 as normal.
On server1 where is the website, i made the next changes:
- on Zone Editor i added the ip of server2 in the spf record:
domain.com. TXT v=spf1 +a +mx +ip4:xxx.xxx.xxx.xxx +include:spf.server2.com ~all
- removed the record:
domain.com. 14400 MX Priority: 0 Destination: domain.com
- added these 2 records to point mx to the server2:
domain.com. MX 10 mx1.server2.com
domain.com. MX 20 mx2.server2.com - removed the CNAME of mail.domain.com:
mail.domain.com. 14400 CNAME domain.com
- added a record A pointing to the server2, so that i can use the mail.domain.com has my address server for emails:
mail.domain.com. 14400 A xx.xx.xx.xx
- changed these 3 record to point to server2
autoconfig.domain.com. 14400 A xx.xx.xx.xx
(so i can use this address to access webmail on server2)
autodiscover.domain.com. 14400 A xx.xx.xx.xx
webmail.domain.com. 14400 A xx.xx.xx.xx - on Email Routing changed to Remote Mail Exchanger
- On the DKIM record (default._domainkey.domain.com.) i have copied the same DKIM record from server2
- I have made a redirect:
All Public Domains pointing to https://mail.domain.com/webmail so that i can use mail.domain.com and mail.domain.com/webmail to access the webmail page of the server2 - just configured all the necessary emails
So, my question is.... it this correct? Do i need to do more? Or, do i have to change/correct something?
It seems to be working but I'm not sure about the DKIM record. The emails need to have all the measures anti-spam applied.
I know that this can be done with Office365 just changing some records from cPanel (MX, SPF and autodiscover) and not messing with DKIM and anything else. So, how they make this work? The DKIM should be invalid, but it's not.
Any ideas?
Thanks