Le 28/01/2011 18:45, Michael Orlitzky a écrit :
> Most of our Postfices disable local delivery with,
> 
>   local_transport = error:...
> 
> but one web server is running Mailman and can't do that (I think?)
> because it needs to support alias_maps like,
> 
>   members:             "|/usr/lib/mailman/mail/mailman post members"
> 

That's not necessary, you can use a virtual setup instead:

since virtual doesn't run commands, you need to add a transport in
master.cf:

#mailman
mailman unix  -       n       n       -       -       pipe
      flags=FR user=mailman:mailman
      argv=/path/to/mailman.sh ${extension} ${user} ...

here mailman.sh is a wrapper that runs mailman (you can probably find
already coded wrappers on the web).


then either setup per-user transport entries:

memb...@example.com     mailman:

or use a single domain entry like
lists.example.com       mailman:

and either convert your lists to use that domain or use virtual aliases:
memb...@example.com     memb...@lists.example.com


> The result is that some mail gets through to root and I get mailed a few
> warnings every day (mail to apache):
> 
>   Jan 28 11:07:09 http3 postfix/local[20920]: warning: maildir access
>   problem for UID/GID=81/81: create maildir file /var/www/.maildir
>   /tmp/1296230829.P20920.http3: Permission denied
> 
>   Jan 28 11:07:09 http3 postfix/local[20920]: warning: perhaps you need
>   to create the maildirs in advance
> 
> I really don't want to create the maildir because I don't want the
> messages in the first place. These aren't a big deal, but if there's an
> easy way to disable all non-Mailman local deliveries, I'd like to do it.


depends how these messages enter postfix. if it's via smtp, then you can
use a check_recipient_access to block them. if it's via sendmail, you
can try authorized_submit_users.

Reply via email to