LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-27-2010, 03:45 PM   #1
lxvor
LQ Newbie
 
Registered: Jan 2009
Posts: 13

Rep: Reputation: 0
postfix 'auth login' using saslauthd set up doesn't work.


Hi,

I am stumped. I cannot get 'auth login' to work. Here are the details of my setup. I have a working postfix server that accepts incoming emails for my smpt-test-user account when not using authentication.

Now I am trying to add smtp authentication using 'auth login' via the saslauthd.

So I launch the 'saslauthd -a shadow'.
Run 'testsaslauthd -u smtp-test-user -p password'. Get this response:
0: OK "Success."

My UNIX-domain socket is here:
/var/run/sasl2/mux

My /etc/sasl2/smtpd.config
=======
pwcheck_method: saslauthd
mech_list: plain login
saslauthd_path: /var/run/sasl2/mux
=======

SASL related settings in main.cf
=======
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = smtpd
broken_sasl_auth_clients = yes
=======

then from my client I
=====================
>telnet suse102.corp.company.com 25
220 suse102.corp.company.com ESMTP Postfix
ehlo localhost
250-suse102.corp.company.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH LOGIN
250-AUTH=LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
auth login
334 VXNlcm5hbWU6
c210cC10ZXN0LXVzZXIy
334 UGFzc3dvcmQ6
HnVppNzc=
535 5.7.0 Error: authentication failed: generic failure
=======================

The relevant postfix log
========================
Mar 31 21:03:48 suse102 postfix/smtpd[5031]: < unknown[426.333.56.97]: auth login
Mar 31 21:03:48 suse102 postfix/smtpd[5031]: xsasl_cyrus_server_first: sasl_method login
Mar 31 21:03:48 suse102 postfix/smtpd[5031]: xsasl_cyrus_server_auth_response: uncoded server challenge: Username:
Mar 31 21:03:48 suse102 postfix/smtpd[5031]: > unknown[426.333.56.97]: 334 VXNlcm5hbWU6
Mar 31 21:04:23 suse102 postfix/smtpd[5031]: < unknown[426.333.56.97]: c210cC10ZXN0LXVzZXIy
Mar 31 21:04:23 suse102 postfix/smtpd[5031]: xsasl_cyrus_server_next: decoded response: smtp-test-user
Mar 31 21:04:23 suse102 postfix/smtpd[5031]: xsasl_cyrus_server_auth_response: uncoded server challenge: Password:
Mar 31 21:04:23 suse102 postfix/smtpd[5031]: > unknown[426.333.56.97]: 334 UGFzc3dvcmQ6
Mar 31 21:04:30 suse102 postfix/smtpd[5031]: < unknown[426.333.56.97]: HnVppNzc=
Mar 31 21:04:30 suse102 postfix/smtpd[5031]: xsasl_cyrus_server_next: decoded response: password
Mar 31 21:04:30 suse102 postfix/smtpd[5031]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
Mar 31 21:04:30 suse102 postfix/smtpd[5031]: warning: unknown[426.333.56.97]: SASL login authentication failed: generic failure
Mar 31 21:04:30 suse102 postfix/smtpd[5031]: > unknown[426.333.56.97]: 535 5.7.0 Error: authentication failed: generic failure
========================

It looks like the postfix server is not finding the UNIX-domain socket file. But why? and how do I point it to the correct place?

I would really appreciate any help on this.

Thanks in advance.
 
Old 09-10-2010, 03:48 PM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Postfix only supports SASL through Dovecot and Cyrus but it looks like you are using Cyrus. Additionally, it looks like the Cyrus sasl auth is at least partially functional, which suggests that the problem may be related to communication with postfix.

What is interesting is that it is saying things like unkown user: VXNlcm5hbWU6. Is this a base64 encoding? How does this compare in a log file to a plain login? I think the next error messages indicate that the plain and login methods failed and it is then going on to password login which may not be supported.

I must appologize for not having any better suggestions for you. In case you haven't seen it, the postfix documentation seems to be pretty comprehensive in this regard: http://www.postfix.org/SASL_README.h...er_sasl_enable. Specifically look for the section titled: Testing SASL authentication in the Postfix SMTP Server

Also, note that this is still a plain text login, even though it is hashed. You should consider running this over TLS, in which case a plain login may be sufficient.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix sasl2 auth login periferral Linux - Server 2 10-20-2009 10:52 PM
how to set postfix and client auth FNC Linux - Server 2 09-02-2007 11:19 AM
postfix/saslauthd/smtp - somethings not right nucklebone Linux - Server 2 03-16-2007 09:57 PM
Postfix configured SASL auth OK, but Outlook login kept rejected randy_liu_tw Linux - Software 2 01-14-2005 02:56 AM
Postfix SMTP AUTH, Problem using saslauthd + pam k1e0x Debian 0 10-19-2004 05:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration