The Postfix MTA is a sendmail alternative created by Wietse Venema that is designed to be faster, much easier to administer and more secure than sendmail. It is said that in achieving these design goals, it is less flexible than sendmail. Postfix generally works without much input by the system administrator and can drop right in and transparently replace a sendmail installation.
How to get it
Install Postfix as described at Installing Software. If you need a modified Postfix, download the source code, then compile, link and install it. For downloading, visit http://www.postfix.org. Building is described at Compilation from source.
How to use it
To see if your Postfix is configured properly, send yourself a mail:
$ sendmail -t email@example.com FROM:firstname.lastname@example.org TO:email@example.com SUBJECT:test this is a sendmail test
Stop your input by typing CTRL_D. In this case, firstname.lastname@example.org is your e-mail-address.
How to configure it
Deliver all mail to procmail
- make sure procmail is installed
- enter in /etc/postfix/main.cf a line like:
mailbox_command = /usr/bin/procmail
- restart your postfix
Catch-all e-Mail addresses
Imagine you have a domain example.org and want all mails for this domain in a mailbox, so, no more "user does not exist" replies to senders. Then you configure a catch-all for this domain.
Allow sending from a MUA
Relay access denied
And you will have no chance to authenticate. To change this, add
to /etc/postfix/main.cf, and outcomment all lines starting with tlsmgr in /etc/postfix/master.conf.
Working with the Mail Queue
The outgoing mail queue is often stuck, so here's how you deal with that:
To watch your outgoing mail queue, use the command
To read your outgoing mail queue, use webmin which has an own module for Postfix.
To flush your mail queue, use
To delete a mail from your mail queue, find out its mail-id by running
then delete the mail by running
postsuper -d mail-id
- Postfix Virtual Domain Hosting
- postfix with clamav-milter
- Postfix homepage (www.postfix.org)