> Again, an email address IS NOT an account.
>

Ok, understood.

> If it helps to rephrase the example:
>
> Prerequisites:
>     foo@example delivers to script
>     foo.maildir@example delivers to maildir

I don't know how to satisfy the last prerequisite. Can you help?

Currently have the following configuration -

virtual_mailbox_maps = pgsql:/etc/postfix/pgsql_virtual_mailbox_maps.cf

/etc/postfix/pgsql_virtual_mailbox_maps.cf
-------------------------------------------------------------
query = SELECT login  FROM usr WHERE login = '%u

I also tried changing the output of the query which didn't make a
difference (I think I read somewhere that Postfix treats the return as
a boolean)

query = SELECT login || '\t' || login||'/'  FROM usr WHERE login = '%u

I tried setting these options, as well, but that didn't work either -

virtual_mailbox_base = /var/mail
home_mailbox = Maildir/

>
> Use virtual_alias_maps with:
>     foo@example foo@example, foo.maildir@example
>

If I understand correctly, I need to effectively "make up" two emails
for each account and somehow configure separate deliveries for each
email.
I would think the delivery configuration would be based on the domain,
but I guess you are suggesting it be done using the login part - foo
vs foo.maildir (using "login" loosely here).


> Now, mail for foo@example goes to script and maildir.
>
>         Wietse

Reply via email to