User:Hannes Röst/postfix

Postfix is a free and open-source mail transfer agent (MTA) that routes and delivers electronic mail. You can use postfix for example to
 * receive email from a local program that wants to send email
 * receive email over SMTP (from an email client or from another server)
 * decide what to do with that email (e.g. deliver it locally or relay it to yet another server)
 * process it in a number of ways

=> See Postfix Overview for a good overview over the way a message takes when processed through postfix.

The /etc/postfix/main.cf file stores site specific Postfix configuration parameters while /etc/postfix/master.cf defines daemon processes. The Postfix Basic Configuration tutorial covers the core settings that each site needs to consider.

Basic setup
The Postfix Documentation or the Ubuntu:Postfix main page are good places to start.

How do I switch between mbox and maildir?
The slash after the directory in /etc/aliases says whether mbox or maildir should be used.

How do I relay all undeliverable mail
This creates a "catch-all" address for local relay if no user can be found to relay the mail to (main.config)

How to use 2 or more content filters
http://www.irbs.net/internet/postfix/0506/2195.html

Try to do that:

Postfix:25 -> ClamAV:10025 -> Postfix:10026 -> dspam:10000 -> Postfix:10027

using those commands: http://www.irbs.net/internet/postfix/0506/2198.html

Reading: http://www.postfix.org/FILTER_README.html

unanswered forum thread: http://ubuntuforums.org/showthread.php?t=1318718

How do I add a mail filter (e.g. sieve) to a postfix / dovecot setup?
see here http://koansys.com/tech/sieve-server-side-mail-filtering-with-postfix-dovecot

How do I allow one person to send emails for another person?
smtp_generic_maps is a possible solution here since it only rewrite outgoing email.

Create a user, e.g. called send_for_xxx and give it a username/pw. Then use the smtp_generic_maps entry in main.cf smtp_generic_maps = hash:/etc/mail/generic
 * 1) main.cf

to add a rewrite of the sender email address: send_for_xxx:      xxx@domain.org
 * 1) /etc/mail/generic

see also http://www.postfix.org/ADDRESS_REWRITING_README.html and http://www.postfix.org/postconf.5.html#smtp_generic_maps

Resources

 * General
 * Postfix Documentation
 * Postfix Book
 * Ubuntu:Postfix main page with links to other guides
 * Postfix Survival Guide
 * Tutorials
 * Ubuntu server guide
 * Ubuntu: Postfix basic tutorial
 * Ubuntu: Postfix tutorial with Virtual Users
 * How to set up a mail server on a GNU / Linux system
 * FAQ
 * User:Swapnil durgade/Masquerade domain in postfix - Swapnil
 * LPI_Linux_Certification/LPIC2_Exam_202/Mail_%26_News
 * Kyle Dent's Postfix FAQ
 * Postfix shrine
 * Run postfix on Port 465 (SMTPS)