[Mailman-Users] basic postfix/mailman setup issue

Peter pmatulis at sympatico.ca
Wed Mar 21 02:00:53 CET 2007


Le Mardi 20 Mars 2007 11:17, Mark Sapiro a écrit :
> Peter wrote:
> >I am testing a basic installation of mailman 2.1.8 on OpenBSD 4.0.
> >
> >When I try to reply to the confirmation request I get an error from
> > postfix saying that <list>-request at domain.com is not in the recipient
> > table:
> >
> >Recipient address rejected: User unknown in local recipient table
> >
> >I thought the mailman aliases handles this?  I have the following in
> > main.cf:
> >
> >alias_maps = hash:/etc/mail/aliases
> >
> >/etc/mail/aliases contains:
> >
> >mailman:              "|/usr/local/lib/mailman/mail/mailman post mailman"
> >mailman-admin:        "|/usr/local/lib/mailman/mail/mailman admin mailman"
> >mailman-bounces:      "|/usr/local/lib/mailman/mail/mailman bounces
> > mailman" mailman-confirm:      "|/usr/local/lib/mailman/mail/mailman
> > confirm mailman" mailman-join:        
> > "|/usr/local/lib/mailman/mail/mailman join mailman" mailman-leave:       
> > "|/usr/local/lib/mailman/mail/mailman leave mailman" mailman-owner:      
> >  "|/usr/local/lib/mailman/mail/mailman owner mailman" mailman-request:   
> >   "|/usr/local/lib/mailman/mail/mailman request mailman"
> > mailman-subscribe:    "|/usr/local/lib/mailman/mail/mailman subscribe
> > mailman" mailman-unsubscribe:  "|/usr/local/lib/mailman/mail/mailman
> > unsubscribe mailman"
> >
> >What else do I need to do?
>
> Those aliases are only for the one 'mailman' site list. You need a set
> for each list with it's own list name. E.g.,
>
> <list>:      "|/usr/local/lib/mailman/mail/mailman post <list>"
>
> and so on - a full set of 10 for each list.
>
>
> With Postfix you can do this 'automatically' from Mailman. You set
>
> MTA = 'Postfix'
>
> in mm_cfg.py, and you add
>
> hash:usr/local/lib/mailman/data/aliases
>
> (or whatever the correct path is) to alias_maps in your Postfix
> main.cf. See <http://www.list.org/mailman-install/node13.html> for
> more complete information.
>
> All of mailman's aliases will then be automatically maintained in
> usr/local/lib/mailman/data/aliases.

Thanks for the help.

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:

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

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.

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.

Thanks again,

Pedro


More information about the Mailman-Users mailing list