Postfix RelayHost

November 20, 2007

If you run Mutt and Postfix on your home LAN, it's probably in your best interest to relay all outgoing mail to a dedicated mail server. Oddly enough, it's not that hard to setup.

Edit /etc/postfix/main.cf and add the following lines:

relayhost = mail.domain.tld

smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/passwd
smtp_sasl_security_options =

Create the password file/hash and paste the following using your own authentication credentials:

mail.domain.tld        username:password

Create the hash:

postmap hash:/etc/postfix/passwd

And finally, restart Postfix. Double check your logs to make sure everything is working as it should.