Emails in Queue, Spool file locking, timing out
Hello there! (i have root access)
Recently I have been running an issue that emails are stuck in the Mail Queue Manager.
I'm getting either `H=aspmx.l.google.com [ IP ] Connection timed out` or ` Spool file for MSG_ID is locked (another process is handling this message)`.
But the messages/emails are never sent.
It happens with any domain ( google, Hotmail, Yahoo, etc).
Most threads I found out are pretty old, and I've already tried many other possible solutions.
By executing " /var/log/exim_mainlog " I'm getting:
[CODE=bash]/var/log/exim_mainlog: line 1: 2021-02-07: command not found
/var/log/exim_mainlog: line 2: 2021-02-07: command not found
/var/log/exim_mainlog: line 3: syntax error near unexpected token `('
/var/log/exim_mainlog: line 3: `2021-02-07 03:38:36 exim 4.94 daemon started: pid=30268, -q1h, listening for SMTP on port 25 (IPv6 and IPv4) port 587 (IPv6 and IPv4) and for SMTPS on port 465 (IPv6 and IPv4)'
And on a specified message when executing " exigrep $msgid /var/log/exim_mainlog " I'm getting: [CODE=bash]2021-02-10 05:47:31 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc MSG_ID 2021-02-10 05:47:39 cwd=/usr/local/cpanel/whostmgr/docroot 3 args: /usr/sbin/exim -Mvh MSG_ID 2021-02-10 05:47:39 cwd=/usr/local/cpanel/whostmgr/docroot 3 args: /usr/sbin/exim -Mvb MSG_ID 2021-02-10 05:47:42 cwd=/usr/local/cpanel/whostmgr/docroot 4 args: /usr/sbin/exim -v -M MSG_ID 2021-02-10 05:50:19 cwd=/root 10 args: exim -Mrm 1l9n31-0002vu-EN 1l9n23-0002sB-7c 1l9n14-0002hE-VB 1l9n06-00025p-MP 1l9n07-00025r-4i 1l9mzO-0001iE-9h 1l9g7S-0003eQ-8y 1l9n1u-0002rd-FJ 2021-02-10 05:47:31 1l9n1u-0002rd-FJ H=(webitedomain.com) [::1]:48884 Warning: "SpamAssassin as cpaneleximscanner detected OUTGOING smtp message as NOT spam (-1.0)" 2021-02-10 05:47:31 1l9n1u-0002rd-FJ <= tester@senderdomain.com H=(websotedomain.com) [::1]:48884 P=esmtpa A=dovecot_login:tester@senderdomain.com S=642 id=fa569fb357b3e2c582fd4d766aba7108@senderdomain.com T="fndos" for EMAIL 2021-02-10 05:47:31 1l9n1u-0002rd-FJ Sender identification U=senderdomain D=senderdomain.com S=tester@senderdoamin.com 2021-02-10 05:47:31 1l9n1u-0002rd-FJ SMTP connection outbound 1612954051 MSG_ID SENDER_EMAIL EMAIL 2021-02-10 05:47:42 1l9n1u-0002rd-FJ Spool file for MSG_ID is locked (another process is handling this message) 2021-02-10 05:48:00 1l9n1u-0002rd-FJ Spool file for MSG_ID is locked (another process is handling this message) 2021-02-10 05:49:40 1l9n1u-0002rd-FJ H=aspmx.l.google.com [ IP ] Connection timed out 2021-02-10 05:49:40 1l9n1u-0002rd-FJ == EMAIL R=dkim_lookuphost T=dkim_remote_smtp defer (110): Connection timed out 2021-02-10 05:50:19 1l9n1u-0002rd-FJ removed by root 2021-02-10 05:50:19 1l9n1u-0002rd-FJ Completed
Any clue will help a lot!
And on a specified message when executing " exigrep $msgid /var/log/exim_mainlog " I'm getting: [CODE=bash]2021-02-10 05:47:31 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc MSG_ID 2021-02-10 05:47:39 cwd=/usr/local/cpanel/whostmgr/docroot 3 args: /usr/sbin/exim -Mvh MSG_ID 2021-02-10 05:47:39 cwd=/usr/local/cpanel/whostmgr/docroot 3 args: /usr/sbin/exim -Mvb MSG_ID 2021-02-10 05:47:42 cwd=/usr/local/cpanel/whostmgr/docroot 4 args: /usr/sbin/exim -v -M MSG_ID 2021-02-10 05:50:19 cwd=/root 10 args: exim -Mrm 1l9n31-0002vu-EN 1l9n23-0002sB-7c 1l9n14-0002hE-VB 1l9n06-00025p-MP 1l9n07-00025r-4i 1l9mzO-0001iE-9h 1l9g7S-0003eQ-8y 1l9n1u-0002rd-FJ 2021-02-10 05:47:31 1l9n1u-0002rd-FJ H=(webitedomain.com) [::1]:48884 Warning: "SpamAssassin as cpaneleximscanner detected OUTGOING smtp message as NOT spam (-1.0)" 2021-02-10 05:47:31 1l9n1u-0002rd-FJ <= tester@senderdomain.com H=(websotedomain.com) [::1]:48884 P=esmtpa A=dovecot_login:tester@senderdomain.com S=642 id=fa569fb357b3e2c582fd4d766aba7108@senderdomain.com T="fndos" for EMAIL 2021-02-10 05:47:31 1l9n1u-0002rd-FJ Sender identification U=senderdomain D=senderdomain.com S=tester@senderdoamin.com 2021-02-10 05:47:31 1l9n1u-0002rd-FJ SMTP connection outbound 1612954051 MSG_ID SENDER_EMAIL EMAIL 2021-02-10 05:47:42 1l9n1u-0002rd-FJ Spool file for MSG_ID is locked (another process is handling this message) 2021-02-10 05:48:00 1l9n1u-0002rd-FJ Spool file for MSG_ID is locked (another process is handling this message) 2021-02-10 05:49:40 1l9n1u-0002rd-FJ H=aspmx.l.google.com [ IP ] Connection timed out 2021-02-10 05:49:40 1l9n1u-0002rd-FJ == EMAIL R=dkim_lookuphost T=dkim_remote_smtp defer (110): Connection timed out 2021-02-10 05:50:19 1l9n1u-0002rd-FJ removed by root 2021-02-10 05:50:19 1l9n1u-0002rd-FJ Completed
Any clue will help a lot!
-
Check if you can able to connect to the google mail server by the telnet Try: #telnet aspmx.l.google.com 250 -
Check if you can able to connect to the google mail server by the telnet Try:
#telnet aspmx.l.google.com 25
I'm receiving this: [CODE=bash]# telnet aspmx.l.google.com 25 Trying 2607:f8b0:400d:c0f::1b... Connected to aspmx.l.google.com. Escape character is '^]'. 220 mx.google.com ESMTP a16si1115641qkk.135 - gsmtp 451 4.4.2 Timeout - closing connection. a16si1115641qkk.135 - gsmtp Connection closed by foreign host.
And stops/freeze0 -
Thanks for that reply. Just to try another network, what happens with this? telnet mx1.cpanel.net 250 -
Thanks for that reply. Just to try another network, what happens with this?
telnet mx1.cpanel.net 25
Similar thing: [CODE=bash]# telnet mx1.cpanel.net 25 Trying 208.74.121.68... telnet: connect to address 208.74.121.68: Connection timed out0 -
It seems like your hosting provider may be blocking port 25 if you aren't able to send any outbound messages. You'd want to speak with the host to confirm this, and they'd be able to tell you what your options are to work around that. 0 -
It seems like your hosting provider may be blocking port 25 if you aren't able to send any outbound messages. You'd want to speak with the host to confirm this, and they'd be able to tell you what your options are to work around that.
Is there a way to change the port?0 -
Unfortunately no - all other servers on the internet expect that communication to be on port 25, so you'll need to use that. We have some additional details here that you may find helpful: Why is port 25 blocked? 0 -
Just to confirm it's not your server firewall, disable csf and try: csf -x telnet mx1.cpanel.net 25
After that you can re-enable csf bycsf -e0 -
Just to confirm it's not your server firewall, disable csf and try:
csf -x telnet mx1.cpanel.net 25
After that you can re-enable csf bycsf -e
It timed out also, [CODE=bash]# csf -x Flushing chain `INPUT' Flushing chain `FORWARD' Flushing chain `OUTPUT' Flushing chain `ALLOWIN' Flushing chain `ALLOWOUT' Flushing chain `DENYIN' Flushing chain `DENYOUT' Flushing chain `INVALID' Flushing chain `INVDROP' Flushing chain `LOCALINPUT' Flushing chain `LOCALOUTPUT' Flushing chain `LOGDROPIN' Flushing chain `LOGDROPOUT' Flushing chain `SMTPOUTPUT' Deleting chain `ALLOWIN' Deleting chain `ALLOWOUT' Deleting chain `DENYIN' Deleting chain `DENYOUT' Deleting chain `INVALID' Deleting chain `INVDROP' Deleting chain `LOCALINPUT' Deleting chain `LOCALOUTPUT' Deleting chain `LOGDROPIN' Deleting chain `LOGDROPOUT' Deleting chain `SMTPOUTPUT' Flushing chain `PREROUTING' Flushing chain `INPUT' Flushing chain `OUTPUT' Flushing chain `POSTROUTING' Flushing chain `PREROUTING' Flushing chain `OUTPUT' Flushing chain `PREROUTING' Flushing chain `INPUT' Flushing chain `FORWARD' Flushing chain `OUTPUT' Flushing chain `POSTROUTING' Flushing chain `INPUT' Flushing chain `FORWARD' Flushing chain `OUTPUT' Flushing chain `ALLOWIN' Flushing chain `ALLOWOUT' Flushing chain `DENYIN' Flushing chain `DENYOUT' Flushing chain `INVALID' Flushing chain `INVDROP' Flushing chain `LOCALINPUT' Flushing chain `LOCALOUTPUT' Flushing chain `LOGDROPIN' Flushing chain `LOGDROPOUT' Flushing chain `SMTPOUTPUT' Deleting chain `ALLOWIN' Deleting chain `ALLOWOUT' Deleting chain `DENYIN' Deleting chain `DENYOUT' Deleting chain `INVALID' Deleting chain `INVDROP' Deleting chain `LOCALINPUT' Deleting chain `LOCALOUTPUT' Deleting chain `LOGDROPIN' Deleting chain `LOGDROPOUT' Deleting chain `SMTPOUTPUT' Flushing chain `PREROUTING' Flushing chain `INPUT' Flushing chain `OUTPUT' Flushing chain `POSTROUTING' Flushing chain `PREROUTING' Flushing chain `OUTPUT' Flushing chain `PREROUTING' Flushing chain `INPUT' Flushing chain `FORWARD' Flushing chain `OUTPUT' Flushing chain `POSTROUTING' csf and lfd have been disabled # telnet mx1.cpanel.net 25 Trying 208.74.121.68... telnet: connect to address 208.74.121.68: Connection timed out
It did the same :( So seems a provider issue. Thanks, guy for you all your help! If anyone has any other suggestions let me know.0
Please sign in to leave a comment.
Comments
9 comments