[Dovecot] Using Dovecot SASL with postfix
I'm trying to use Dovecot SASL with postfix 2.3.3 and when trying to send mail I get the debug output below. I don't know enough about whats going on to know where the problem is but something clearly is not right. I would send the configurations for postfix and dovecot except they are clearly talking to each other so I kinda doubt its a configuration issue. The machine can afford to be down for an hour or two at a time for testing stuff if needed.
Sep 6 12:04:10 server postfix/smtpd[13555]: connect from mobile-166-137-248-219.mycingular.net[166.137.248.219] Sep 6 12:04:17 server dovecot: auth(default): client in: AUTH 1 PLAIN service=smtp Sep 6 12:04:17 server dovecot: auth(default): client out: CONT 1 Sep 6 12:04:18 server dovecot: auth(default): client in: CONT 1 jonathan Sep 6 12:04:18 server dovecot: auth(default): plain(?): invalid input Sep 6 12:04:19 server dovecot: auth(default): client out: FAIL 1 Sep 6 12:04:19 server postfix/smtpd[13555]: warning: mobile-166-137-248-219.mycingular.net[166.137.248.219]: SASL PLAIN authentication failed: Sep 6 12:04:20 server postfix/smtpd[13555]: lost connection after AUTH from mobile-166-137-248-219.mycingular.net[166.137.248.219] Sep 6 12:04:20 server postfix/smtpd[13555]: disconnect from mobile-166-137-248-219.mycingular.net[166.137.248.219]
A working auth looks like this, I'm thinking that IMAP versus SMTP should not be *too* big a difference in this case.
Sep 6 12:06:22 server dovecot: auth(default): client in: AUTH 1 PLAIN service=IMAP secured lip=10.70.3.1 rip=10.70.3.254 Sep 6 12:06:22 server dovecot: auth(default): client out: CONT 1 Sep 6 12:06:22 server dovecot: auth(default): client in: CONT 1 (some kind of hash looking thing) Sep 6 12:06:22 server dovecot: auth(default): client out: OK 1 user=jonathan Sep 6 12:06:22 server dovecot: auth(default): master in: REQUEST 1 13554 1 Sep 6 12:06:22 server dovecot: auth(default): master out: USER 1 jonathan system_user=jonathan uid=1001 gid=1001 home=/home/jonathan Sep 6 12:06:22 server dovecot: imap-login: Login: user=<jonathan>, method=plain, rip=10.70.3.254, lip=10.70.3.1, TLS
Thanks, Jonathan
On Wednesday 06 September 2006 11:42, Jonathan Stewart wrote:
Invalid input? Maybe a broken client? What's the client? You mentioned the Postfix version, but not Dovecot. There were some problems with SASL PLAIN AUTH in the 1.0-beta series.
Hmmm, PLAIN AUTH should be a uuencoded "username\0username\0password" string. Your client just sent "jonathan"?
There you have it. "SASL PLAIN authentication failed".
All I can say is that a literal copy-and-paste from the Postfix SASL_README works for me, and it has been working for a long time. I was using Dovecot SASL with the 2.2 patch, and a modified version thereof in pre-20051221 snapshots of Postfix 2.3. (The syntax was slightly different for the 2.2 patch.)
Offlist mail to this address is discarded unless
"/dev/rob0" or "not-spam" is in Subject: header
/dev/rob0 wrote:
I'm using VersaMail for the palm treo 650, and being pretty sure it was the client now, dug into google and found someone with the same issue. I'm now 99% sure that the problem lies with versamail rather than postfix or dovecot. Apparently PLAIN auth does not work but LOGIN does work correctly. OT can someone point me to a comparison/summary of LOGIN versus PLAIN and whether I would be able to disable plain without causing too many issues with other clients? I did put a support request in with palm so hopefully it will get fixed (ha ha :P)
Thanks, Jonathan
participants (2)
-
/dev/rob0
-
Jonathan Stewart