I can get it to work partially, but I do not understand why one works and the other does not.
sieveshell documentation seems a little thin, but this is probably because it's one of those things that pretty simple to get working.
I have not yet tried to do anything in regard to postfix and am not trying to do smtp_auth at this time.
I'm still struggling with sieveshell and sasldb.
For what it's worth, it would probably be better to just list what I'm doing and seeing.
CONFIGURATION /etc/imapd.conf: sasl_pwcheck_method: auxprop sasl_auxprop_plugin: sasldb
postconf -n | grep myhostname myhostname = mcgee.tacocat.net
mcgee:~ # ls -l /etc/sasldb2 -rw-r----- 1 root mail 12288 2003-10-27 07:07 /etc/sasldb2
I am trying to use the authentication with a domain matching my $myhostname.
WHATS HAPPENING This works (logged in as [EMAIL PROTECTED])
mcgee:~ # sasldblistusers2 mcgee:~ # saslpasswd2 -c bobby Password: Again (for verification): mcgee:~ # sasldblistusers2 [EMAIL PROTECTED]: userPassword
mcgee:~ # sieveshell -u bobby -a bobby localhost connecting to localhost Please enter your password: > quit mcgee:~ #
This does not work: mcgee:~ # sasldblistusers2 mcgee:~ # saslpasswd2 -c -u mcgee.tacocat.net bobby Password: Again (for verification): mcgee:~ # sasldblistusers2 [EMAIL PROTECTED]: userPassword mcgee:~ # sieveshell -u bobby -a bobby -r mcgee.tacocat.net localhost connecting to localhost Please enter your password: Please enter your password: Please enter your password: Please enter your password: unable to connect to server at /usr/bin/sieveshell line 174, <STDIN> line 4. mcgee:~ #
And this was the result in the logs.
Oct 27 07:07:35 mcgee master[5411]: about to exec /usr/lib/cyrus/bin/timsieved
Oct 27 07:07:35 mcgee sieve[5411]: executed
Oct 27 07:07:35 mcgee sieve[5411]: accepted connection
Oct 27 07:07:35 mcgee timsieved[5411]: OTP unavailable because can't read/write key database /etc/opiekeys: No such file or directory
Oct 27 07:07:35 mcgee timsieved[5411]: DIGEST-MD5 server step 1
Oct 27 07:07:35 mcgee perl: DIGEST-MD5 client step 2
Oct 27 07:07:37 mcgee timsieved[5411]: DIGEST-MD5 server step 2
Oct 27 07:07:37 mcgee timsieved[5411]: no secret in database
Oct 27 07:07:37 mcgee timsieved[5411]: badlogin: localhost[127.0.0.1] DIGEST-MD5 authentication failure
Oct 27 07:07:38 mcgee timsieved[5411]: Password verification failed
Oct 27 07:07:38 mcgee timsieved[5411]: badlogin: localhost[127.0.0.1] PLAIN authentication failure
Oct 27 07:07:40 mcgee timsieved[5411]: badlogin: localhost[127.0.0.1] LOGIN authentication failure
Oct 27 07:07:41 mcgee timsieved[5411]: no secret in database
Oct 27 07:07:41 mcgee timsieved[5411]: badlogin: localhost[127.0.0.1] CRAM-MD5 authentication failure
Oct 27 07:07:41 mcgee perl: No worthy mechs found
Oct 27 07:07:41 mcgee master[1172]: process 5411 exited, status 0