Subject: mailman group?
To: None <bouyer@NetBSD.org>
From: Hubert Feyrer <hubert@feyrer.de>
List: pkgsrc-users
Date: 05/23/2006 01:31:15
Hi Manuel,

you're currently listed as maintainer of pkgsrc/mail/mailman. Can you 
please explain this line in the pkg's Makefile to me:

 	MAILMAN_MAILGROUP?=     guest # group of user 'daemon'

at least in NetBSD 3.0, the group of user 'daemon' is also called 
'daemon', and with the above default, sending mail doesn't seem to work:

 	% ls -l /usr/pkg/lib/mailman/mail/mailman
 	-rwxrwxr-x  1 root  mailman  22322 May 10 00:45 	/usr/pkg/lib/mailman/mail/mailman
 	% /usr/pkg/lib/mailman/mail/mailman post test2
 	Group mismatch error.  Mailman expected the mail
 	wrapper script to be executed as group "guest", but
 	the system's mail server executed the mail script as
 	group "users".  Try tweaking the mail server to run the
 	script as group "guest", or re-run configure,
 	providing the command line option `--with-mail-gid=users'.

I have tried making the above .../mailman binary setgid 'guest' and 
'daemon', but that doesn't change anything either. FWIW, the group that 
sendmail (from stock NetBSD 3.0) is running here is 'smmsp', BTW:

 	# ps -O uid,euid,gid,egid -auxwww | grep sendmail
 	 7917    0    0   17   17 ?     Ss    0:01.18 sendmai root     7917  0.0  1.0  1192  2236 ?     Ss   11:01PM  0:01.18 sendmail: accepting connections
 	# grep :17: /etc/group
 	smmsp:*:17:

Making the 'mailman' binary setgid 'smmsp' didn't work, either.

Rebuilding mailman with MAILMAN_MAILGROUP=smmsp didn't work, 
but setting MAILMAN_MAILGROUP=daemon did the job.

Is there a good reason not to change this from 'guest' to 'daemon'?


  - Hubert