On 9/20/21 11:37 PM, Masaharu Kawada wrote:
Hello Mark,
Very much appreciate your help.
What is the error message and traceback from Mailman's logs/mailman.log?
The /var/log/mailman/error shows following logs when the issue happens.
~~~~~
Sep 21 15:30:48 2021 admin(10045):
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
admin(10045): [----- Mailman Version: 2.1.29 -----]
admin(10045): [----- Traceback ------]
admin(10045): Traceback (most recent call last):
admin(10045): File "/usr/lib/mailman/scripts/driver", line 117, in
run_main
admin(10045): main()
admin(10045): File "/usr/lib/mailman/Mailman/Cgi/rmlist.py", line 104, in
main
admin(10045): process_request(doc, cgidata, mlist)
admin(10045): File "/usr/lib/mailman/Mailman/Cgi/rmlist.py", line 139, in
process_request
admin(10045): sys.modules[modname].remove(mlist, cgi=1)
admin(10045): File "/usr/lib/mailman/Mailman/MTA/Postfix.py", line 407,
in remove
admin(10045): _do_remove(mlist, ALIASFILE, False)
admin(10045): File "/usr/lib/mailman/Mailman/MTA/Postfix.py", line 398,
in _do_remove
admin(10045): outfp.close()
admin(10045): AttributeError: 'NoneType' object has no attribute 'close'
The issue is Mailman is trying to remove the aliases for this list from
the data/aliases file. It does this by creating a data/aliases.tmp file,
copying all of data/aliases except for what it wants to delete and then
renaming data/aliases.tmp to data/aliases.
It appears that creating the data/aliases.tmp file as is done at
https://bazaar.launchpad.net/~mailman-coders/mailman/2.1/view/1799/Mailman/MTA/Postfix.py#L362
sets outfp to None. I don't see how that can happen without throwing an
exception at that point.
What does `ls -la` on Mailman's data/ directory show and what is the
content of Mailman's data/aliases file?
--
Mark Sapiro <m...@msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/