[Dovecot] postfix-dovecot-sasl help
I'm trying to set up SMTP authentication on my server and am getting an authentication failed error. My client is set up to automatically select authentication method and tries CRAM_MD5. The http://wiki.dovecot.org/HowTo/PostfixAndDovecotSASL suggests "passdb pam" and "userdb passwd" -- is it possible to configure sasl authentication using a dovecot.conf like http://pastebin.com/6JWE5jp1?
Thanks in advance, Ted To
On Mon, 13 Dec 2010 10:39:50 -0500 Ted To rainexpected@theo.to articulated:
I'm trying to set up SMTP authentication on my server and am getting an authentication failed error. My client is set up to automatically select authentication method and tries CRAM_MD5. The http://wiki.dovecot.org/HowTo/PostfixAndDovecotSASL suggests "passdb pam" and "userdb passwd" -- is it possible to configure sasl authentication using a dovecot.conf like http://pastebin.com/6JWE5jp1?
Considering that this is related to Postfix, you might want to check out the information located at:
http://www.postfix.com/DEBUG_README.html
Specifically:
Provide output from the postfinger tool. This can be found at http://ftp.wl0.org/SOURCES/postfinger. #
If the problem is SASL related, consider including the output from the saslfinger tool. This can be found at http://postfix.state-of-mind.de/patrick.koetter/saslfinger/.
By the way, "getting an error" is useless information. Exactly "what" error are you getting. Using the tools shown above will greatly enhance the chances of correcting your problem.
-- Jerry ✌ Dovecot.user@seibercom.net
Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header.
On 13.12.2010, at 15.39, Ted To wrote:
I'm trying to set up SMTP authentication on my server and am getting an authentication failed error. My client is set up to automatically select authentication method and tries CRAM_MD5. The http://wiki.dovecot.org/HowTo/PostfixAndDovecotSASL suggests "passdb pam" and "userdb passwd" -- is it possible to configure sasl authentication using a dovecot.conf like http://pastebin.com/6JWE5jp1?
CRAM-MD5 is incompatible with PAM. http://wiki.dovecot.org/Authentication/Mechanisms
On Mon, 13 Dec 2010 16:50:27 +0000 Timo Sirainen tss@iki.fi wrote:
CRAM-MD5 is incompatible with PAM. http://wiki.dovecot.org/Authentication/Mechanisms
After reconfiguring the client to use LOGIN rather than CRAM-MD5, I still get the following error: http://pastebin.com/bnhxVajc.
On Mon, 13 Dec 2010 11:33:41 -0500 Jerry dovecot.user@seibercom.net wrote:
Provide output from the postfinger tool. This can be found at http://ftp.wl0.org/SOURCES/postfinger. #
If the problem is SASL related, consider including the output from the saslfinger tool. This can be found at http://postfix.state-of-mind.de/patrick.koetter/saslfinger/.
Thanks -- I'm using dovecot's sasl so saslfinger is not useful but the output from postfinger is: http://pastebin.com/ArWg50Ce.
On 13.12.2010, at 17.08, Ted To wrote:
On Mon, 13 Dec 2010 16:50:27 +0000 Timo Sirainen tss@iki.fi wrote:
CRAM-MD5 is incompatible with PAM. http://wiki.dovecot.org/Authentication/Mechanisms
After reconfiguring the client to use LOGIN rather than CRAM-MD5, I still get the following error: http://pastebin.com/bnhxVajc.
Set auth_debug_passwords=yes and look at the logs. Maybe they'll show something helpful (unfortunately PAM is very unhelpful for debugging).
On Mon, 13 Dec 2010 17:15:00 +0000 Timo Sirainen tss@iki.fi wrote:
On 13.12.2010, at 17.08, Ted To wrote:
On Mon, 13 Dec 2010 16:50:27 +0000 Timo Sirainen tss@iki.fi wrote:
CRAM-MD5 is incompatible with PAM. http://wiki.dovecot.org/Authentication/Mechanisms
After reconfiguring the client to use LOGIN rather than CRAM-MD5, I still get the following error: http://pastebin.com/bnhxVajc.
Set auth_debug_passwords=yes and look at the logs. Maybe they'll show something helpful (unfortunately PAM is very unhelpful for debugging).
Ah -- it is looking for /etc/sasldb2. Does this mean I can't use "passdb passwd-file"? Or is there something wrong with my configuration on the postfix side?
Dec 13 12:36:57 kahlo postfix/smtpd[26253]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory Dec 13 12:36:57 kahlo postfix/smtpd[26253]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory
On 13.12.2010, at 17.41, Ted To wrote:
Dec 13 12:36:57 kahlo postfix/smtpd[26253]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory Dec 13 12:36:57 kahlo postfix/smtpd[26253]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory
You're using Cyrus SASL there, not Dovecot SASL.
On Mon, 13 Dec 2010 17:48:03 +0000 Timo Sirainen tss@iki.fi wrote:
On 13.12.2010, at 17.41, Ted To wrote:
Dec 13 12:36:57 kahlo postfix/smtpd[26253]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory Dec 13 12:36:57 kahlo postfix/smtpd[26253]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory
You're using Cyrus SASL there, not Dovecot SASL.
Thank you! I don't know how I missed adding that line...
participants (3)
-
Jerry
-
Ted To
-
Timo Sirainen