Configure Website and Email on different servers and dkim records
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:
- 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 autodiscover.domain.com. 14400 A xx.xx.xx.xx webmail.domain.com. 14400 A xx.xx.xx.xx
(so i can use this address to access webmail on server2) - 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
-
Hey there! That all sounds good to me - you just point the MX and A records like you did, and then mail will get sent to the other machine. You will also want to update the setting inside cPanel >> Email Routing to the "Remote" option - that way, any local messages will look to the DNS records instead of getting delivered locally. 0 -
Hi! Good. Now... about spam... to make all the sending correct and email to not falling in the Spam folders, is this enough? Outlook395 doesn't need to have de dkim record configured, why? Thanks 0 -
There is never a guarantee that your messages won't get sent to spam at certain providers. The only real answer is to deal with it as it comes up. Having SPF/DKIM/DMARC will certainly help that situation. I can't comment on why Outlook365 configuration settings since that isn't something we have any control of, so it might be best to reach out to them. 0 -
Hi, I just wanted to have a similar configuration that can be Spam proof. ;) If this is the path to go, then that's how I'll have to do it. Thanks 0
Please sign in to leave a comment.
Comments
4 comments