New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

How to change MX record to subdomain?

Started by kandalf, March 10, 2022, 04:30:22 PM

Previous topic - Next topic

kandalf

In many panels the MX record is something like "mail.domain.com", but in cpanel the MX record is only the domain in this example is "domain.com".

If I set a different mx record for example "mail.domain.com" even if that subdomain points to the server I don't receive any email, how can we create a different mx record that works?

rcschaff

MX records should be as follows
@ IN MX 0 [and domain/sub that points to the server].  << Don't forget the period at the end

@ = domain
0 =  mailserver priority
Google Hangouts:  rcschaff82@gmail.com

iraqiboy90

Quote from: rcschaff on March 10, 2022, 05:08:20 PM
MX records should be as follows
@ IN MX 0 [and domain/sub that points to the server].  << Don't forget the period at the end

@ = domain
0 =  mailserver priority

This surely only applies when writing the DNS record manually into the file, right?

kandalf

Yes with cwp I know that the MX record is only the domain, my question is there are any way to create a subdomain and use it on the MX record?

I have a subdomain mail.domain.com that is pointing to the server, but if I use that subdomain on the MX record the emails I never receive any email.

iraqiboy90

Quote from: kandalf on March 11, 2022, 06:14:01 PM
Yes with cwp I know that the MX record is only the domain, my question is there are any way to create a subdomain and use it on the MX record?

I have a subdomain mail.domain.com that is pointing to the server, but if I use that subdomain on the MX record the emails I never receive any email.

well... you can create any subdomain with an A record that goes to the server's IP and then use that subdomain as MX. The subdomain name is not the thing that matters, it's the IP behind it.

Sometimes it takes time for changes to the DNS to apply.