What's new

CPanel DNS MX records for subdomain to external server?

cldtsky

New member
Joined
Nov 4, 2021
Messages
3
Reaction score
2
Points
1
I have a slightly out of the ordinary scenario that’s doing my head in.

I have a client with a Alc VPS and many domains.
One addon domain - lets’ call it www.domain.com has email set up at the Alc server.
The website for said domain has been developed and hosted by a third party, so I have setup DNS records to send web traffic there - I’ll call that remote server.

The web app at remote server needs to be able to send emails FROM www.domain.com but the email server needs to remain at the Alc server. As far as I understand, the domain would need to be added as an addon domain at the remote server for this to work, and DNS/MX records pointing it there, which would break the currently in use emails from working at the Alc server. Moving ALL mail traffic/accounts duties to the remove server is not an option. I figured creating a subdomain - shop.domain.com and setting up MX records to send mail there would give the web app the mail functionality it needs, whilst still appearing to customers who receive emails form the web app that the mail is coming from the same domain as the web shop they purchased from. I’m having trouble setting up the correct MX/DNS and other settings for this to work properly. I don’t have access to the remove server control panel.

I have set up MX records at the DNS server on Alc cPanel, but I’m not entirely sure I’ve done that right as I can’t really test it from the other end.

Can someone explain what settings and steps are needed to get this working correctly?

Many thanks
 

Fauzul

Customer Specialist
Staff member
Moderator
Joined
Oct 27, 2021
Messages
26
Solutions
4
Reaction score
13
Points
3
Location
Bandung, Indonesia
MX records are only for specifying which server is going to handle the 'incoming' email, i.e which server receives emails for that domain.

It doesn't affect what servers send mail for that domain.

The web app can send emails for 'domain.com' but the SPF and DKIM Records for 'domain.com' need to be set to explicitly allow that server to send email on behalf of 'domain.com' so you don't run into authentication issues or spoofing concerns because the sending IP doesn't match what the SPF record has slated for 'domain.com'

However, when using a subdomain for this -- simply setting/creating an MX record for that subdomain would work in that regard.

Code:
subdomain 14400 IN MX 0 external.server.here.
I have set up MX records at the DNS server on Alc cPanel, but I’m not entirely sure I’ve done that right as I can’t really test it from the other end.
Since you're a customer, if it's a managed server -- our support department can assist with issues like this too, just submit a ticket and we can take an more in-depth look. :)
 
OP
OP
C

cldtsky

New member
Joined
Nov 4, 2021
Messages
3
Reaction score
2
Points
1
Thank you @Fauzul . I had asked support to sort this after my initial try didn’t work, which they did but I’d been given the wrong information from the third part and it wasn’t working. I’ve since changed it and it *seems* to be working as far as I can tell..

thanks as ever for your helpful response.
 

Fauzul

Customer Specialist
Staff member
Moderator
Joined
Oct 27, 2021
Messages
26
Solutions
4
Reaction score
13
Points
3
Location
Bandung, Indonesia
Thank you @Fauzul . I had asked support to sort this after my initial try didn’t work, which they did but I’d been given the wrong information from the third part and it wasn’t working. I’ve since changed it and it *seems* to be working as far as I can tell..

thanks as ever for your helpful response.

I'm glad to hear that it's working!
 

Users who are viewing this thread

Top Bottom