This documentation is for Dovecot v2.x, see wiki1 for v1.x documentation.

Postfix and Dovecot SASL

Postfix 2.3 (at this writing still in development, but available in snapshots) supports SMTP AUTH through [:Sasl:Dovecot SASL] as introduced in the Dovecot 1.0 series. It's very simple to set up:

Example dovecot.conf excerpt

auth default {
      mechanisms = plain login
      passdb pam {
      }
      userdb passwd {
      }
      socket listen {
        client {
          # Assuming the default Postfix $queue_directory setting
          path = /var/spool/postfix/private/auth
          mode = 0660
          # Assuming the default Postfix user and group
          user = postfix
          group = postfix
        }
      }
    }

Example Postfix main.cf excerpt

smtpd_sasl_type = dovecot
# Can be an absolute path, or relative to $queue_directory
smtpd_sasl_path = private/auth

See also: