[Dovecot] Using Dovecot SASL with postfix

/dev/rob0 rob0 at gmx.co.uk
Wed Sep 6 20:35:50 EEST 2006


On Wednesday 06 September 2006 11:42, Jonathan Stewart wrote:
> 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

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"?

> 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:

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


More information about the dovecot mailing list