Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jun 2014 16:53:41 -0400
From:      Janos Dohanics <web@3dresearch.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   sieve/websive authentication problem
Message-ID:  <20140625165341.e45ec9292f95fc1fb9b5b5ed@3dresearch.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140625165341.e45ec9292f95fc1fb9b5b5ed>