Emails in Queue, Spool file locking, timing out

Operating System & Version
Centos7
cPanel & WHM Version
11.94.0

ricardoborrb

Member
May 19, 2020
10
3
3
Narvik
cPanel Access Level
Root Administrator
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:

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:

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 <= [email protected] H=(websotedomain.com) [::1]:48884 P=esmtpa A=dovecot_login:[email protected]erdomain.com S=642 [email protected] T="fndos" for EMAIL
2021-02-10 05:47:31 1l9n1u-0002rd-FJ Sender identification U=senderdomain D=senderdomain.com [email protected]
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!
 

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
549
255
138
IN
cPanel Access Level
Root Administrator
Check if you can able to connect to the google mail server by the telnet
Try:
Code:
#telnet aspmx.l.google.com 25
 

ricardoborrb

Member
May 19, 2020
10
3
3
Narvik
cPanel Access Level
Root Administrator
Check if you can able to connect to the google mail server by the telnet
Try:
Code:
#telnet aspmx.l.google.com 25
I'm receiving this:

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/freeze
 
Last edited:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,307
2,237
363
cPanel Access Level
Root Administrator
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.
 

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
549
255
138
IN
cPanel Access Level
Root Administrator
Just to confirm it's not your server firewall, disable csf and try:

Code:
csf -x
telnet mx1.cpanel.net 25
After that you can re-enable csf by csf -e
 

ricardoborrb

Member
May 19, 2020
10
3
3
Narvik
cPanel Access Level
Root Administrator
Just to confirm it's not your server firewall, disable csf and try:

Code:
csf -x
telnet mx1.cpanel.net 25
After that you can re-enable csf by csf -e
It timed out also,


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.
 
  • Like
Reactions: cPRex