Email Stuck In Mail Queue Administration Despite MX Record Being Unchecked

open4biz

Verified User
Joined
Mar 22, 2009
Messages
120
I moved my sites to a new server and just learned that one of my site's automated emails are getting stuck in the Mail Queue Administration. When I go into that account's MX Records the following box is already unselected: "Use this server to handle my emails. If not, change the MX record and uncheck this option"

If the automated emails are being sent via PHP's mail function how should I configure the account so the emails make it through the server?

For this particular account I'm hosting the email through a hosted email service and that's where the MX records point.

Any help would be appreciated!

Thanks,

Ansel
 
Code:
[root@ ~]# exim -Mvl 1YxOzV-00023z-E3

2015-05-27 00:14:57 Received from <> R=1YxOhi-0001AI-Jj U=mail P=local S=2181 T="Mail delivery failed: returning message to sender"

2015-05-27 00:14:57 [email protected] F=<> R=lookuphost T=remote_smtp: retry time not reached for any host after a long failure period

*** Frozen (delivery error message)

and

Code:
[root@ ~]# exim -Mvl 1YxOhY-0001A3-9a

2015-05-26 23:56:14 Received from [email protected] U=user P=local S=1284 T="This was the subject line"

2015-05-26 23:58:21 H=mail.zerolag.com [67.201.61.4] Connection timed out

2015-05-26 23:58:21 [email protected] R=lookuphost T=remote_smtp defer (110): Connection timed out

2015-05-27 00:17:05 H=mail.zerolag.com [67.201.61.4] Connection timed out

2015-05-27 00:17:05 [email protected] R=lookuphost T=remote_smtp defer (110): Connection timed out

2015-05-27 01:16:44 H=mail.zerolag.com [67.201.61.4] Connection timed out

2015-05-27 01:16:44 [email protected] R=lookuphost T=remote_smtp defer (110): Connection timed out

2015-05-27 02:16:45 H=mail.zerolag.com [67.201.61.4] Connection timed out

2015-05-27 02:16:45 [email protected] R=lookuphost T=remote_smtp defer (110): Connection timed out

2015-05-27 04:16:44 H=mail.zerolag.com [67.201.61.4] Connection timed out

2015-05-27 04:16:44 [email protected] R=lookuphost T=remote_smtp defer (110): Connection timed out

2015-05-27 06:16:44 H=mail.zerolag.com [67.201.61.4] Connection timed out

2015-05-27 06:16:44 [email protected] R=lookuphost T=remote_smtp defer (110): Connection timed out

2015-05-27 09:16:44 H=mail.zerolag.com [67.201.61.4] Connection timed out

2015-05-27 09:16:44 [email protected] R=lookuphost T=remote_smtp defer (110): Connection timed out

Any suggestions? I have outgoing port 25 open on the firewall.

Cheers
 
Last edited:
That may be the case:

Code:
[root@ ~]# telnet mail.zerolag.com 25
Trying 67.201.61.4...
telnet: connect to address 67.201.61.4: Connection timed out

Perhaps I need to do more work with my mail server setup? Any general recommendations?

Cheers Alex!
 
Do you have any access to 67.201.61.4? If yes, then first of all try and disable firewall on 67.201.61.4 and check connection once more.

I don't see the issue from my end:

Code:
# telnet 67.201.61.4 25Trying 67.201.61.4...
Connected to 67.201.61.4.
Escape character is '^]'.
220 mx2.zerolag.com ESMTP Postfix (Debian/GNU)
 
I do not. Mail.ZeroLag.com / 67.201.61.4 is someone else's server my site attempted to send email to. It timed out and I'm trying to figure out why. My IP is 104.207.156.137 and I have full access to that, with DA installed there of course. :)
 
I am working with ZeroLag's support team but it looks like my email never hit their servers. It never left my box.

I tried a couple test emails from my box's webmail client and those tests never left:

E-Mail Body Chunk

Code:
1Yx8hN-1043yv-8m-H
mail 8 12
<>
1432769121 0
-active_hostname subdomain.boldsquirrel.com
-ident mail
-received_protocol local
-aclm _user 0

-aclm _uid 2
-1
-aclm _username 0
unknown
-body_linecount 56
-max_received_linelength 75
-allow_unqualified_recipient
-allow_unqualified_sender
-frozen 1432769121
-localerror
XX
1
account@localhost

141P Received: from mail by subdomain.boldsquirrel.com with local (Exim 4.85)
	id 1Yx8hN-1043yv-8m-H
	for account@localhost; Wed, 27 May 2015 23:25:21 +0000
038  X-Failed-Recipients: [email protected]
029  Auto-Submitted: auto-replied
065F From: Mail Delivery System <[email protected]>
018* To: account@localhost
035T To: [email protected]
059  Subject: Mail delivery failed: returning message to sender
054I Message-Id: <[email protected]>
038  Date: Wed, 27 May 2015 23:25:21 +0000

On of the things I noticed is the email is coming back to: [email protected]... but localhost.boldsquirrel.com doesn't exist. Could that be the problem?
 
Last edited:
Sanity check: I can still send email from the box (localhost, using PHP's mail function) despite my email account being hosted through Rackspace's hosted email system? I unchecked this box in the account's MX records: "Use this server to handle my emails. If not, change the MX record and uncheck this option".

Cheers
 
Not as far as I can tell. Please see the two attached images from CSF. I've included the port and SMTP settings (please note: I trimmed the incoming/outgoing port lists to so as to not reveal some of the more interesting ports I have open).

CSF-Port-Settings.png

CSF-SMTP-Settings.png
 
What do you see with

Code:
csf -g 67.201.61.4
?

or

Code:
iptables-save | grep 67.201
?
 
For

Code:
csf -g 67.201.61.4

I see:

Chain num pkts bytes target prot opt in out source destination
No matches found for 67.201.61.4 in iptables

And for

Code:
iptables-save | grep 67.201

It returned nothing, blank.
 
Back
Top