An easy way I found was to simply use the 'deliver' dovecot LDA instead of postfix. Then I just have it pull the mail path from the database.

Cassidy

On 12/22/06, Johan Folin <johan.folin@lsn.se> wrote:
Hi, perhaps I should post this in a Postfix forum but I'll give it a
shot: I want my accounts sorted under /home/vmail/[domain]/[username]
(and I managed to get Dovecot to look for mail there with %d and %n ),
but how do I tell Postfix to sort the mail? I can't figure out how to do
it. The virtual_mail_base is /home/vmail/ but there I get a bunch of
folders in the form [username]@[domain]. I use mysql for the virtual
mailboxes if that matters.

I'll be grateful for any suggestions.

/Johan Folin