Re: Virtual Mailbox Postfix

Lineu Paiva <[email protected]> Tue, 05 Feb 2008 23:01:52 -0200
Newsgroups gmane.mail.smartlist.user
Message-ID <[email protected]>
Thanks you all.

As Werner said, i cutted off the "hash:/etc/aliases" from
$virtual_alias_maps in main.cf, and inserted it in $alias_maps
instead. I also found the text below in the postfix documentation. As
it suggests, i made one virtual_alias_maps entry like:

[email protected] : testlist@localhost

So the "local(8)" daemon could receive messages destinated to
[email protected]. And then i changed /etc/aliases with the
smartlist configuration lines. It works fine now.

Thanks,

Lineu Paiva


The Postfix documentation:

The examples that were given above already show how to direct mail for
virtual postmaster addresses to a local postmaster. You can use the
same method to direct mail for any address to a local or remote
address.

There is one major limitation: virtual aliases and virtual mailboxes
can't directly deliver to mailing list managers such as majordomo. The
solution is to set up virtual aliases that direct virtual addresses to
the local delivery agent:

    /etc/postfix/main.cf:
        virtual_alias_maps = hash:/etc/postfix/virtual

    /etc/postfix/virtual:
        [email protected] listname-request
        [email protected]         listname
        [email protected]   owner-listname

    /etc/aliases:
        listname: "|/some/where/majordomo/wrapper ..."
        owner-listname: ...
        listname-request: ...



On Feb 5, 2008 11:17 PM, Werner Reisberger <[email protected]> wrote:
> 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
>