Dovecot relay problem

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

  1. gscaglia

    gscaglia New Member HowtoForge Supporter

    Hi,
    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/main.cf (Debian 4):
    Code:
    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 main.cf?
     
  3. gscaglia

    gscaglia New Member HowtoForge Supporter

    Uhmmm :confused: I writed that rows in the postfix main.cf 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):
    Code:
    # 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 main.cf :confused:

    Thanks a lot
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

  5. falko

    falko Super Moderator ISPConfig Developer

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

    gscaglia New 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 http://www.howtoforge.com/forums/showthread.php?t=12308 is difficult for me and I understand it step by step.

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

    gscaglia New 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! :)

    Regards
     

Share This Page