Re: Virtual Mailbox Postfix

Werner Reisberger <[email protected]> Wed, 06 Feb 2008 02:17:40 +0100
Newsgroups gmane.mail.smartlist.user
Message-ID <[email protected]>
On Fri, Feb 01, 2008 at 04:59:34PM -0300, Lineu Paiva wrote:
> Let me ask you if SmartList will work in my Postfix installation. I'm
using ...

> virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_email2email.cf,
> hash:/etc/aliases
 
You cannot use virtual_alias_maps for piping to commands.

use something like 

alias_maps = hash:/etc/mail/listaliases, hash:/etc/mail/otheraliases
and put in /etc/mail/listaliases:

 ########################################################################
 testlist: "|exec /var/list/.bin/flist testlist"
 testlist-request: "|exec /var/list/.bin/flist testlist-request"
 ########################################################################
 
If you change owner:group of /etc/mail/listaliases to the smartlist
user flist will run as smartlist user and you are able to
remove setuid/setgid permissions on flist.

 Werner