Contents


On-line Guides
All Guides
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems

How To Guides
Xen Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions

 

 

Postfix Documentation
Previous Page Home Next Page

Indirect delivery via the local delivery agent

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}"
Postfix Documentation
Previous Page Home Next Page