Are these WHM MX settings correct for using Google as email server?

jerrygarciuh

Member
Feb 5, 2003
5
0
151
I have just edited this post to use real domain name after confusing some readers:

/etc/localdomains does not have the domain but it does have a subdomain par5.egolfplan.com

/etc/remotedomains does have the domain egolfplan.com

On WHM MX page:

Email Routing for egolfplan.com is set to "Automatically Detect Configuration: (recommended)"

There are 5 records

10 ASPMX.L.GOOGLE.COM

20 ALT1.ASPMX.L.GOOGLE.COM

30 ALT2.ASPMX.L.GOOGLE.COM

40 ASPMX2.GOOGLEMAIL.COM

50 ASPMX3.GOOGLEMAIL.COM

These values are per Configuring Your MX Records: WHM - Google Apps Help

Of concern is the fact that saving those MX records gets me this message:

Reconfiguring Mail Routing:
REMOTE MAIL EXCHANGER: This server will NOT serve as a mail exchanger for egolfplan.com's mail.: This configuration has been automatically detected based on your mx entries.


I also have a CNAME (in normal DNS Zone Edit page in WHM) for mail which has value ghs.googlehosted.com. but the address http://mail.egolfplan.com does not resolve and that record has been in place several days.

When I use PHP to send an email to [email protected] and then check /var/log/exim_mainlog I see this:

2013-04-17 14:21:41 cwd=/home/egolfplan/public_html 3 args: /usr/sbin/sendmail -t -i
2013-04-17 14:21:41 1USXvJ-000467-Lv <= [email protected] U=egolfplan P=local S=789 [email protected] T="egolfplan Contact Message" for [email protected]
2013-04-17 14:21:41 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1USXvJ-000467-Lv
2013-04-17 14:21:41 1USXvJ-000467-Lv SMTP connection outbound 1366226501 1USXvJ-000467-Lv egolfplan.com [email protected]
2013-04-17 14:21:41 1USXvJ-000467-Lv lowest numbered MX record points to local host: egolfplan.com
2013-04-17 14:21:41 1USXvJ-000467-Lv == [email protected] R=lookuphost defer (-1): lowest numbered MX record points to local host
2013-04-17 14:21:41 1USXvJ-000467-Lv Frozen
 
Last edited:

quietFinn

Well-Known Member
Feb 4, 2006
1,222
87
178
Finland
cPanel Access Level
Root Administrator
Whois info of domain barbaz.com says that the nameservers are:
NS1.DOMAINRECOVER.COM
NS2.DOMAINRECOVER.COM

this is what tose nameservers tell about the MX records:

[email protected] [~]# nslookup
> server NS1.DOMAINRECOVER.COM
Default server: NS1.DOMAINRECOVER.COM
Address: 66.45.232.66#53
> set Q=MX
> barbaz.com
Server: NS1.DOMAINRECOVER.COM
Address: 66.45.232.66#53

barbaz.com mail exchanger = 20 mxs2.domainrecover.com.
barbaz.com mail exchanger = 10 mxs1.domainrecover.com.

See what Intodns tells about your domain:
intoDNS: barbaz.com - check DNS server and mail server health
 

jerrygarciuh

Member
Feb 5, 2003
5
0
151
I was using foo bar and baz as replacements for the real domain name. This is common practice in Perl coder circle but perhaps not here? The actual domain is egolfplan.com
 

quietFinn

Well-Known Member
Feb 4, 2006
1,222
87
178
Finland
cPanel Access Level
Root Administrator
I was using foo bar and baz as replacements for the real domain name. This is common practice in Perl coder circle but perhaps not here? The actual domain is egolfplan.com
I don't remember seeing that domain "replacement".
Anyway...

whois info of the domain tells that the nameservers of egolfplan.com are:
NS1.SOFTLAYER.COM
NS2.SOFTLAYER.COM

this is what those nameservers tell about the MX records:
[email protected] [~]# nslookup
> server NS1.SOFTLAYER.COM
Default server: NS1.SOFTLAYER.COM
Address: 67.228.254.4#53
Default server: NS1.SOFTLAYER.COM
Address: 2607:f0d0:0:f:1::1#53
> set Q=MX
> egolfplan.com
Server: NS1.SOFTLAYER.COM
Address: 67.228.254.4#53

egolfplan.com mail exchanger = 10 mail.egolfplan.com.

then if we see what your server tells:
[email protected] [~]# nslookup
> server 67.228.22.163
Default server: 67.228.22.163
Address: 67.228.22.163#53
> set Q=MX
> egolfplan.com
Server: 67.228.22.163
Address: 67.228.22.163#53

egolfplan.com mail exchanger = 50 aspmx3.googlemail.com.
egolfplan.com mail exchanger = 10 aspmx.l.google.com.
egolfplan.com mail exchanger = 20 alt1.aspmx.l.google.com.
egolfplan.com mail exchanger = 30 alt2.aspmx.l.google.com.
egolfplan.com mail exchanger = 40 aspmx2.googlemail.com.

So, in the DNS zone of the domain egolfplan.com in your server you have the google MX records, but because the nameservers are pointing elsewhere (i.e. NS1.SOFTLAYER.COM & NS2.SOFTLAYER.COM) that DNS zone is not used and it has no effect whatsoever.
 

jerrygarciuh

Member
Feb 5, 2003
5
0
151
Thank you for the reply! What is the remedy? SoftLayer is the dedicated server provider. I am using their DNS servers for the domain egolfplan.com
 

quietFinn

Well-Known Member
Feb 4, 2006
1,222
87
178
Finland
cPanel Access Level
Root Administrator
Your domain's nameservers are:
NS1.SOFTLAYER.COM
NS2.SOFTLAYER.COM

If you want to change your domain's MX entries (or anything in your domain's DNS settings) it has to be done in those nameservers above, not anywhere else.