Dear Interwebs: Secure SMTP Relay Wanted
I'm looking for a basic SMTP relay which supports SMTP AUTH, TLS, supports the sendmail interface, and has a local mail queue, so that I can send mail from my laptop in Evolution (to localhost, or calls sendmail) and the shell (calling sendmail) when online or offline.
I need SMTP AUTH and TLS, which means nbsmtp, masqmail, and nullmailer are out. I want a local queue for when I'm not online which means esmtp, ssmtp, msmtp, and nullmailer are out (I'm not convinced that msmtp's queue scripts are reliable enough). Surely there must be a simple SMTP relay which will reliably manage a queue if the mail cannot be sent! If not, does anyone know of a good guide to configuring Postfix or Exim to do this?
http://www.postfix.org/docs.html
If you really want to dive into Postfix, I'd suggest getting the excellent Book of Postfix.
http://www.postfix-book.com/
ssh tunnel to my home router for this, I wrote things down at
http://www.thouters.be/OpenWRTTunnel
http://www.postfix.org/rate.html#postponing
D.
As for the 2minutes install leave that to the security holes.
Set up postfix normally, first (sudo apt-get install postfix, "internet site" will mostly do the right thing)
Edit /etc/postfix/main.cf:
relayhost = MAILSERVER
smtp_use_tls = yes
smtp_enforce_tls = yes
smtp_tls_enforce_peername = no
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth
smtp_sasl_security_options = noanonymous
Create /etc/postfix/smtp_auth:
MAILSERVER USERNAME:PASSWORD
Then run
sudo chmod 600 /etc/postfix/smtp_auth
sudo postmap /etc/postfix/smtp_auth
sudo postfix reload
and it's done.
on the client machine (your local mail queue)
relayhost = your-tls-mailserver.com.net.org.edu
smtp_tls_security_level = may
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_auth_enable = yes
smtp_sasl_security_options =
Of course you need to create /etc/postfix/sasl_passwd and postmap it as well:
your-tls-mailserver.com.net.org.edu useraccountonserver:passwordoftheaccount
That should do enough to configure postfix as a mailserver-relay-dependent SASL/TLS client.
Do you know this post and other posts got syndicated in GNOME News http://planet.gnome.org/news/ ?
I know that you're a news-worthy person, but could you somehow restrict the syndication to some GNOME related posting?
Thanks