Tier: Current 126.0.2 has broken mailman
Hello,
We have discovered that the updates to mailmain in 126.0.2 are causing functional errors with mailman. I see the following entries in the change log and suspect they are related.
- Fixed HB-8169: Update cpanel-mailman to 2.2.0.6-1.
- Fixed HB-8115: Update cpanel-mailman to 2.2.0.3 and cpanel-dnspython to 2.1.0 with python3.
- Fixed HB-8123: Remove remaining python2 references that coincide with Mailman2.
Log entries are included - please help as we can't go back to 124.0.23
Jan 31 14:05:57 2025 (2927514) SHUNTING: 1738292737.4294574+47958cac94145f088b9c8d33855a6308de683e5f
Jan 31 14:23:20 2025 (2927514) Uncaught runner exception: 'utf-8' codec can't decode byte 0x91 in position 4851284091: invalid start byte
Jan 31 14:23:20 2025 (2927514) Traceback (most recent call last):
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/Runner.py", line 113, in _oneloop
self._onefile(msg, msgdata)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/Runner.py", line 184, in _onefile
keepqueued = self._dispose(mlist, msg, msgdata)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/ArchRunner.py", line 77, in _dispose
mlist.ArchiveMail(msg)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Archiver/Archiver.py", line 196, in ArchiveMail
self.__archive_to_mbox(msg)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Archiver/Archiver.py", line 166, in __archive_to_mbox
mbox.AppendMessage(post)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Mailbox.py", line 54, in AppendMessage
content = fileh.read()
File "/usr/lib64/python3.6/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 4851284091: invalid start byteJan 31 14:23:20 2025 (2927514) SHUNTING: 1738293785.0748813+20f19b0fc8a7a0292f1f9ff9ab758ccea61ca7e7
Another error
admin(3895557): [----- Environment Variables -----]
admin(3895557): SERVER_PROTOCOL: HTTP/1.1
admin(3895557): REQUEST_METHOD: POST
admin(3895557): QUERY_STRING:
admin(3895557): SCRIPT_NAME: /mailman/admindb
admin(3895557): DOCUMENT_ROOT: /home/user/public_html
admin(3895557): REMOTE_ADDR: 203.37.238.244
admin(3895557): REMOTE_PORT: 20159
admin(3895557): SERVER_NAME: domain.tld
admin(3895557): SERVER_PORT: 443
admin(3895557): REQUEST_SCHEME: https
admin(3895557): REQUEST_URI: /mailman/admindb/list_domain.tld
admin(3895557): PATH_INFO: /list_domain.tld
admin(3895557): HTTPS: on
admin(3895557): CONTENT_TYPE: application/x-www-form-urlencoded
admin(3895557): CONTENT_LENGTH: 209
admin(3895557): HTTP_COOKIE: list_domain.tld+admin=a902e984499c67fa2866643066393962346438383466373466633233663664623363653232336361326363353065396133; _ga=GA1.1.1366340361.1710197138; et_pb_ab_read_page_3497false=true; __stripe_mid=a9f043fb-7125-4cf6-8372-08f8fecf59ab4fc265; _ga_ZP71KZS7VV=GS1.1.1722828897.2.1.1722829217.0.0.0
admin(3895557): HTTP_HOST: domain.tld
admin(3895557): PYTHONPATH: /usr/local/cpanel/3rdparty/mailman
admin(3895557): LC_CTYPE: C.UTF-8
Jan 31 15:09:42 2025 admin(3919142): @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
admin(3919142): [----- Mailman Version: 2.2.0-alpha1 -----]
admin(3919142): [----- Traceback ------]
admin(3919142): Traceback (most recent call last):
admin(3919142): File "/usr/local/cpanel/3rdparty/mailman/scripts/driver", line 118, in run_main
main()
admin(3919142): File "/usr/local/cpanel/3rdparty/mailman/Mailman/Cgi/admindb.py", line 244, in main
process_form(mlist, doc, cgidata)
admin(3919142): File "/usr/local/cpanel/3rdparty/mailman/Mailman/Cgi/admindb.py", line 979, in process_form
preserve, forward, forwardaddr)
admin(3919142): File "/usr/local/cpanel/3rdparty/mailman/Mailman/ListAdmin.py", line 170, in HandleRequest
status = self.__handlesubscription(data, value, comment)
admin(3919142): File "/usr/local/cpanel/3rdparty/mailman/Mailman/ListAdmin.py", line 439, in __handlesubscription
self.ApprovedAddMember(userdesc, whence=whence)
admin(3919142): File "/usr/local/cpanel/3rdparty/mailman/Mailman/MailList.py", line 1144, in ApprovedAddMember
"member" : formataddr((name, email)),
admin(3919142): File "/usr/lib64/python3.6/email/utils.py", line 135, in formataddr
name.encode('ascii')
admin(3919142): AttributeError: 'bytes' object has no attribute 'encode'
admin(3919142): [----- Python Information -----]
admin(3919142): sys.version = 3.6.8 (default, Dec 5 2024, 08:08:09)
[GCC 8.5.0 20210514 (Red Hat 8.5.0-22)]
admin(3919142): sys.executable = /usr/bin/python3
admin(3919142): sys.prefix = /usr
admin(3919142): sys.exec_prefix = /usr
admin(3919142): sys.path = ['/usr/local/cpanel/3rdparty/mailman/pythonlib', '/usr/local/cpanel/3rdparty/mailman', '/usr/local/cpanel/3rdparty/mailman/scripts', '/usr/local/cpanel/3rdparty/mailman', '/usr/lib64/python36.zip', '/usr/lib64/python3.6', '/usr/lib64/python3.6', '/usr/lib64/python3.6/lib-dynload', '/usr/lib/python3.6/site-packages', '/usr/lib/python3.6/dist-packages', '/usr/lib64/python3.6/site-packages', '/usr/lib/python3.6/site-packages', '/usr/local/cpanel/3rdparty/mailman/Mailman', '/usr/local/cpanel/3rdparty/mailman/Mailman']
admin(3919142): sys.platform = linux
The other error
Jan 31 11:46:26 2025 (2927516) SHUNTING: 1738284386.7577894+4a112e912d36bd5fe7bbca9381b115bed4c3db0a
Jan 31 11:46:27 2025 (2927516) Uncaught runner exception: No module named 'iterators'
Jan 31 11:46:27 2025 (2927516) Traceback (most recent call last):
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/Runner.py", line 113, in _oneloop
self._onefile(msg, msgdata)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/Runner.py", line 184, in _onefile
keepqueued = self._dispose(mlist, msg, msgdata)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/BounceRunner.py", line 252, in _dispose
addrs = BouncerAPI.ScanMessages(mlist, msg)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Bouncers/BouncerAPI.py", line 66, in ScanMessages
__import__(modname)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Bouncers/Compuserve.py", line 21, in <module>
import iterators
ModuleNotFoundError: No module named 'iterators'
-
Hi,
I have been on 126.02 since at least last week some time and I too am having the same issues. I am getting very little help from our data center or cPanel for that matter regarding this issue. We host a ton of these mailman lists and my customers are not happy.
They intially tried to say it had somethign to do with DMARC, but that is not the case.
Naturally, I can't get the ticket number from my provider either. So here is the person working on it.
Ryland Robertson
Technical Support Engineer IIII am seriously considering migrating off of cPanel at this point.
0 -
Yes it is certainly not DMARC related. It's python or the mailman scripts.
Some emails are delivered but the admin functions are all broken.
0 -
Does cPRex still help out in these forums?
0 -
Hello,
Below is from the error log on a seperately installed cPanel Server running Alma Linux 8 with Python 3.6.
I also noticed when this verson of cPanel is freshly installed it doesnt create the default mailman list. This causes some of the inital errors at the top of the log below. Once I created the default list, Mailman was able to start successfully.
cat error
Feb 03 10:04:25 2025 mailmanctl(54665): PID unreadable in: /usr/local/cpanel/3rdparty/mailman/data/master-qrunner.pid
Feb 03 10:04:25 2025 mailmanctl(54665): [Errno 2] No such file or directory: '/usr/local/cpanel/3rdparty/mailman/data/master-qrunner.pid'
Feb 03 10:04:25 2025 mailmanctl(54665): Is qrunner even running?
Feb 03 10:49:57 2025 (65620) Uncaught runner exception: sequence item 0: expected str instance, bytes found
Feb 03 10:49:57 2025 (65620) Traceback (most recent call last):
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/Runner.py", line 113, in _oneloop
self._onefile(msg, msgdata)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/Runner.py", line 184, in _onefile
keepqueued = self._dispose(mlist, msg, msgdata)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/IncomingRunner.py", line 130, in _dispose
more = self._dopipeline(mlist, msg, msgdata, pipeline)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/IncomingRunner.py", line 153, in _dopipeline
sys.modules[modname].process(mlist, msg, msgdata)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Handlers/SpamDetect.py", line 110, in process
Utils.IsDMARCProhibited(mlist, addr)):
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Utils.py", line 1350, in IsDMARCProhibited
x = _DMARCProhibited(mlist, email, '_dmarc.' + f_dom)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Utils.py", line 1400, in _DMARCProhibited
"".join(txt_rec.items[0].strings))
TypeError: sequence item 0: expected str instance, bytes foundFeb 03 10:49:57 2025 (65620) SHUNTING: 1738597796.9066792+ac4b19e376f9afd3151dbaeef58c01d8979b3b7f
Feb 03 10:54:20 2025 (65620) Uncaught runner exception: sequence item 0: expected str instance, bytes found
Feb 03 10:54:20 2025 (65620) Traceback (most recent call last):
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/Runner.py", line 113, in _oneloop
self._onefile(msg, msgdata)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/Runner.py", line 184, in _onefile
keepqueued = self._dispose(mlist, msg, msgdata)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/IncomingRunner.py", line 130, in _dispose
more = self._dopipeline(mlist, msg, msgdata, pipeline)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/IncomingRunner.py", line 153, in _dopipeline
sys.modules[modname].process(mlist, msg, msgdata)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Handlers/SpamDetect.py", line 110, in process
Utils.IsDMARCProhibited(mlist, addr)):
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Utils.py", line 1350, in IsDMARCProhibited
x = _DMARCProhibited(mlist, email, '_dmarc.' + f_dom)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Utils.py", line 1400, in _DMARCProhibited
"".join(txt_rec.items[0].strings))
TypeError: sequence item 0: expected str instance, bytes foundFeb 03 10:54:20 2025 (65620) SHUNTING: 1738598060.2385314+bf00e044995b3fb70c37f472eede5ecff91b6c87
Feb 03 10:58:29 2025 (65620) Uncaught runner exception: sequence item 0: expected str instance, bytes found
Feb 03 10:58:29 2025 (65620) Traceback (most recent call last):
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/Runner.py", line 113, in _oneloop
self._onefile(msg, msgdata)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/Runner.py", line 184, in _onefile
keepqueued = self._dispose(mlist, msg, msgdata)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/IncomingRunner.py", line 130, in _dispose
more = self._dopipeline(mlist, msg, msgdata, pipeline)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/IncomingRunner.py", line 153, in _dopipeline
sys.modules[modname].process(mlist, msg, msgdata)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Handlers/SpamDetect.py", line 110, in process
Utils.IsDMARCProhibited(mlist, addr)):
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Utils.py", line 1350, in IsDMARCProhibited
x = _DMARCProhibited(mlist, email, '_dmarc.' + f_dom)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Utils.py", line 1400, in _DMARCProhibited
"".join(txt_rec.items[0].strings))
TypeError: sequence item 0: expected str instance, bytes foundFeb 03 10:58:29 2025 (65620) SHUNTING: 1738598060.2385314+5dcf203468e33b2c949c4fe99ab42bf748322e27
Feb 03 10:58:29 2025 (65619) Uncaught runner exception: sequence item 0: expected str instance, bytes found
Feb 03 10:58:29 2025 (65619) Traceback (most recent call last):
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/Runner.py", line 113, in _oneloop
self._onefile(msg, msgdata)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/Runner.py", line 184, in _onefile
keepqueued = self._dispose(mlist, msg, msgdata)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/IncomingRunner.py", line 130, in _dispose
more = self._dopipeline(mlist, msg, msgdata, pipeline)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Queue/IncomingRunner.py", line 153, in _dopipeline
sys.modules[modname].process(mlist, msg, msgdata)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Handlers/SpamDetect.py", line 110, in process
Utils.IsDMARCProhibited(mlist, addr)):
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Utils.py", line 1350, in IsDMARCProhibited
x = _DMARCProhibited(mlist, email, '_dmarc.' + f_dom)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/Utils.py", line 1400, in _DMARCProhibited
"".join(txt_rec.items[0].strings))
TypeError: sequence item 0: expected str instance, bytes foundFeb 03 10:58:29 2025 (65619) SHUNTING: 1738597796.9066792+88f1f2d1141b40881811d5e8d646afd92d76d058
0 -
Hi Coley1 !
If you could update the ticket you have with that information, that would be most helpful. Looking through this thread there are a couple of different errors I've seen, and matching these to cPanel and OS version would greatly assist in tracking this down. So far in this thread I've noted the following errors that are causing the messages to be shunted:
TypeError: sequence item 0: expected str instance, bytes found
ModuleNotFoundError: No module named 'iterators'
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 4851284091: invalid start byte
AttributeError: 'Message' object has no attribute 'policy'
KeyError: 0
In order to best keep track of these I'd ask to open or update tickets with any relevant information.
0 -
We have sent the above to our data center. There is a delay in getting it to you since we can’t open tickets directly anymore.
0 -
Thanks @cprex. Ticket number 95439714
0 -
Thanks for that - I'm following along with that ticket now as I see Brian is on it!
0 -
Update - Last night, Steven, one of our Level 3 techs, dove into this issue and created several cases for our development team to review. Ultimately, the best way to follow along is with this support article here:
https://support.cpanel.net/hc/en-us/articles/29762855785751-v126-Mailman-stopped-sending-emails
as that will get updated once we have more details.
0
Please sign in to leave a comment.
Comments
10 comments