Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 652684

Summary: net-mail/mailman-2.1.26 with mail-mta/postfix - mail-wrapper: 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"
Product: Gentoo Linux Reporter: Phil Stracchino (Unix Ronin) <phils>
Component: Current packagesAssignee: Hanno Böck <hanno>
Status: RESOLVED OBSOLETE    
Severity: normal CC: net-mail+disabled
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Phil Stracchino (Unix Ronin) 2018-04-06 14:31:53 UTC
Postfix runs mailman scripts as user nobody, as it should.  However, mailman 2.1.24 and 2.1.26 (at least, possibly older versions as well) configure mailman with --with-mail-gid=280.  This results in a group mismatch error when Postfix tries to deliver mail to a Mailman list:

Apr  6 06:41:19 minbar Mailman mail-wrapper: 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'.


If mailman is manually reconfigured after 'ebuild configure' with --with-mail-gid=nobody, everything works again.  I'm not sure what the best method is for the other option, configuring postfix to run mailman as group mailman.

#19257, #106403 and #568582 are related.
Comment 1 Hanno Böck gentoo-dev 2020-11-10 20:46:42 UTC
Affects obsolete mailman2 package.