Emails in WHM mail queue manager

Operating System & Version
CENTOS 7.9 kvm
cPanel & WHM Version
v96.0.9

mmaciel

Well-Known Member
Mar 25, 2019
51
10
8
Brazil
cPanel Access Level
Root Administrator
Hi. So recently, every day there's a new mail in the queue manager, sent from "Mail Delivery System <[email protected]my-server-ip.ip.secureserver.net>", to "
[email protected]", with the subject "Mail delivery failed: returning message to sender"

here's the full log

Code:
Date:     

Thu, 10 Jun 2021 00:18:04 -0400

From:     

Mail Delivery System <[email protected]>

To:     

[email protected]

Subject:     

Mail delivery failed: returning message to sender

Auto-Submitted:     

auto-replied

Content-Type:     

multipart/report; report-type=delivery-status; boundary=1623298684-eximdsn-732307360

Message-Id:     

<[email protected]>

MIME-Version:     

1.0

Received:     

from mailnull by ip-my-server-ip.ip.secureserver.net with local (Exim 4.94.2)
 id 1lrC8q-0000sd-NZ
 for [email protected]; Thu, 10 Jun 2021 00:18:04 -0400

References:     

<[email protected]>

X-Failed-Recipients:     

[email protected]

--1623298684-eximdsn-732307360
Content-type: text/plain; charset=us-ascii

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  [email protected]
    root cannot accept local mail deliveries

--1623298684-eximdsn-732307360
Content-type: message/delivery-status

Reporting-MTA: dns; ip-my-server-ip.ip.secureserver.net

Action: failed
Final-Recipient: rfc822;[email protected]
Status: 5.0.0

--1623298684-eximdsn-732307360
Content-type: message/rfc822

Return-path: <[email protected]>
Received: from root by ip-my-server-ip.ip.secureserver.net with local (Exim 4.94.2)
    (envelope-from <[email protected]>)
    id 1lrC8q-0000sH-Lo
    for [email protected]; Thu, 10 Jun 2021 00:18:04 -0400
From: "(Cron Daemon)" <[email protected]>
To: [email protected]
Subject: Cron <[email protected]> /usr/local/cpanel/bin/autossl_check --all
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
Precedence: bulk
X-Cron-Env: <XDG_SESSION_ID=110654>
X-Cron-Env: <XDG_RUNTIME_DIR=/run/user/0>
X-Cron-Env: <LANG=en_US.UTF-8>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Message-Id: <[email protected]>
Date: Thu, 10 Jun 2021 00:18:04 -0400

Constant subroutine unbound_version redefined at /usr/local/cpanel/bin/autossl_check line 4294967295.

--1623298684-eximdsn-732307360--

any idea to whats going on? no users are complaining about mails not being delivered or received
 

ZenHostingTravis

Well-Known Member
PartnerNOC
May 22, 2020
275
95
28
Australia
cPanel Access Level
Root Administrator
The content of the message is
Constant subroutine unbound_version redefined at /usr/local/cpanel/bin/autossl_check line 4294967295.

so I think your server is trying to send the administrator this notification about AutoSSL.

Do you have an email address defined in the WHM >> Basic WebHost Manager Setup section?
 

mmaciel

Well-Known Member
Mar 25, 2019
51
10
8
Brazil
cPanel Access Level
Root Administrator
The content of the message is
Constant subroutine unbound_version redefined at /usr/local/cpanel/bin/autossl_check line 4294967295.

so I think your server is trying to send the administrator this notification about AutoSSL.

Do you have an email address defined in the WHM >> Basic WebHost Manager Setup section?
hey, thanks for the answer... no, i didn't have any email set up in that section

if i force delivery, i get this log, and the mail stays in the queue

Code:
LOG: MAIN
  cwd=/usr/local/cpanel/whostmgr/docroot 4 args: /usr/sbin/exim -v -M 1lrYcN-0002KG-Hg
delivering 1lrYcN-0002KG-Hg
LOG: MAIN
  Unfrozen by forced delivery
LOG: MAIN
  ** [email protected] R=localuser_root: root cannot accept local mail deliveries
LOG: MAIN
  Frozen (delivery error message)
 

cPJustinD

Administrator
Staff member
Jan 12, 2021
286
51
103
Houston
cPanel Access Level
Root Administrator
Hello mmaciel! The server is trying to contact the server administrator to inform them of the AutoSSL failure; however, as a contact email has not been specified, it's just trying to contact the root user of the hostname, which isn't a valid email address.

Could you access the terminal in SSH and run the following command?

exim -bt [email protected]

If the output says the email address is undeliverable, that would explain why the messages are frozen. In that case, you specify a contact email for server administrator notifications in WHM >> Basic WebHost Manager Setup.

I hope that this helps. Let us know if you have any other questions or concerns!
 
  • Like
Reactions: ZenHostingTravis

mmaciel

Well-Known Member
Mar 25, 2019
51
10
8
Brazil
cPanel Access Level
Root Administrator
Hello mmaciel! The server is trying to contact the server administrator to inform them of the AutoSSL failure; however, as a contact email has not been specified, it's just trying to contact the root user of the hostname, which isn't a valid email address.

Could you access the terminal in SSH and run the following command?

exim -bt [email protected]

If the output says the email address is undeliverable, that would explain why the messages are frozen. In that case, you specify a contact email for server administrator notifications in WHM >> Basic WebHost Manager Setup.

I hope that this helps. Let us know if you have any other questions or concerns!
hi

i get this answer from the terminal "[email protected] is undeliverable: root cannot accept local mail deliveries" even after i specified a contact email under Basic WebHost Manager Setup
 
  • Like
Reactions: ZenHostingTravis

cPJustinD

Administrator
Staff member
Jan 12, 2021
286
51
103
Houston
cPanel Access Level
Root Administrator
That's what I suspected. Moving forward, you'll want to set up a contact email address in WHM >> Basic WebHost Manager Setup for the server administrator, as I mentioned previously. You can specify this where the interface says "Enter one or more email addresses to contact in case a problem arises with this server."

If you have any other questions, please let us know!
 
  • Like
Reactions: ZenHostingTravis

mmaciel

Well-Known Member
Mar 25, 2019
51
10
8
Brazil
cPanel Access Level
Root Administrator
That's what I suspected. Moving forward, you'll want to set up a contact email address in WHM >> Basic WebHost Manager Setup for the server administrator, as I mentioned previously. You can specify this where the interface says "Enter one or more email addresses to contact in case a problem arises with this server."

If you have any other questions, please let us know!
hey thanks for answering again, but like i said, i had done that already... do i need to restart my server after adding an email contact?


1623414888079.png
 

mmaciel

Well-Known Member
Mar 25, 2019
51
10
8
Brazil
cPanel Access Level
Root Administrator
I may suggest first restarting the Exim and cpsrvd services. If that doesn't resolve the issue, then you may proceed with a server reboot.

Let us know if this helps!
Hey.

So, that didn't work, but i found this article, and when i added an email in Home » Server Contacts » Edit System Mail Preferences, it worked, the mail can finally leave the queue, but this doesn't actually answer what that error message was, or what exactly is causing this autossl error you mentioned.

Any clues?
 
  • Like
Reactions: ZenHostingTravis

cPJustinD

Administrator
Staff member
Jan 12, 2021
286
51
103
Houston
cPanel Access Level
Root Administrator
The error itself is related to a recent internal case that we've filed, CPANEL-37063. Unfortunately, there are no known manual workarounds at this time.

More information on this can be found here:

autossl_check error: Constant subroutine unbound_version redefined

This has been fixed as of cPanel v11.96.0.10. Updating to this specific version, which is on our CURRENT and EDGE tier, should resolve these issues.