Mailman3 not delivering list mail
Hello, I have a fresh mailman3 installation that I recently upgraded from mailman2 on a debian system. In any event, I imported some test lists and tested my installation thoroughly and everything seemed to be working fine. Then, today, I imported a important live working mailing list from mailman2 and everything appeared to go well both with the import of the list addresses and the archives. However, when I sent out the first post on Mailman3 the post was not echoed to the list members. Then, I subsequently discovered that the queue had lots of mail undelivered in /var/lib/mailman3/queue/bad. It appears that my mailman3 installation has stopped delivering list mail and that all of the list mail is stuck in /var/lib/mailman3/queue/bad. How do I resolve this situation? Can I just remove the files with "rm *" in the /var/lib/mailman3/queue/bad directory? Please let me know what I should do to get things working again. Thanks, Gordon
On 10/1/20 9:27 AM, Gordon Dickens wrote:
It appears that my mailman3 installation has stopped delivering list mail and that all of the list mail is stuck in /var/lib/mailman3/queue/bad. How do I resolve this situation? Can I just remove the files with "rm *" in the /var/lib/mailman3/queue/bad directory? Please let me know what I should do to get things working again.
There should be messages in mailman.log like Uncaught runner exception:
followed by an exception and traceback and possibly
Skipping and preserving unparseable message:
or SHUNTING FAILED, preserving original entry:
. What do these messages say?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hi Mark,
I have errors like these in the mailman3 logs but they occurred earlier (that is prior to my attempting to post messages to the new mailman3 mailing list and which are not echoed to list members):
Oct 01 11:08:22 2020 (7895) Skipping and preserving unparseable message: 1601564901.8696995+c2b86623e2dcc8e9800b10ca2bcf8b82e8d8d662 Oct 01 11:08:23 2020 (7895) Uncaught runner exception: [Errno 13] Permission denied: '/var/lib/mailman3/queue/virgin/1601564902.28165 63+16bd684dfb18c6175f3e7b0b11312cb203dc9c89.pck' Oct 01 11:08:23 2020 (7895) Traceback (most recent call last): File "/usr/lib/python3/dist-packages/mailman/core/runner.py", line 158, in _one_iteration msg, msgdata = self.switchboard.dequeue(filebase) File "/usr/lib/python3/dist-packages/mailman/core/switchboard.py", line 150, in dequeue with open(filename, 'rb') as fp: PermissionError: [Errno 13] Permission denied: '/var/lib/mailman3/queue/virgin/1601564902.2816563+16bd684dfb18c6175f3e7b0b11312cb203dc9c89.pck'
The above errors occurred prior to the time that I attempted to send to the mailman3 list. However, here is what I see in the logs immediately after I sent a message to the list and which was not then echoed to list members:
Oct 01 11:51:03 2020 (7888) ACCEPT: <f92eeaad-245c-124b-dd09-b31a6b3c5686@dickens.com> Oct 01 11:51:07 2020 (7885) HyperKitty archived message <f92eeaad-245c-124b-dd09-b31a6b3c5686@dickens.com> to https://georgiajets.org /mailman3/hyperkitty/list/members@georgiajets.org/message/NUOU6UQ6DSHSK2WKNVZFIN5AELK5EYBU/ Oct 01 11:51:07 2020 (7891) Cannot connect to SMTP server localhost on port 25
Please note the message about the SMTP server not being able to connect to local host on port 25. Please let me know what you think is wrong and how to fix it.
Thanks,
Gordon
On 10/1/20 11:18 AM, gordon@dickens.com wrote:
Hi Mark,
I have errors like these in the mailman3 logs but they occurred earlier (that is prior to my attempting to post messages to the new mailman3 mailing list and which are not echoed to list members):
Oct 01 11:08:22 2020 (7895) Skipping and preserving unparseable message: 1601564901.8696995+c2b86623e2dcc8e9800b10ca2bcf8b82e8d8d662 Oct 01 11:08:23 2020 (7895) Uncaught runner exception: [Errno 13] Permission denied: '/var/lib/mailman3/queue/virgin/1601564902.28165 63+16bd684dfb18c6175f3e7b0b11312cb203dc9c89.pck' Oct 01 11:08:23 2020 (7895) Traceback (most recent call last): File "/usr/lib/python3/dist-packages/mailman/core/runner.py", line 158, in _one_iteration msg, msgdata = self.switchboard.dequeue(filebase) File "/usr/lib/python3/dist-packages/mailman/core/switchboard.py", line 150, in dequeue with open(filename, 'rb') as fp: PermissionError: [Errno 13] Permission denied: '/var/lib/mailman3/queue/virgin/1601564902.2816563+16bd684dfb18c6175f3e7b0b11312cb203dc9c89.pck'
These relate to the messages in the bad
queue. It seems there is/was
andn issue with ownership and/or permissions on some directory or
directories is the path /var/lib/mailman3/queue/virgin
. Is mailman3,
queue and virgin user and group list
and searchable, readable and
writable by list
. Are all the runners running as user list
ps -fwwA|grep runner
The above errors occurred prior to the time that I attempted to send to the mailman3 list. However, here is what I see in the logs immediately after I sent a message to the list and which was not then echoed to list members:
Oct 01 11:51:03 2020 (7888) ACCEPT: <f92eeaad-245c-124b-dd09-b31a6b3c5686@dickens.com> Oct 01 11:51:07 2020 (7885) HyperKitty archived message <f92eeaad-245c-124b-dd09-b31a6b3c5686@dickens.com> to https://georgiajets.org /mailman3/hyperkitty/list/members@georgiajets.org/message/NUOU6UQ6DSHSK2WKNVZFIN5AELK5EYBU/ Oct 01 11:51:07 2020 (7891) Cannot connect to SMTP server localhost on port 25
This is delivery of the outgoing message which looks like it was
successfully archived. These messages come from
/var/lib/mailman3/queue/out
and after the failure are put in
/var/lib/mailman3/queue/retry
and periodically are moved back to the
out
queue and tried again.
Please note the message about the SMTP server not being able to connect to local host on port 25. Please let me know what you think is wrong and how to fix it.
Normally it means exactly what is says. Is your MTA (Postfix or ??)
running? Can you telnet localhost 25
successfully? Note that if the
message actually says local host
and not localhost
, the setting for
smtp_host in the [mta] section of mailman.cfg needs to be fixed.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 10/1/20 11:50 AM, Mark Sapiro wrote:
Normally it means exactly what is says. Is your MTA (Postfix or ??) running? Can you
telnet localhost 25
successfully? Note that if the message actually sayslocal host
and notlocalhost
, the setting for smtp_host in the [mta] section of mailman.cfg needs to be fixed.
This error can also occur due to an error on templates. When you
imported the list did you run mailman import21
as root. This is wrong!
Never run mailman
commands as root. Always run them as the Mailman
user, list
in the case of the Debian/Ubuntu package.
Anyway, if this is the tssue, you will find templates in
/var/lib/mailman3/template/lists/LIST-ID/en/ that are owned by root
and this needs to be changed to list
.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hi Mark,
Yes, that fixed it. I had been running the command line as root. However, everything started working properly once I changed the permissions of the directories and files.
Thanks!
Gordon
Hi Mark,
BTW, as an aside, there is not any mention of admin users needing to be logged in as user=list instead of user=root in the documention here:
https://docs.mailman3.org/en/latest/migration.html
I highly recommend that the documentation be amended to clearly state that the admin users need to be logged in as user=list. This is especially so since, while the Debian package installation does create a user=list and a group=list, the user=list is disabled by default as follows in /etc/passwd:
list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
Note "nologin".
Just a suggestion...
FYI,
Gordon
On 10/2/20 4:53 AM, gordon@dickens.com wrote:
Hi Mark,
BTW, as an aside, there is not any mention of admin users needing to be logged in as user=list instead of user=root in the documention here:
https://docs.mailman3.org/en/latest/migration.html
I highly recommend that the documentation be amended to clearly state that the admin users need to be logged in as user=list.
The list
user is a Debian/Ubuntu package thing. The Mailman user can
actually be anything.
I have added a note at <https://docs.mailman3.org/en/latest/migration.html#fn1> saying that these commands should be run as the Mailman user and not as root.
The mailman command itself, if run as root, should probably set the effective user:group to the Mailman user:group. We don't know that from the Mailman config, but maybe use the owner and group of the mailman command file. This is now <https://gitlab.com/mailman/mailman/-/issues/776>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
Gordon Dickens
-
gordon@dickens.com
-
Mark Sapiro