Dovecot relay problem

Discussion in 'Installation/Configuration' started by gscaglia, Aug 16, 2008.

  1. gscaglia

    gscaglia Member HowtoForge Supporter

    I use Dovecot with Postfix (ISPConfig 2.2.23) and receive the e-mail very well.

    The problem is the relay; the error log message is "fatal: no SASL authentication mechanisms".

    I added only this rows in /etc/postfix/ (Debian 4):
    smtpd_sasl_type = dovecot
    smtpd_sasl_path = private/auth
    An idea?

    Thanks a lot
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you reconfigure dovecot to offer the authentication socket in the path you specified in
  3. gscaglia

    gscaglia Member HowtoForge Supporter

    Uhmmm :confused: I writed that rows in the postfix because I readed a thread, but I don't undestand very well :)

    So, now I read my file dovecot.conf and I've discovered this sub-section (row 952):
    # It's possible to export the authentication interface to other programs:
      socket listen {
        #master {
          # Master socket is typically used to give Dovecot's local delivery
          # agent access to userdb so it can find mailbox locations. It can
          # however also be used to disturb regular user authentications.
          # WARNING: Giving untrusted users access to master socket may be a
          # security risk, don't give too wide permissions to it!
          #path = /var/run/dovecot/auth-master
          #mode = 0600
          # Default user/group is the one who started dovecot-auth (root)
          #user =
          #group =
        client {
          # The client socket is generally safe to export to everyone. Typical use
          # is to export it to your SMTP server so it can do SMTP AUTH lookups
          # using it.
          path = /var/run/dovecot/auth-client
          mode = 0660
          user = postfix
          group = postfix
    I must change this sub-section?

    In the directory /etc/postfix (Debian 4) there isn't a sub-directory "private/auth": I don't understand the row "smtpd_sasl_path = private/auth" in :confused:

    Thanks a lot
  4. till

    till Super Moderator Staff Member ISPConfig Developer

  5. falko

    falko Super Moderator ISPConfig Developer

    Please run
    postconf -e 'smtpd_sasl_type = cyrus'
    postconf -e 'smtpd_sasl_path = smtpd'
    and restart Postfix.
  6. gscaglia

    gscaglia Member HowtoForge Supporter

    Great! :)

    I changed the row 970 in dovecont.conf as "path = /var/spool/postfix/private/auth" and now the relay mechanism works.

    I'm sorry Till, but the thread is difficult for me and I understand it step by step.

    Thanks a lot and regards
    Last edited: Aug 17, 2008
  7. gscaglia

    gscaglia Member HowtoForge Supporter

    Thanks Falko,
    but I need Dovecot for use the e-mail address as user.

    Now all work very well, I hope so! :)


Share This Page