sieve/websive authentication problem

Janos Dohanics web at 3dresearch.com
Wed Jun 25 20:59:39 UTC 2014


Hello List,

I am unable to make sieve authentication work. Cyrus uses saslauthd for
authentication.

I can telnet to the sieve port:

# telnet localhost sieve
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
"IMPLEMENTATION" "Cyrus timsieved v2.4.17"
"SASL" "PLAIN"
"SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags notify envelope relational regex subaddress copy"
"STARTTLS"
"UNAUTHENTICATE"

Saslauthd seems to work:

# testsaslauthd -u mcsmith -p ********
0: OK "Success."

I can authenticate with Cyrus IMAP:

# imtest -a mcsmith
WARNING: no hostname supplied, assuming localhost

S: * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE STARTTLS AUTH=PLAIN SASL-IR] [mailserver] Cyrus IMAP v2.4.17 server ready
Please enter your password: 
C: A01 AUTHENTICATE PLAIN AG1jc21pdGgAVGVscy1vZDY=
S: A01 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ SORT=DISPLAY THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE LIST-EXTENDED WITHIN QRESYNC SCAN XLIST URLAUTH URLAUTH=BINARY LOGINDISABLED COMPRESS=DEFLATE IDLE] Success (no protection) SESSIONID=<[mailserver]-62840-1403727961-1>
Authenticated.
Security strength factor: 0

However, sivtest gives "Authentication Error":

# sivtest -a mcsmith
WARNING: no hostname supplied, assuming localhost

S: "IMPLEMENTATION" "Cyrus timsieved v2.4.17"
S: "SASL" "PLAIN"
S: "SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags notify envelope relational regex subaddress copy"
S: "STARTTLS"
S: "UNAUTHENTICATE"
S: OK
Please enter your password: 
C: AUTHENTICATE "PLAIN" {24+}
AG1jc21pdGgAVGVscy1vZDY=
S: NO "Authentication Error"
Authentication failed. generic failure
Security strength factor: 0

Trying sieveshell:

# sieveshell -a mcsmith localhost
connecting to localhost
Please enter your password: 
unable to connect to server at /usr/local/bin/sieveshell line 170, <STDIN> line 1.

What am I missing?

-- 
Janos Dohanics


More information about the freebsd-questions mailing list