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

Bug 24527

Summary: Posting to mailman list gives error
Product: Gentoo Linux Reporter: Narada Sage <narada.sage>
Component: Current packagesAssignee: Nick Hadaway <grandmasterlinux>
Status: RESOLVED FIXED    
Severity: normal CC: cypher, grandmasterlinux
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Narada Sage 2003-07-15 08:54:01 UTC
Hello,

I set MAILGID="207" in mailman ebuild which was my postfix GID and emerged
mailman.  Then I configured it according to instructions on gentoo-docs,
/usr/share/docs and also the postinst ebuild messages.  Everything works fine
with one exception.  When I try to post a message to a newly created list I get
the following error.

----------------
This is the Postfix program at host codewordt.co.uk.

I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the message returned below.

            The Postfix program

<listname@domain>: Command died with status 2:
    "/usr/local/mailman/mail/mailman post mailman". Command output: Group
    mismatch error.  Mailman expected the mail wrapper script to be executed as
    group "postfix", but the system's mail server executed the mail script as
    group "nobody".  Try tweaking the mail server to run the script as group
    "postfix", or re-run configure,  providing the command line option
    `--with-mail-gid=nobody'.
----------------

How can this problem be resolved?

$ emerge info
Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.21 i686 AMD Athlon(tm) processor
GENTOO_MIRRORS="http://212.219.56.131/sites/www.ibiblio.org/gentoo/
http://194.83.57.2/sites/www.ibiblio.org/gentoo/
http://194.83.57.3/sites/www.ibiblio.org/gentoo/
http://212.219.56.162/sites/www.ibiblio.org/gentoo/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /opt/tomcat/conf"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 3dnow crypt gif jpeg mad mmx ncurses oggvorbis pdflib png spell
truetype xml2 zlib berkdb slang readline tetex java mysql tcpd pam libwww ssl
perl python ldap acpi apache2 curl gd gd-external imap junit kerberos krb4
maildir md5sum nas nptl samba sasl tiff xml -oss -apm -arts -avi -cups -encode
-gpm -gtk -imlib -kde -gnome -libg++ -mikmod -motif -mpeg -nls -opengl -qt
-quicktime -sdl -svga -X -xmms -xv -gdbm -tcltk"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O3 -pipe"
CXXFLAGS="-march=athlon-tbird -O3 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache buildpkg fixpackages strict"

$ id mailman
uid=280(mailman) gid=280(mailman) groups=280(mailman),16(cron)

$ groups mailman
cron mailman

$ id postfix
uid=207(postfix) gid=207(postfix) groups=207(postfix),12(mail)

$ groups postfix
mail postfix
Comment 1 Narada Sage 2003-07-15 08:55:16 UTC
I should also mention that I'm using apache-2.0.47.
Comment 2 Narada Sage 2003-07-15 10:24:22 UTC
I re-emerged mailman with --mail-gid=nobody in ebuild as instructed by previous  error message and then got the following error message.  Now I'm really puzzled.

----
Command died with status 2:
    "/usr/local/mailman/mail/mailman post mailman". 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'.
----
Comment 3 Nick Hadaway 2003-07-21 01:27:40 UTC
I have only verified mailman working with sendmail... 

I will test with postfix and find a solution for this.
Comment 4 Narada Sage 2003-07-21 02:41:38 UTC
Since my last comment I changed $MAILGID to nobody instead of hardcoding --mail-gid=nobody into the ebuild.  Now, although mailman works I have a brand new problem.  When a member posts an email to a list mailman perceives that email as coming from a non-member.  As a result, it blocks it and sends it off for moderation.  This is really frustrating since I've been through all configuration and none of the members can post by bypassing moderation.  I've subscribed to mailman users list and asked there but did not receive any helpful replies.  If you have any idea I'd be grateful.  As a last resort I may have to remove all traces of mailman and start from scratch again.
Comment 5 Nick Hadaway 2003-07-22 08:29:50 UTC
mailman-2.1.2-r1 has been added to portage which changes the MAILGID to 280 (mailman)... I have tested this with both sendmail and postfix and it works well.  Please test for yourself and let me know if you run into any further problems.
Comment 6 Narada Sage 2003-08-28 04:36:08 UTC
Please reopen this bug.  This problem is back.  I held off on mailman since this bug was posted and waited for the apache2 and mailgid bugs to be fixed and have today reinstalled and reconfigured mailman (2.1.2-r1).  However, when I post to a mailman list I get the following error.

Command died with status 2:
    "/usr/local/mailman/mail/mailman post mailman". 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'.

$ emerge info
Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.21 i686 AMD Athlon(tm) processor
GENTOO_MIRRORS="http://212.219.56.162/sites/www.ibiblio.org/gentoo/ http://212.219.56.152/sites/www.ibiblio.org/gentoo/ http://212.219.56.131/sites/www.ibiblio.org/gentoo/ http://194.83.57.3/sites/www.ibiblio.org/gentoo/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /opt/tomcat/conf"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 3dnow crypt foomaticdb gif jpeg mad mmx ncurses oggvorbis pdflib png spell truetype xml2 zlib berkdb slang readline tetex java mysql tcpd pam libwww ssl perl python acpi acpi4linux apache2 curl dedicated fax gd gd-external imap junit kerberos maildir md5sum nas nptl parse-clocks php samba sasl tiff xml -oss -apm -arts -avi -cups -encode -gpm -gtk -imlib -kde -gnome -libg++ -mikmod -motif -mpeg -nls -opengl -qt -quicktime -sdl -svga -X -xmms -xv -gdbm -tcltk -ldap"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O3 -pipe"
CXXFLAGS="-march=athlon-tbird -O3 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache buildpkg fixpackages"

$ id mailman
uid=280(mailman) gid=280(mailman) groups=280(mailman),16(cron)

$ groups mailman
cron mailman

$ id postfix
uid=207(postfix) gid=207(postfix) groups=207(postfix),12(mail)

$ groups postfix
mail postfix

Why is this occuring and what can be done to resolve it?
Comment 7 foser (RETIRED) gentoo-dev 2003-11-27 14:18:30 UTC
*** Bug 34528 has been marked as a duplicate of this bug. ***