Cannot receive Emails from Gmail

Seyton Dennis

Member
Aug 9, 2017
5
0
1
UK
cPanel Access Level
Root Administrator
Hello,

I am rather a novice with this, but am at my wits end.

CENTOS 6.9, cPanel and WHM 64.0.

Whenever an email is sent from gmail or a google related service, the following bounceback occurs:

Final-Recipient: rfc822;
Action: delayed
Status: 4.0.0
Diagnostic-Code: smtp; DNS Error: 20779749 DNS type 'mx' lookup of responded with code SERVFAIL
Last-Attempt-Date: Wed, 09 Aug 2017 00:44:21 -0700 (PDT)
Will-Retry-Until: Thu, 10 Aug 2017 23:43:34 -0700 (PDT)

As far as I can see, the MX and PTR records look correct. I have tried disabling SpamAssassin, and have checked that CSF is not blocking these. No Joy.

When I look for these in the Mail Delivery Reports, they are not even reaching the server.

I found another thread with a similar issue and attempted renewing SSL amongst other things but to no avail.

Could someone point me in the right direction on this?! If someone has previous experience with this or can check the listings of the MX/PTR records for the domain and point out any glaring errors, I would be most grateful.
 

rpvw

Well-Known Member
Jul 18, 2013
1,101
457
113
UK
cPanel Access Level
Root Administrator
Last edited:

Seyton Dennis

Member
Aug 9, 2017
5
0
1
UK
cPanel Access Level
Root Administrator
In a shell, try
Code:
dig domainname.tld MX
and see if you get the correct results - remember it can take up to 72 hours for new DNS records to propagate, and some caching servers I have seen only update their records once a week :(
Thanks. I will get that checked and come back with the results.
 

Seyton Dennis

Member
Aug 9, 2017
5
0
1
UK
cPanel Access Level
Root Administrator
Code:
; <<>> DiG 9.8.3-P1 <<>> example.co.uk MX
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37252
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;example.co.uk.            IN    MX

;; ANSWER SECTION:
example.co.uk.        3599    IN    MX    10 mail.example.co.uk.

;; Query time: 48 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Wed Aug  9 12:58:39 2017
;; MSG SIZE  rcvd: 51
 

Seyton Dennis

Member
Aug 9, 2017
5
0
1
UK
cPanel Access Level
Root Administrator
As far as I can tell the above looks in order... would you agree?
I have previously checked intoDNS and MX Toolbox and all seems acceptable.
Just cant work out why only Google has an issue!
 

rpvw

Well-Known Member
Jul 18, 2013
1,101
457
113
UK
cPanel Access Level
Root Administrator
Since you are using a Google public NS 8.8.8.8 it is indeed strange - the only thing I would have expected to see is another line with the data
;; ADDITIONAL SECTION:
mail.example.co.uk. 3599 IN A 123.456.789.123

So it might be worth you checking to see if the mail. record is an A or a CNAME and does resolve to an IP
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello,

As mentioned in the previous post, check to ensure "mail.example.co.uk" resolves to the correct IP address.

Thank you.
 

Seyton Dennis

Member
Aug 9, 2017
5
0
1
UK
cPanel Access Level
Root Administrator
Hello,

As mentioned in the previous post, check to ensure "mail.example.co.uk" resolves to the correct IP address.

Thank you.
Hi,
I have checked all of the above and it is resolving to the correct IP address. The domain seems to not have a problem with receiving email from anywhere else, just from Google.

New Development - When I disable CSF, and attempt a test from a gmail account it comes through.

I flushed the blocked IP addresses from CSF and reenabled it, and about an hour later I am back to not receiving them at all.

What is there in CSF that could possibly be causing this?

Thanks in advance
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
New Development - When I disable CSF, and attempt a test from a gmail account it comes through.

I flushed the blocked IP addresses from CSF and reenabled it, and about an hour later I am back to not receiving them at all.

What is there in CSF that could possibly be causing this?
There are a few threads on this topic at the ConfigServer support forums that you may want to look into. To find them, search for a term like this on the Google search engine:

Code:
CSF Blocking Gmail site:forum.configserver.com
Let us know if this helps.

Thank you.