Various Gentoo server Troubleshooting

Mailman Group Mismatch Error

After migrating my Mailman 2.1.15 installation to a newly-installed server running <ailman 2.1.20, I encountered an error in the Postfix logs when posting to a mailing list.


Postfix 3.0.3-r1, Mailman 2.1.20, Gentoo Linux

The Error

Postfix would dump the following error in the /var/log/mail.log file whenever anyone tried to post to a Mailman mailing list:

Feb 16 18:32:54 server postfix/local[18522]: 4EF7C43E2F: to=<>, relay=local, delay=0.25, delays=0.15/0/0/0.1, dsn=5.3.0, status=bounced (Command died with status 2: "/usr/lib/mailman/mail/mailman post mylist". Command output: Group mismatch error.  Mailman expected the mail wrapper script to be executed as group "mailman", but the system's mail server executed the mail script as group "nobody".  Try tweaking the mail server to run the script as group "mailman", or re-run configure,  providing the command line option `--with-mail-gid=nobody'. )
Googling on the “Group mismatch error” part yields a lot of results, many of them from 5+ years ago, and none that really offered a way that fixed my problem. Most suggested doing as the error message said and recompile Mailman with a new GID. This can be done my setting the MAILMAN_MAILGID / MAILMAN_MAILGRP variables in /etc/portage/make.conf, but setting these to the nobody group just resulted in another error:
Feb 16 19:17:06 server postfix/local[19138]: D7DCA43E2F: to=<>, relay=local, delay=0.36, delays=0.17/0/0/0.19, dsn=5.3.0, status=bounced (Command died with status 1: "/usr/lib/mailman/mail/mailman post mylist". Command output: Traceback (most recent call last):   File "/usr/lib64/mailman/scripts/post", line 69, in <module>     main() File "/usr/lib64/mailman/scripts/post", line 61, in main     inq = get_switchboard(mm_cfg.INQUEUE_DIR)   File "/usr/lib64/mailman/Mailman/Queue/", line 25, in get_switchboard     switchboard = _sbcache.setdefault(qdir, Switchboard(qdir))   File "/usr/lib64/mailman/Mailman/Queue/", line 81, in __init__     os.mkdir(self.__whichq, 0770) OSError: [Errno 13] Permission denied: '/var/lib/mailman/qfiles/in' )
Thus, no joy, and besides, Mailman was configured to run as mailman/mailman on the system I was migrating from.


The problem, it turned out for me, was the permissions of the aliases file in /etc/mail. On the new system it was owned by root:root, while on the old system, it was mailman:mailman. Changing it back to the latter fixed the problem for me:

> chmod mailman:mailman /etc/mail/aliases

You could leave a comment if you were logged in.
setup/gentoo/server/troubleshooting.txt · Last modified: 2016/02/17 16:05 by fronck
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki