LazyAdminPostfix
From JQuantLib
This article explains how Postfix can be installed and configured to route emails to an external SMTP server. Richard Gomes
#!/bin/bash # # Thanks to: # http://blog.taragana.com/index.php/archive/how-to-setup-postfix-to-relay-outbound-mail-using-sasl/ # # # apt-get install postfix sasl2-bin # # choose: # * 'Satelite system' # * leave relayhost blank # cd /etc/postfix cp -p main.cf main.cf.ORIGINAL cat << EOD >> main.cf smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_mechanism_filter = plain, login smtp_sasl_security_options = noanonymous EOD # Obviously, substitute PASSWORD here cat << EOD > sasl_passwd smtpout.secureserver.net admin@jquantlib.org:PASSWORD EOD chmod 400 sasl_passwd postmap /etc/postfix/sasl_passwd /etc/init.d/postfix restart

