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

Re: [pysieved] Authentication problem



I did some more testing, and it seems that the sasl authentication just
doesn't work with dovecot-auth. Did anyone actually managed to use this?

According to dovecot's docs, there should be some handshaking first. In
the pysieved file auth/sasl.py, I couldn't find anything resembling
that. Instead, pysieved just sends the authentication details, and reads
from the socket. So, in effect, it reads the handshake data, and
interprets that as the response to the authentication. Obviously, that
fails.

Do we need a dovecot-auth specific sasl.py?

Koen


On Thu, 2007-04-19 at 10:48 +0200, Koen Vermeer wrote:
> Hi,
> 
> I'm trying to get pysieved to work, but I'm having some trouble. After
> log in in Squirrelmail and clicking on 'Filters' (avelsieve plugin), I
> get an error in pysieved as shown below:
> 
> black:/usr/local/lib/pysieved# python ./pysieved.py -d -d -d -c
> pysieved.ini
> 1176971740.02 == Connect from ('127.0.0.1', 2408)
> 1176971740.02 S: '"IMPLEMENTATION" "pysieved 0.9+DEV"\r\n'
> 1176971740.03 S: '"SASL" "PLAIN"\r\n'
> 1176971740.03 S: '"SIEVE" "fileinto reject envelope vacation imapflags
> notify subaddress relational comparator-i;ascii-numeric"\r\n'
> 1176971740.04 C: 'OK\r\n'
> 1176971740.04 C: 'AUTHENTICATE "PLAIN" {48+}'
> 1176971740.04 C: '[===removed===]'
> 1176971740.04 C: ''
> AUTH: Auth returns 'CH\tPLAIN\tplaintext\nVERSION\t1\t0\nSPID\t2395
> \nCUID\t6769\nDONE\n'
> 1176971740.08 C: 'NO "Bad username or password"\r\n'
> 1176971740.32 == done
> 
> I login with my full email address in squirrelmail, which I also use in
> dovecot. I have attached my pysieved.ini. Can anyone give me a clue on
> why it fails?
> 
> Thanks!
> 
> Koen