Looking for pointers - timsieved / sasl question

Dan Perez perezda_bulk at hotmail.com
Wed Feb 16 17:48:14 EST 2005


Hi Martin,

Instead of running that command as root, try su'ing to the user you're 
trying to run sivtest for...

I had the same exact problem and that's the only way around it that I could 
find.

Dan


>From: Martin Richard <martin.richard at gmail.com>
>Reply-To: Martin Richard <martin.richard at gmail.com>
>To: info-cyrus at lists.andrew.cmu.edu
>Subject: Looking for pointers - timsieved / sasl question
>Date: Tue, 15 Feb 2005 22:35:03 -0500
>
>Hello all,
>
>   I have a postfix + cyrus + sasl + pam setup, working nicely so far.
>Users get and send mail. All account info is in mysql via
>pam/pam_mysql as per the HOWTOs. IMAP mech LOGIN works fine:
>
>[root at www root]# imtest -u xxxx -a xxxx localhost -v
>S: * OK mail.xxxx.com Cyrus IMAP4 v2.2.8 server ready
>C: C01 CAPABILITY
>S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS
>NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND
>BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE
>S: C01 OK Completed
>Please enter your password:
>C: L01 LOGIN xxxx {8}
>S: + go ahead
>C: <omitted>
>S: L01 OK User logged in
>Authenticated.
>Security strength factor: 0
>L01 LOGOUT
>* BYE LOGOUT received
>L01 OK Completed
>Connection closed.
>[root at www root]#
>
>   But I'm having trouble with sieve / timsieved. I want to use it via
>mech PLAIN for automated scripts/interfaces for my users to put
>filters or vacation messages.. Using same account info:
>
>[root at www root]# sivtest -u xxxx -a xxxx -m plain localhost
>S: "IMPLEMENTATION" "Cyrus timsieved v2.2.8"
>S: "SIEVE" "fileinto reject envelope vacation imapflags notify
>subaddress relational regex"
>S: OK
>Please enter your password:
>C: AUTHENTICATE "PLAIN" {60+}
>  xxxxbase64removedxxxx
>S: NO "Authentication Error"
>Authentication failed. generic failure
>Security strength factor: 0
>LOGOUT
>OK "Logout Complete"
>Connection closed.
>[root at www root]#
>
>   I get this in /var/log/messages:
>
>
>Feb 15 22:30:20 www sievelocal[2604]: badlogin: www[127.0.0.1] PLAIN
>no mechanism available
>
>
>   sievelocal is started via /etc/cyrus.conf:
>
>sievelocal    cmd="timsieved -C /etc/imapd-local.conf
>listen="127.0.0.1:sieve" prefork=0
>
>
>    I'm thinking the culprit is SASL..
>
>
>[root at www root]# saslauthd -v
>saslauthd 2.1.19
>authentication mechanisms: getpwent kerberos5 pam rimap shadow
>[root at www root]#
>
>
>   No PLAIN.. But it was (at least I asked for) compiled with PLAIN..
>from config.log:
>
>
>[root at www cyrus-sasl-2.1.19]# more config.log
>This file contains any messages produced by compilers while
>running configure, to aid debugging if configure makes a mistake.
>It was created by configure, which was
>generated by GNU Autoconf 2.57.  Invocation command line was
>   $ ./configure --enable-plain --with-mysql=/u01/mysql --with-pam
>
>   the plain plugin is also in the lib directory:
>
>[root at www cyrus-sasl-2.1.19]# ls -al /usr/lib/sasl2/libpl*
>-rwxr-xr-x  1 root root   679 Feb 15 13:53 /usr/lib/sasl2/libplain.la
>lrwxrwxrwx  1 root root    18 Feb 15 13:53 /usr/lib/sasl2/libplain.so
>-> libplain.so.2.0.19
>lrwxrwxrwx  1 root root    18 Feb 15 13:53
>/usr/lib/sasl2/libplain.so.2 -> libplain.so.2.0.19
>-rwxr-xr-x  1 root root 90438 Feb 15 13:53 
>/usr/lib/sasl2/libplain.so.2.0.19
>[root at www cyrus-sasl-2.1.19]#
>
>   saslauthd is running and available, running with "-a pam"
>
>So I must be missing something! How do I setup/use mech PLAIN (and
>pam) in saslauthd to be able to use timsieved ???
>
>   Thanks for any pointers. I've been scratching my head at this for days 
>now.
>
>   Martin
>---
>Cyrus Home Page: http://asg.web.cmu.edu/cyrus
>Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
>List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list