Jordan Tardif: > > Perhaps you are using the wrong mail system? > > > > .---------------------------------------------------------. > > |agent |executes commands|requires UNIX system acounts| > > |---------------------------------------------------------| > > |virtual(8)| no | no | > > |pipe(8) | yes | knows nothing about users | > > |local(8) | yes | yes | > > `---------------------------------------------------------' > > The problem is we have users with diffrent uid's/gid's via > virtual_uid_maps and virtual_gid_maps. The mail gets delivered as > those users, but you have no way to run procmail etc as that user.
That is correct. virtual(8) does not expand aliases, and it does not execute commands. You may have success with "virtual_transport = procmail" where procmail is defined in master.cf as: procmail unix - n n - - pipe flags=DRhu user=vmail argv=/usr/bin/procmail -a ${recipient} But this means all mailboxes are owned by user=vmail; Postfix will use only $virtual_mailbox_maps to reject SMTP mail for non-existent recipients, and will not use virtual_uid_maps or virtual_gid_maps at all. Instead of using procmail to deliver the mail, you might want to hook up Postfix with Dovecot or Maildrop which have filtering abilities built in. I have no plans to duplicate their functionality into Postfix. Wietse