This documentation is for Dovecot v2.x, see wiki1 for v1.x documentation.
Differences between revisions 5 and 6
Revision 5 as of 2007-06-12 22:11:25
Size: 1121
Editor: TimoSirainen
Comment:
Revision 6 as of 2007-08-08 01:42:02
Size: 1399
Editor: AnthonyG
Comment: Stressed that Dovecot SASL has only been supported since version 2.3 of Postfix and showed how to verify this.
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
Since version 2.3, Postfix supports SMTP AUTH through [:Sasl:Dovecot SASL] as introduced in the Dovecot 1.0 series. If using Postfix obtained from a binary (such as a .rpm or .deb file), you can check if Postfix was compiled with support for Dovecot SASL by running the command:
Line 4: Line 5:
Postfix 2.3 supports SMTP AUTH through [:Sasl:Dovecot SASL] as introduced in the Dovecot 1.0 series. It's very simple to set up: {{{
postconf -a
}}}
Once you have verified that your installation of Postfix supports Dovecot SASL, it's very simple to configure:
Line 25: Line 29:
}}}   }}}
Line 32: Line 35:
Line 37: Line 39:

Postfix and Dovecot SASL

Since version 2.3, Postfix supports SMTP AUTH through [:Sasl:Dovecot SASL] as introduced in the Dovecot 1.0 series. If using Postfix obtained from a binary (such as a .rpm or .deb file), you can check if Postfix was compiled with support for Dovecot SASL by running the command:

postconf -a

Once you have verified that your installation of Postfix supports Dovecot SASL, it's very simple to configure:

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
# and the common settings to enable SASL:
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination

See also:

None: HowTo/PostfixAndDovecotSASL (last edited 2014-12-30 23:19:11 by pool-98-111-147-67)