Tuesday, 8 February 2005

Setting up SMTP AUTH support for Earthlink under Debian

I had to assemble this from multiple sources (including here)… so here’s everything you need.

Do these things as root:

  1. Install postfix-tls and libsasl2-modules.
  2. Add the following settings to /etc/postfix/main.cf:
    smtp_sasl_auth_enable = yes
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
    smtp_sasl_security_options =
    relayhost = smtpauth.earthlink.net
  3. Create /etc/postfix/sasl_passwd as follows:
    smtpauth.earthlink.net username@earthlink.net:password
  4. chown root:root /etc/postfix/sasl_passwd && chmod 600 /etc/postfix/sasl_passwd.
  5. postmap /etc/postfix/sasl_passwd.
  6. /etc/init.d/postfix reload

Voilà, all your outgoing email is now sent via smtpauth.earthlink.net.