Getting Cyrus Sieve to work in Debian

One thing I would like to share with the rest of the world:

I wanted to switch to cyrus imapd at some point, but timsieved would'nt authenticate via sasl. It did not show any authentication mechanismns (or sasl_auth_mech), although sasl_auth_mech was set and working for imapd, for example.

Looked like this:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
sivtest -u wogri -w -v -m PLAIN -t "" localhost
S: "IMPLEMENTATION" "Cyrus timsieved v2.1"
S: "SIEVE" "fileinto reject envelope vacation imapflags notify subaddress relational regex"
S: "STARTTLS"
S: OK
C: STARTTLS
S: OK "Begin TLS negotiation now"
verify error:num=20:unable to get local issuer certificate
verify error:num=27:certificate not trusted
verify error:num=21:unable to verify the first certificate
TLS connection established: TLSv1 with cipher AES256-SHA (256/256 bits)
C: CAPABILITY
S: "IMPLEMENTATION" "Cyrus timsieved v2.1.18-IPv6-Debian-2.1.18-1+sarge2"
S: "SIEVE" "fileinto reject envelope vacation imapflags notify subaddress relational regex"

But there were no SASL PLAIN login mechanisms available!

The solution to this problem was very easy, although it took me forever to find the it - if you are having that problem right now: You get the answer here!

By default Cyrus2.1 uses SASL2 based authentication, which requires the installation of sasl2-bin, but doesn't install libsasl2-modules, which are required for sieve authentication. So I did an apt-get install libsasl2-modules and everything turned out to be: FINE!

Letzte Änderung: 2012