Recently, I saw this log entry:
Jul 19 08:00:05 nyi Mailman mail-wrapper: Group mismatch error. Mailman expected the mail wrapper script to be executed as group "mailman other mail daemon", but the system's mail server executed the mail script as group "mailman". Try tweaking the mail server to run the script as group "mailman other mail daemon", or re-run configure, providing the command line option `--with-mail-gid=mailman'.
Searching around, it seems this is a known problem with a simple configuration solution.
There is a PR filed regarding this issue. The solution I tried was:
cd /usr/ports/mail/mailman make config
and I selected the POSTFIX (‘ S(MTA): for use with postfix’) option.
Then I did a ‘portupgrade -f mailman’ and restarted mailman: /usr/local/etc/rc.d/mailman restart
I sent a few tests messages via the web interface and the log entries did not reappear in /var/log/maillog
Of note: I went back into ‘make config’ and noticed that POSTFIX was no longer checked. However, if I also checked MTA (‘integrate with a MTA’), then POSTFIX would persist between invocations of ‘make config’.
Then I noticed the INTEGRATION (‘integrating postfix and mailman’) option. Looking at the Makefile, I saw:
.if ${PORT_OPTIONS:MPOSTFIX} .if ${PORT_OPTIONS:MINTEGRATION} MAIL_GID?= mailman .else MAIL_GID?= nobody .endif EXTRA_PATCHES+= ${FILESDIR}/postfix-verp.diff .endif
and
.if ${PORT_OPTIONS:MPOSTFIX} && !empty(PORT_OPTIONS:MINTEGRATION) pre-configure: @${ECHO} "MTA = 'Postfix'" >> ${WRKSRC}/Mailman/mm_cfg.py.dist.in .endif
I’m not sure what to think of this yet. :) Hope this helps.
It seems I traded one problem for another, very similar:
Jul 20 08:00:06 nyi Mailman mail-wrapper: Group mismatch error. Mailman expected the mail wrapper script to be executed as group “nobody”, but the system’s mail server executed the mail script as group “mailman”. Try tweaking the mail server to run the script as group “nobody”, or re-run configure, providing the command line option `–with-mail-gid=mailman’.