With a little side of applesauce...

Sunday, May 27, 2007

Exim4 / Mailman - Debian sarge and user Debian-exim

I finally figured the mismatched group error with the mailman package in Debian. I was getting this in the /var/log/exim4/mainlog:

2007-05-27 15:06:15 1HsP0J-0006a9-OV ** userlist@myserver.org R=mailman_router T=mailman_transport: Child process of mailman_transport transport returned 2 from command: /var/lib/mailman/mail/mailman

I saw that mailman was running as user "list":

list 25276 1 0 15:05 ? 00:00:00 /usr/bin/python /usr/lib/mailman/bin/mailmanctl start

while exim4 runs as Debian-exim:

Debian- 25794 1 0 15:16 ? 00:00:00 /usr/sbin/exim4 -bd -q30m

My previous fix was to recompile the source deb package to change the flag:

--with-mail-gid=Debian-exim


and then using that package to upgrade, but now, I realized it was my Exim4 config all this time... In:

/etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs

I changed:

# User and group for Mailman, should match your --with-mail-gid
# switch to Mailman's configure script.
MAILMAN_USER=list
MAILMAN_GROUP=Debian-exim

To:

# User and group for Mailman, should match your --with-mail-gid
# switch to Mailman's configure script.
MAILMAN_USER=list
MAILMAN_GROUP=list

Ran:

update-exim4.conf ; /etc/init.d/exim4 restart

and Voila! My exim4 mailman routers are sending :)

No comments: