[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SOLVED: cyrus saslauthd: set_auth_mech: failed to initilize mechanism



I found what the problem is: value of smtpd_sasl_local_domain var
in /etc/postfix/main.cf is added to the username when it is sent
to the IMAP server. I had set smtpd_sasl_local_domain = $myhostname ;
after unsetting the var, I was able to authenticate against the IMAP server.

Thanks again for the help!
-- Stoyan Genov

---- Eric Pogroski on 2004-04-26 13:13:48:28 CEST (Monday): ----
> On Mon, 26 Apr 2004 19:27:36 +0200
> Stoyan Genov <stoyan_(_dot_)_genov_(_at_)_sun-fish_(_dot_)_com> wrote:
> 
> > Thanks! Putting -O before -a helped indeed and saslauthd started.
> > However, I choke on one of the next steps:
> > 
> > I put the following in /usr/local/lib/sasl2/smtpd.conf :
> > pwcheck_method: saslauthd
> > 
> > When I try to send email via my email client (sylpheed, and
> > I suppose it works with smtp auth because I use also another
> > account which requires smtp auth, and I can send through it),
> > I can see "somebody", possibly saslauthd, talking to the IMAP
> > server, but the IMAP server says "login failed":
> > 
> > Apr 26 19:17:03 syn-ack postfix/smtpd[19973]: connect from localhost[127.0.0.1]
> > Apr 26 19:17:03 syn-ack imapd: Connection, ip=[127.0.0.1]
> > Apr 26 19:17:08 syn-ack imapd: LOGIN FAILED, ip=[127.0.0.1]
> > Apr 26 19:17:08 syn-ack postfix/smtpd[19973]: warning: localhost[127.0.0.1]: SASL LOGIN authentication failed
> > 
> > Any other hints? I've also tried to talk to postfix via telnet, but I don't
> > know the exact syntax of the auth response for auth plain which the
> > client should give to the server...
> > 
> > Thanks,
> > Stoyan Genov
> > 
> > ---- Eric Pogroski on 2004-04-26 11:11:15:01 CEST (Monday): ----
> > > On Mon, 26 Apr 2004 16:58:23 +0200
> > > Stoyan Genov <stoyan_(_dot_)_genov_(_at_)_sun-fish_(_dot_)_com> wrote:
> > > 
> > > > Hi,
> > > > 
> > > > On an obsd3.4/i386, I am trying to enable SMTP AUTH for postfix,
> > > > where the authorization should happen against a locally running
> > > > IMAP server; I have installed from ports:
> > > > courier-imap-1.7.2
> > > > courier-utils-1.5.3
> > > > cyrus-sasl-2.1.13
> > > > postfix-2.0.13p0.tls0.8.14-pcre-sasl2-ldap-tls
> > > > 
> > > > The courier parts work without problems -- I use it to read my emails.
> > > > However, when I attempt to start saslauthd, the following happens:
> > > > 
> > > > [14:48]root_(_at_)_syn-ack:~# saslauthd -a rimap -O 127.0.0.1
> > > > saslauthd[2202] :set_auth_mech   : failed to initilize mechanism rimap
> > > > 
> > > > sslauthd seems to support rimap:
> > > > [14:50]root_(_at_)_syn-ack:~# saslauthd -v
> > > > saslauthd 2.1.13
> > > > authentication mechanisms: getpwent kerberos5 rimap
> > > > 
> > > > During play (with the getpwent method) I found I was missing /var/sasl2,
> > > > and I have created it.
> > > > 
> > > > I man'ned and google'd for answers, but got none. Can you help?
> > > > 
> > > > Regards, and thanks in advance!
> > > > Stoyan Genov
> > > > 
> > > 
> > > use:
> > > 'saslauthd -O 127.0.0.1 -a rimap' instead
> > 
> 
> Honestly don't know. I stopped using courier a long while ago, switched everything
> to cyrus-imap, never had a problem since.
> 
> Are you using a sql backend (postfix or courier)?
>