[Mailman-Users] mailman and group mismatch error

Greg White pcguy11 at live.com
Sat Aug 1 20:43:48 CEST 2009


> Mark wrote:
>> Greg wrote:
>>
>># ls -lhZ /etc/aliases*
>>-rw-r--r-- root root system_u:object_r:etc_aliases_t /etc/aliases
>>-rw-r--r-- root root system_u:object_r:etc_aliases_t /etc/aliases.db
>>
>># ls -lhZ /etc/mailman/aliases*
>>-rw-rw---- root mailman user_u:object_r:mailman_data_t /etc/mailman/aliases
>>-rw-rw-r-- mailman mailman user_u:object_r:mailman_data_t /etc/mailman/aliases.db
>
>
> This looks good. The key thing is that Mailman's aliases.db is owned by
> mailman.
>
snip
>>
>>So do I have everything configured right??
>>Do I have to recompile mailman? If so it looks like I have to recompile starting with ./configure --with-mail-gid=root
>
>
> The above looks good. what is the exact group mismatch error message
> you get in the DSN and/or maillog when you mail to test at list.xyz.com?

To send the test message I sshd into my box as user, su - to root, and did:
# /usr/lib/mailman/mail/mailman post test
Group mismatch error. Mailman expected the mail wrapper script to be
executed as one of the following groups:
[mail, postfix, mailman, nobody, daemon],
but the system's mail server executed the mail script as group: "root".
Try tweaking the mail server to run the script as one of these groups:
[mail, postfix, mailman, nobody, daemon],
or re-run configure providing the command line option:
'--with-mail-gid=root'.

I then use mutt (still as root) to send an email and this is what I see in /var/log/maillog
Aug  1 13:21:44 list postfix/postfix-script: starting the Postfix mail system
Aug  1 13:21:44 list postfix/master[2494]: daemon started -- version 2.3.3, configuration /etc/postfix
Aug  1 13:22:23 list Mailman mail-wrapper: Group mismatch error. Mailman expected the mail wrapper script to be executed as one of the following groups: [mail, postfix, mailman, nobody, daemon], but the system's mail server executed the mail script as group: "root". Try tweaking the mail server to run the script as one of these groups: [mail, postfix, mailman, nobody, daemon], or re-run configure providing the command line option: '--with-mail-gid=root'.
Aug  1 13:25:01 list postfix/pickup[2498]: C122C8604E0: uid=41 from=
Aug  1 13:25:01 list postfix/cleanup[2767]: C122C8604E0: message-id=
Aug  1 13:25:01 list postfix/qmgr[2499]: C122C8604E0: from=, size=625, nrcpt=1 (queue active)
Aug  1 13:25:02 list postfix/local[2769]: C122C8604E0: to=, orig_to=, relay=local, delay=0.51, delays=0.25/0.05/0/0.21, dsn=2.0.0, status=sent (delivered to command: /usr/lib/mailman/mail/mailman post mailman)
Aug  1 13:25:02 list postfix/qmgr[2499]: C122C8604E0: removed
Aug  1 13:25:04 list postfix/smtpd[2771]: connect from localhost.localdomain[127.0.0.1]
Aug  1 13:25:04 list postfix/smtpd[2771]: 792BE8604DD: client=localhost.localdomain[127.0.0.1]
Aug  1 13:25:04 list postfix/cleanup[2767]: 792BE8604DD: message-id=
Aug  1 13:25:04 list postfix/qmgr[2499]: 792BE8604DD: from=, size=1952, nrcpt=1 (queue active)
Aug  1 13:25:04 list postfix/smtpd[2771]: disconnect from localhost.localdomain[127.0.0.1]
Aug  1 13:25:04 list postfix/local[2769]: 792BE8604DD: to=, relay=local, delay=0.07, delays=0.01/0/0/0.06, dsn=2.0.0, status=sent (delivered to maildir)
Aug  1 13:25:04 list postfix/qmgr[2499]: 792BE8604DD: removed
Aug  1 13:26:19 list postfix/pickup[2498]: C49B88604E0: uid=0 from=
Aug  1 13:26:19 list postfix/cleanup[2767]: C49B88604E0: message-id=
Aug  1 13:26:19 list postfix/qmgr[2499]: C49B88604E0: from=, size=418, nrcpt=1 (queue active)
Aug  1 13:26:20 list postfix/local[2769]: C49B88604E0: to=, relay=local, delay=0.28, delays=0.1/0/0/0.18, dsn=2.0.0, status=sent (delivered to command: /usr/lib/mailman/mail/mailman post test)
Aug  1 13:26:20 list postfix/qmgr[2499]: C49B88604E0: removed

Finally I exit root and go back to being a user and I do:
/usr/lib/mailman/mail/mailman post test
Group mismatch error. Mailman expected the mail wrapper script to be
executed as one of the following groups:
[mail, postfix, mailman, nobody, daemon],
but the system's mail server executed the mail script as group: "user".
Try tweaking the mail server to run the script as one of these groups:
[mail, postfix, mailman, nobody, daemon],
or re-run configure providing the command line option:
'--with-mail-gid=user'.

Thanks,
Greg

_________________________________________________________________
Get free photo software from Windows Live
http://www.windowslive.com/online/photos?ocid=PID23393::T:WLMTAGL:ON:WL:en-US:SI_PH_software:082009


More information about the Mailman-Users mailing list