ok I used your perl command to generate a base64 password but ... > perl -e 'use MIME::Base64;$u=bellier;$p=tititoto;$r=encode_base64("$u\0$u\0$p");print "$r\n";' YmVsbGllcgBiZWxsaWVyAHRpdGl0b3Rv
the string does not end with a = so timsieved does not want to let me in : > telnet localhost sieve Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. "IMPLEMENTATION" "Cyrus timsieved v1.0.0" "SASL" "PLAIN" "SIEVE" "fileinto reject envelope vacation imapflags notify subaddress regex" OK authenticate "plain" "YmVsbGllcgBiZWxsaWVyAGthbWk6bmlz" NO ("SASL" "internal error") "Authentication error" the error message is no longer the same ----- Original Message ----- From: <[EMAIL PROTECTED]> To: "Ludovic Bellier" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, January 14, 2002 12:02 PM Subject: Re: sieve and plain text password > Ludovic Bellier schrieb am Mon, Jan 14, 2002 at 11:42:11AM +0100: > > hello > > > > I use cyrus 2.0.16 and I've problem with the plaintext password > > authentication. > > > > > telnet localhost sieve > > Trying 127.0.0.1... > > Connected to localhost. > > Escape character is '^]'. > > "IMPLEMENTATION" "Cyrus timsieved v1.0.0" > > "SASL" "PLAIN" > > "SIEVE" "fileinto reject envelope vacation imapflags notify subaddress > > regex" > > OK > > authenticate "plain" "fswukcps" > > NO ("SASL" "error base64 decoding string") "Authentication error" > > > > In the begining I did not have SASL PLAIN. I had to link the > > /usr/local/lib/sasl directory in /usr/lib/sasl. Now I have a base64 error... > > Hum ?? > > Any adea ? > > Your base64 string looks weird. Note that base64 is *not* a plaintext pass- > word. > > You cannot use sieve's "plain" the same way as imap's native "LOGIN". > The imapd itself converts the string given with "LOGIN" into a base64 string > such that sasl-plain can decode it correctly. > > Valid base64 strings look like this: > > Ymx1YgBibHViAG5hc2U= > > This is always significant longer than yours above and always ends with a "=". > > You can generate a valid base64 string with perl: > > $ perl -e 'use MIME::Base64; $user=<your username>; $pass=<your password>; $result = encode_base64("$user\0$user\0$pass"); print "$result\n";' > > > Regards, > > - Birger > >