[Mailman-Users] mailman and group mismatch error

Greg White pcguy11 at live.com
Mon Aug 3 16:11:30 CEST 2009






> Mark wrote:

>> Greg White wrote:

>>

>>> Mark wrote:

>>>

>>> 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'.

>

>

> As I said in an earlier post, this means nothing. It only says that

> root can't run the wrapper, but says nothing about Postfix running the

> wrapper.



If this means nothing then way is it displayed?  It is a worrysome message for the first time maillist admin.



>>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'.

>

>

> OK. This one is meaningful. It says Postfix is trying to run the

> wrapper as root (or does it?), and that is a problem. See below for

> more.

>

>

>>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'.

>

>

> Again, this one is not relevant. If you do

>

> sudo -u mailman /usr/lib/mailman/mail/mailman post test

>

> it should work. That is also what Postfix should be doing.

>

> Earlier you said -

>

>># 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

>

>

> I.e. the aliases.db is owned by 'mailman'. Also, Postfix's 'man 8

> local' says in part

>

> DELIVERY RIGHTS

> Deliveries to external files and external commands are made

> with the

> rights of the receiving user on whose behalf the delivery is

> made. In

> the absence of a user context, the local(8) daemon uses the

> owner

> rights of the :include: file or alias database. When those

> files are

> owned by the superuser, delivery is made with the rights

> specified with

> the default_privs configuration parameter.

>

>

> This says that Postfix executes the wrapper as the user who owns the

> alias database in which the pipe to the wrapper is found which is

> mailman, not root.

>

> Do you have Mailman aliases in /etc/aliases too? Even that shouldn't

> cause this problem as (you said) /etc/aliases.db is owned by root and

> that should cause Postfix to execute any pipes found there as the

> default-privs user which is normally 'nobody'.

>

> This appears to be a Postfix issue of some kind, or perhaps not.

>

> How is mutt delivering mail? In your log excerpt I only see

>

>>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'.

>

> I see nothing preceding this that indicates Postfix received the mail

> and tried to pipe it to the wrapper. I only see over two minutes later

>

>>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

>

> Which looks like a successful delivery to me. Is Mailman running? Is

> this message in qfiles/in? What happened to it?


No there are no mailman aliases in the /etc/aliases file.  Mutt should be using the local postfix server to send the message.  I checked /etc/Muttrc and there is no setting for smtp.


Mailman is running.  Logging in as root and doing:

# su mailman /usr/lib/mailman/mail/mailman post test

This account is currently not available.



# sudo -u mailman /usr/lib/mailman/mail/mailman post test

The system just sits there and does nothing.  There is only 1 account
signed up for the mail list so it should take 10 minutes to do something. 
It has been 10 minutes since I pressed enter and nothing has happened.  I waited 30 minutes and pressed Ctrl-C.  This is what I saw:Traceback (most recent call last):
  File "/usr/lib/mailman/scripts/post", line 69, in ?
    main()
  File "/usr/lib/mailman/scripts/post", line 62, in main
    inq.enqueue(sys.stdin.read(),
KeyboardInterrupt


How am I supposed to post to the maillist if I can't do it from root or a user
account.  I can't login into the system as mailman:

# cat /etc/passwd

mailman:x:41:41:GNU Mailing List Manager:/usr/lib/mailman:/sbin/nologin




The following is everything from the /var/log/maillog since I turn the PC on

this morning:



Aug  3 08:24:18 list postfix/postfix-script: starting the Postfix mail

system

Aug  3 08:24:18 list postfix/master[2468]: daemon started -- version

2.3.3, configuration /etc/postfix

Aug  3 08:25:02 list postfix/pickup[2472]: 38DFD8604E0: uid=41

from=

Aug  3 08:25:02 list postfix/cleanup[2711]: 38DFD8604E0:

message-id=

Aug  3 08:25:02 list postfix/qmgr[2473]: 38DFD8604E0:
from=,

size=625, nrcpt=1 (queue active)

Aug  3 08:25:02 list postfix/local[2713]: 38DFD8604E0:
to=,

orig_to=, relay=local, delay=0.56, delays=0.28/0.05/0/0.23,

dsn=2.0.0, status=sent (delivered to command: /usr/lib/mailman/mail/mailman

post mailman)

Aug  3 08:25:02 list postfix/qmgr[2473]: 38DFD8604E0: removed

Aug  3 08:25:03 list postfix/smtpd[2715]: connect from

localhost.localdomain[127.0.0.1]

Aug  3 08:25:03 list postfix/smtpd[2715]: BEB718604DD:

client=localhost.localdomain[127.0.0.1]

Aug  3 08:25:03 list postfix/cleanup[2711]: BEB718604DD:

message-id=

Aug  3 08:25:03 list postfix/qmgr[2473]: BEB718604DD:

from=, size=1952, nrcpt=1 (queue active)

Aug  3 08:25:03 list postfix/smtpd[2715]: disconnect from

localhost.localdomain[127.0.0.1]

Aug  3 08:25:03 list postfix/local[2713]: BEB718604DD:
to=,

relay=local, delay=0.09, delays=0.01/0/0/0.07, dsn=2.0.0, status=sent

(delivered to maildir)

Aug  3 08:25:03 list postfix/qmgr[2473]: BEB718604DD: removed

Aug  3 08:30:01 list postfix/pickup[2472]: 694258604E0: uid=41

from=

Aug  3 08:30:01 list postfix/cleanup[2723]: 694258604E0:

message-id=

Aug  3 08:30:01 list postfix/qmgr[2473]: 694258604E0:
from=,

size=625, nrcpt=1 (queue active)

Aug  3 08:30:01 list postfix/local[2725]: 694258604E0:
to=,

orig_to=, relay=local, delay=0.31, delays=0.14/0.01/0/0.16,

dsn=2.0.0, status=sent (delivered to command: /usr/lib/mailman/mail/mailman

post mailman)

Aug  3 08:30:01 list postfix/qmgr[2473]: 694258604E0: removed

Aug  3 08:30:02 list postfix/smtpd[2727]: connect from
localhost.localdomain[127.0.0.1]

Aug  3 08:30:02 list postfix/smtpd[2727]: DCB7F8604DD:

client=localhost.localdomain[127.0.0.1]

Aug  3 08:30:02 list postfix/cleanup[2723]: DCB7F8604DD:

message-id=

Aug  3 08:30:02 list postfix/qmgr[2473]: DCB7F8604DD:

from=, size=1952, nrcpt=1 (queue active)

Aug  3 08:30:02 list postfix/smtpd[2727]: disconnect from

localhost.localdomain[127.0.0.1]

Aug  3 08:30:02 list postfix/local[2725]: DCB7F8604DD:
to=,

relay=local, delay=0.02, delays=0.01/0.01/0/0, dsn=2.0.0, status=sent

(delivered to maildir)

Aug  3 08:30:02 list postfix/qmgr[2473]: DCB7F8604DD: removed

Aug  3 08:35:01 list postfix/pickup[2472]: 92E238604E0: uid=41

from=

Aug  3 08:35:01 list postfix/cleanup[2735]: 92E238604E0:

message-id=

Aug  3 08:35:01 list postfix/qmgr[2473]: 92E238604E0:
from=,

size=625, nrcpt=1 (queue active)

Aug  3 08:35:01 list postfix/local[2737]: 92E238604E0: to=,

orig_to=, relay=local, delay=0.41, delays=0.13/0.01/0/0.27,

dsn=2.0.0, status=sent (delivered to command: /usr/lib/mailman/mail/mailman

post mailman)

Aug  3 08:35:01 list postfix/qmgr[2473]: 92E238604E0: removed

Aug  3 08:35:02 list postfix/smtpd[2739]: connect from

localhost.localdomain[127.0.0.1]

Aug  3 08:35:02 list postfix/smtpd[2739]: E853B8604DD:

client=localhost.localdomain[127.0.0.1]

Aug  3 08:35:02 list postfix/cleanup[2735]: E853B8604DD:

message-id=

Aug  3 08:35:02 list postfix/qmgr[2473]: E853B8604DD:

from=, size=1952, nrcpt=1 (queue active)

Aug  3 08:35:02 list postfix/smtpd[2739]: disconnect from
localhost.localdomain[127.0.0.1]

Aug  3 08:35:02 list postfix/local[2737]: E853B8604DD:
to=,

relay=local, delay=0.02, delays=0.01/0.01/0/0, dsn=2.0.0, status=sent

(delivered to maildir)

Aug  3 08:35:02 list postfix/qmgr[2473]: E853B8604DD: removed

Aug  3 08:40:02 list postfix/pickup[2472]: 1E5398604F5: uid=41

from=

Aug  3 08:40:02 list postfix/cleanup[2836]: 1E5398604F5:

message-id=

Aug  3 08:40:02 list postfix/qmgr[2473]: 1E5398604F5:
from=,

size=625, nrcpt=1 (queue active)

Aug  3 08:40:02 list postfix/local[2838]: 1E5398604F5:
to=,

orig_to=, relay=local, delay=0.43, delays=0.25/0.01/0/0.17,

dsn=2.0.0, status=sent (delivered to command: /usr/lib/mailman/mail/mailman

post mailman)

Aug  3 08:40:02 list postfix/qmgr[2473]: 1E5398604F5: removed

Aug  3 08:40:04 list postfix/smtpd[2840]: connect from

localhost.localdomain[127.0.0.1]

Aug  3 08:40:05 list postfix/smtpd[2840]: 00ED08604E3:
client=localhost.localdomain[127.0.0.1]

Aug  3 08:40:05 list postfix/cleanup[2836]: 00ED08604E3:

message-id=

Aug  3 08:40:05 list postfix/qmgr[2473]: 00ED08604E3:

from=, size=1952, nrcpt=1 (queue active)

Aug  3 08:40:05 list postfix/smtpd[2840]: disconnect from

localhost.localdomain[127.0.0.1]

Aug  3 08:40:05 list postfix/local[2838]: 00ED08604E3:
to=,

relay=local, delay=0.02, delays=0.01/0.01/0/0, dsn=2.0.0, status=sent

(delivered to maildir)

Aug  3 08:40:05 list postfix/qmgr[2473]: 00ED08604E3: removed

Aug  3 08:45:01 list postfix/pickup[2472]: 64CBB8604F5: uid=41
from=

Aug  3 08:45:01 list postfix/cleanup[2923]: 64CBB8604F5:
message-id=

Aug  3 08:45:01 list postfix/qmgr[2473]: 64CBB8604F5:
from=, size=625, nrcpt=1 (queue active)

Aug  3 08:45:01 list postfix/local[2925]: 64CBB8604F5:
to=, orig_to=, relay=local, delay=0.29,
delays=0.12/0.01/0/0.16, dsn=2.0.0, status=sent (delivered to command:
/usr/lib/mailman/mail/mailman post mailman)

Aug  3 08:45:01 list postfix/qmgr[2473]: 64CBB8604F5: removed

Aug  3 08:45:04 list postfix/smtpd[2927]: connect from
localhost.localdomain[127.0.0.1]

Aug  3 08:45:04 list postfix/smtpd[2927]: 0EA3D8604E3:
client=localhost.localdomain[127.0.0.1]

Aug  3 08:45:04 list postfix/cleanup[2923]: 0EA3D8604E3:
message-id=

Aug  3 08:45:04 list postfix/qmgr[2473]: 0EA3D8604E3:
from=, size=1952, nrcpt=1 (queue active)

Aug  3 08:45:04 list postfix/smtpd[2927]: disconnect from
localhost.localdomain[127.0.0.1]

Aug  3 08:45:04 list postfix/local[2925]: 0EA3D8604E3:
to=, relay=local, delay=0.03, delays=0.01/0/0/0.01,
dsn=2.0.0, status=sent (delivered to maildir)

Aug  3 08:45:04 list postfix/qmgr[2473]: 0EA3D8604E3: removed

Aug  3 08:50:01 list postfix/pickup[2472]: AAA1E8604F5: uid=41
from=

Aug  3 08:50:01 list postfix/cleanup[2936]: AAA1E8604F5:
message-id=

Aug  3 08:50:01 list postfix/qmgr[2473]: AAA1E8604F5:
from=, size=625, nrcpt=1 (queue active)

Aug  3 08:50:01 list postfix/local[2938]: AAA1E8604F5:
to=, orig_to=, relay=local, delay=0.3,
delays=0.13/0.01/0/0.16, dsn=2.0.0, status=sent (delivered to command:
/usr/lib/mailman/mail/mailman post mailman)

Aug  3 08:50:01 list postfix/qmgr[2473]: AAA1E8604F5: removed

Aug  3 08:50:04 list postfix/smtpd[2940]: connect from
localhost.localdomain[127.0.0.1]

Aug  3 08:50:04 list postfix/smtpd[2940]: 1C3DA8604E3:
client=localhost.localdomain[127.0.0.1]

Aug  3 08:50:04 list postfix/cleanup[2936]: 1C3DA8604E3:
message-id=

Aug  3 08:50:04 list postfix/qmgr[2473]: 1C3DA8604E3:
from=, size=1952, nrcpt=1 (queue active)

Aug  3 08:50:04 list postfix/smtpd[2940]: disconnect from
localhost.localdomain[127.0.0.1]

Aug  3 08:50:04 list postfix/local[2938]: 1C3DA8604E3:
to=, relay=local, delay=0.02, delays=0.01/0/0/0.01,
dsn=2.0.0, status=sent (delivered to maildir)

Aug  3 08:50:04 list postfix/qmgr[2473]: 1C3DA8604E3: removed


_________________________________________________________________
Windows Live™: Keep your life in sync.
http://windowslive.com/explore?ocid=PID23384::T:WLMTAGL:ON:WL:en-US:NF_BR_sync:082009


More information about the Mailman-Users mailing list