I can send but cannot receive e-mails

serlex

Well-Known Member
Oct 20, 2009
57
0
56
I can send out e-mails, but cannot receive anything

I'm using CPanel 11.24.5-STABLE. Created an account through WHM, an e-mail account through CPanel. I also have the following MX records in DNS:

domain.com MX 10 mail.domain.com
mail.domaini.com A n/a XX.XXX.XXX

I've looked in /var/log/exim_maillog and only see messages regarding sent out mails.

Regards,
 

DirectHorizon

Member
Nov 24, 2009
10
0
51
There are many reasons why you cannot receive.
I would start with checking your filters first.
Make sure that the mail ip is correct as well.

You could try restarting exim, if that doesn't work I would try running
/scripts/upcp --force
 

serlex

Well-Known Member
Oct 20, 2009
57
0
56
There are many reasons why you cannot receive.
I would start with checking your filters first.
I've no user level filtering and SpamAssassin is not enabled.
Make sure that the mail ip is correct as well.
This was totally wrong, I've changed the IP address and changed the DNS records, I now have:

domain.com
Type:MX
Priority:10
Points to Address: mail.domain.com

is this correct? or do I need more MX records?

You could try restarting exim, if that doesn't work I would try running
/scripts/upcp --force
After making the changes to DNS and IP addresses, I've restarted exim and run
Code:
/scripts/upcp --force
I'm still unable to receive any emails

Regards,
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
I can send out e-mails, but cannot receive anything
... I also have the following MX records in DNS:
domain.com MX 10 mail.domain.com
mail.domaini.com A n/a XX.XXX.XXX
Via root SSH access, what is the output from the following commands, where "domain.tld" should be replaced by the applicable domain involved:
Code:
# grep "^mail\|MX" /var/named/domain.tld.db
# dig domain.tld MX +noall +answer
# dig mail.domain.tld A +noall +answer
 

serlex

Well-Known Member
Oct 20, 2009
57
0
56
grep "^mail\|MX" /var/named/domain.com.db
domain.com. 14400 IN MX 0 domain.com.
mail 14400 IN CNAME domain.com.

dig domain.com MX +noall +answer

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <<>> domain.com MX +noall +answer
;; global options: printcmd
domain.com. 1780 IN MX 10 mail.domain.com.

dig mail.acarsulalesi.com A +noall +answer

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <<>> mail.domain.com A +noall +answer
;; global options: printcmd
mail.domain.com. 1800 IN A 89.XXX.XXX.XXX


domain.com equals my domain name
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
grep "^mail\|MX" /var/named/domain.com.db
domain.com. 14400 IN MX 0 domain.com.
mail 14400 IN CNAME domain.com.

dig domain.com MX +noall +answer
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <<>> domain.com MX +noall +answer
;; global options: printcmd
domain.com. 1780 IN MX 10 mail.domain.com.

dig mail.acarsulalesi.com A +noall +answer
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <<>> mail.domain.com A +noall +answer
;; global options: printcmd
mail.domain.com. 1800 IN A 89.XXX.XXX.XXX

domain.com equals my domain name
The output from "grep" does not match the DNS query results via "dig".

Via root SSH access, what is the output from the following command:
Code:
# /scripts/setupnameserver --current
What method is being used to edit the DNS zone?

Is the defined IP address for the "mail." sub-domain located on the same physical machine as the server being used to send e-mail from?

When sending a test message to your own e-mail address, both from a locally-hosted e-mail account and from a remotely-hosted e-mail account, what messages are logged by Exim? If there are not any from a remote test as indicated earlier, there definitely should be log detail when testing from a local e-mail account.

It is difficult to diagnose further without knowing more verbose information about the setup involved; if you're able to share more information about the custom or unique setup involved that may help to troubleshoot further.
 

serlex

Well-Known Member
Oct 20, 2009
57
0
56
The output from "grep" does not match the DNS query results via "dig".

Via root SSH access, what is the output from the following command:
Code:
# /scripts/setupnameserver --current
Current nameserver type: disabled
What method is being used to edit the DNS zone?
I edit them through the providers portal (web page) which I'm assuming edits their nameservers.

Is the defined IP address for the "mail." sub-domain located on the same physical machine as the server being used to send e-mail from?
I'm not sure what you mean here, everything is running on the same machine

When sending a test message to your own e-mail address, both from a locally-hosted e-mail account and from a remotely-hosted e-mail account, what messages are logged by Exim? If there are not any from a remote test as indicated earlier, there definitely should be log detail when testing from a local e-mail account.
When i send out an email from the machine to outside, /var/log/exim_mainlog
Code:
2009-12-09 16:14:49 H=localhost (acarfaa1.miniserver.com) [127.0.0.1] Warning: Sender rate 1.8 / 1h
2009-12-09 16:14:49 1NIPBh-00049Q-Eg <= [email protected] H=localhost (acar.server.com) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=815 [email protected]
2009-12-09 16:14:50 1NIPBh-00049Q-Eg => [email protected] R=lookuphost T=remote_smtp H=mx2.hotmail.com [65.55.37.72]
2009-12-09 16:14:50 1NIPBh-00049Q-Eg Completed
I just cant receive anything, I dont get anything in /var/log/exim_mainlog
 
Last edited:

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
When i send out an email from the machine to outside, /var/log/exim_mainlog
Code:
2009-12-09 16:14:49 H=localhost (acarfaa1.miniserver.com) [127.0.0.1] Warning: Sender rate 1.8 / 1h
2009-12-09 16:14:49 1NIPBh-00049Q-Eg <= [email protected] H=localhost (acar.server.com) [127.0.0.1] P=esmtpa A=dovecot_login:[email protected] S=815 [email protected]
2009-12-09 16:14:50 1NIPBh-00049Q-Eg => [email protected] R=lookuphost T=remote_smtp H=mx2.hotmail.com [65.55.37.72]
2009-12-09 16:14:50 1NIPBh-00049Q-Eg Completed
I just cant receive anything, I dont get anything in /var/log/exim_mainlog
Thank you for the new information and log detail.

Via root SSH access, what is the output of the following command?
Code:
# grep -Hin domain.tld /etc/localdomains /etc/remotedomains
When you send a test message to a domain hosted on the server with cPanel, does your sender e-mail account receive an error from the e-mail attempt bouncing back?

If there is a bounce message available indicating an error message it would help greatly to provide the full e-mail headers of that bounce message.

If there is no information in the Exim log file for the incoming test messages, that would indicate to me they're not reaching the mail server and that the issue may need to be escalated to the upstream service provider.
 

serlex

Well-Known Member
Oct 20, 2009
57
0
56
Thank you for the new information and log detail.

Via root SSH access, what is the output of the following command?
Code:
# grep -Hin domain.tld /etc/localdomains /etc/remotedomains
/etc/localdomains:2:acarlar.com
/etc/localdomains:6:test.acarlar.com

When you send a test message to a domain hosted on the server with cPanel, does your sender e-mail account receive an error from the e-mail attempt bouncing back?

If there is a bounce message available indicating an error message it would help greatly to provide the full e-mail headers of that bounce message.
It is getting bounced back:

Code:
Delivery to the following recipient failed permanently:

    [email protected]

Technical details of permanent failure:
The recipient server did not accept our requests to connect. Learn more at http://mail.google.com/support/bin/answer.py?answer=7720
[mail.acarlar.com. (10): Connection timed out]

----- Original message -----

MIME-Version: 1.0
Received: by 10.216.89.8 with SMTP id b8mr3381208wef.180.1260374180233; Wed,
       09 Dec 2009 07:56:20 -0800 (PST)
In-Reply-To: <[email protected]>
References: <[email protected]>
Date: Wed, 9 Dec 2009 15:56:20 +0000
Message-ID: <[email protected]>
Subject: Re: aaaa
From: sercan acar <[email protected]>
To: [email protected]
Content-Type: multipart/alternative; boundary=0016e6d7e6a34c0546047a4dbb7d
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
/etc/localdomains:2:acarlar.com
/etc/localdomains:6:test.acarlar.com

It is getting bounced back:
Code:
Delivery to the following recipient failed permanently:

    [email protected]

Technical details of permanent failure:
The recipient server did not accept our requests to connect. Learn more at http://mail.google.com/support/bin/answer.py?answer=7720
[mail.acarlar.com. (10): Connection timed out]

----- Original message -----

MIME-Version: 1.0
Received: by 10.216.89.8 with SMTP id b8mr3381208wef.180.1260374180233; Wed,
       09 Dec 2009 07:56:20 -0800 (PST)
In-Reply-To: <[email protected]>
References: <[email protected]>
Date: Wed, 9 Dec 2009 15:56:20 +0000
Message-ID: <[email protected]>
Subject: Re: aaaa
From: sercan acar <[email protected]>
To: [email protected]
Content-Type: multipart/alternative; boundary=0016e6d7e6a34c0546047a4dbb7d
Given the provided details up to this point I believe we will be able to better assist in further diagnosis via a ticket; we would need direct access to accurately troubleshoot more thoroughly. Please submit a support request so that we may investigate directly and examine the situation and related configurations; when available, please PM me referencing this forums thread and your new ticket ID number so I may follow-up internally. If needed, the link in my forums signature may be used to initiate a support request (ticket) submission.