Loading ...
Sorry, an error occurred while loading the content.

Re: SASL LOGIN authentication failed generic failure on localhost

Expand Messages
  • Patrick Ben Koetter
    ... You are using this chain: postfix - libsasl - saslauthd - pam - pam_mysql However you configured /usr/lib64/sasl2/smtpd.conf to go this way: postfix -
    Message 1 of 2 , Jun 1, 2011
    • 0 Attachment
      * kibirango moses <kibsmoses@...>:
      > Hullo Users,
      > I setting up a mailserver with smtp authentication and the backend
      > database is mysql 5.1.53 with pam_mysql and cyrus-sasl2 2.1.23 on
      > slackware linux 13.1.When i telnet to test my server side
      > authenication it gives me the error
      > below:
      >
      > rootxxxxxx:/etc/postfix# postconf -a
      > cyrus
      > dovecot
      >
      > root@xxxx:/etc/postfix# saslauthd -v
      > saslauthd 2.1.23
      > authentication mechanisms: getpwent pam rimap shadow ldap
      >
      > Error from maillog file
      > xxxxx postfix/smtpd[1475]: xsasl_cyrus_server_next: decoded response:
      > xxxxx postfix/smtpd[1475]: warning: SASL authentication failure:
      > All-whitespace username.
      > xxxxx postfix/smtpd[1475]: warning: localhost[127.0.0.1]: SASL LOGIN
      > authentication failed: generic failure
      > xxxxx postfix/smtpd[1475]: > localhost[127.0.0.1]: 535.5.7.8 Error:
      > authentication failed: generic failure.
      > on doing a testsaslauthd :
      >
      > #testsaslauthd -u mkk@mydomain -p password -f
      > /var/state/saslauthd/mux -s smtp
      > 0: OK "Success."
      >
      > When i do a Check for server-side SMTP AUTH configuration. I get the
      > output below:
      >
      > #saslfinger -s
      > -- content of /usr/lib64/sasl2/smtpd.conf --
      > #Global Parameters

      You are using this chain:

      postfix -> libsasl -> saslauthd -> pam -> pam_mysql

      However you configured /usr/lib64/sasl2/smtpd.conf to go this way:

      postfix -> libsasl -> mysql

      Try this in /usr/lib64/sasl2/smtpd.conf:

      pwcheck_method: saslauthd
      mech_list: plain login


      > -- content of /usr/local/lib/sasl2/smtpd.conf --

      remove /usr/local/lib/sasl2/smtpd.conf. You should not need it.

      p@rick


      --
      All technical questions asked privately will be automatically answered on the
      list and archived for public access unless privacy is explicitely required and
      justified.

      saslfinger (debugging SMTP AUTH):
      <http://postfix.state-of-mind.de/patrick.koetter/saslfinger/>
    Your message has been successfully submitted and would be delivered to recipients shortly.