[Mailman-Users] basic postfix/mailman setup issue

Peter pmatulis at sympatico.ca
Wed Mar 21 04:21:03 CET 2007


Le Mardi 20 Mars 2007 21:27, Mark Sapiro a écrit :
> Peter wrote:
> > I have not been able to have mailman generate the aliases automatically. 
> > I decided, for now, to go manual.  I put the aliases I got from
> > 'genaliases' inside postfix's alias file and then generated the new db
> > ('newaliases').
> >
> > Now I am getting the group mismatch error:
>
> Because of the owner:group of /etc/mail/aliases

Ha,



> > 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'. )
> >
> > Yet I have read that this has been fixed since OpenBSD 3.8.  I have
> > installed the postfix flavour (of mailman) via OBSD packages.  I guess I
> > can remove it and install via OBSD ports and specify the configure option
> > '--with-mail-gid=mailman'.
>
> With Postfix, you fix this by ensuring that the aliases* files in which
> Mailman's aliases are found are group mailman. That's only one reason
> why you want Mailman-Postfix integration.
>
> > Re mailman-generated aliases:
> > I cannot determine where this mailman package stores them.  I created
> > /var/spool/mailman/data/aliases but nothing gets put there.
>
> They get stored in Mailman's data/ directory which you shouldn't have to
> create and which almost certainly is not /var/spool/mailman/data. Look
> in Defaults.py for the definition of VAR_PREFIX, and that's where you'll
> find it.

Here it is:

VAR_PREFIX      = '/var/spool/mailman'

The data directory existed.  I only 'touch'ed /var/spool/mailman/data/aliases.

> > This is what I have put in mm_cfg.py:
> >
> > add_virtualhost( 'mailman.domain.com' )
> > MTA = 'Postfix'
> > POSTFIX_ALIAS_CMD = '/usr/local/sbin/postalias'
> > POSTFIX_MAP_CMD = '/usr/local/sbin/postmap'
> >
> > Plus...
> >
> > once I edited this file (as above) I received an error when trying to
> > create a list ("We're sorry, we hit a bug!").  The list does get created.
> >  I'm sure this error is related to the aliases.
>
> Yes, it almost certainly is. What is the traceback for this error from
> Mailman's 'error' log. Or alternatively, if you have the lines

IOError: [Errno 13] Permission denied: '/var/spool/mailman/data/aliases'

$ ls -lh /var/spool/mailman/data/aliases
-rw-r--r--  1 root      _mailman     0B Mar 20 14:31 aliases

$ chmod 660 /var/spool/mailman/data/aliases

Then I created another list via the interface and no error!

However, I did get a postfix error since I had not put in the new aliases file 
path.  After doing that and reloading postfix I created another list.  
Everything was ok except I get the Group mismatch error again.

Guess I need to remove the package and install the port.

Pedro


More information about the Mailman-Users mailing list