Postfix can be configured to deliver mail to maildrop via the
local delivery agent. This is slightly less efficient than the
"direct" approach discussed above, but gives you the convenience
of local
aliases(5) expansion and $HOME/.forward file processing.
You would typically use this for domains that are listed in
mydestination and that have users with a UNIX system account.
To configure maildrop delivery for all UNIX system accounts:
/etc/postfix/
main.cf:
mailbox_command = /path/to/maildrop -d ${USER}
Note: ${USER} is spelled in upper case.
To enable maildrop delivery for specific users only, you can
use the Postfix
local(8) delivery agent's
mailbox_command_maps feature:
/etc/postfix/
main.cf:
mailbox_command_maps = hash:/etc/postfix/mailbox_commands
/etc/postfix/mailbox_commands:
you /path/to/maildrop -d ${USER}
Maildrop delivery for specific users is also possible by
invoking it from the user's $HOME/.forward file:
/home/you/.forward:
"|/path/to/maildrop -d ${USER}"