[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Cyrus Imap Sieve problems



I havn't tried cyrus+ldap, but with pam you need
a '/etc/pam.d/sieve' beside '/etc/pam.d/pop' and
'/etc/pam.d/imap'.
Probably you have to do something similar with ldap.

Christian


-----Original Message-----
From: John Hawley [mailto:jhawley@hissingdragon.net]
Sent: Thursday, April 22, 2004 6:49 PM
To: debian-isp@lists.debian.org
Subject: Cyrus Imap Sieve problems


Hi.

Been experimenting with Cyrus Imap on Debian/unstable.  Any tips on
getting Sieve working?  I'm using ldap to authenticate both Cyrus Imap
and Postfix.  All programs from deb packages.  Incoming messages headers
do have an X-Sieve line.

jhawley@blaziken:docs$ sieveshell -a jhawley -u jhawley localhost
connecting to localhost
unable to connect to server at /usr/bin/sieveshell line 174.


* Sieve is there listening:

jhawley@blaziken:docs$ telnet localhost sieve
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
"IMPLEMENTATION" "Cyrus timsieved v2.1.16-IPv6-Debian-2.1.16-6"
"SIEVE" "fileinto reject envelope vacation imapflags notify subaddress
relational regex"
"STARTTLS"
OK

.. but seems to be missing the authentication, ie most examples show the
line:
"SASL" "PLAIN"

* this give any more clues?  I think the cert messages are just
warnings, right?:

jhawley@blaziken:docs$ sivtest -t "" -a jhawley -u jhawley localhost
S: "IMPLEMENTATION" "Cyrus timsieved v2.1.16-IPv6-Debian-2.1.16-6"
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=18:self signed certificate
verify error:num=7:certificate signature failure
TLS connection established: TLSv1 with cipher AES256-SHA (256/256 bits)
C: CAPABILITY
S: "IMPLEMENTATION" "Cyrus timsieved v2.1.16-IPv6-Debian-2.1.16-6"
S: "SIEVE" "fileinto reject envelope vacation imapflags notify
subaddress relational regex"
S: OK
Authentication failed. generic failure
Security strength factor: 256

* /etc/imap.d:

jhawley@blaziken:etc$ grep -v '#' imapd.conf | grep -v '^$'
configdirectory: /var/lib/cyrus
defaultpartition: default
partition-default: /var/spool/cyrus/mail
partition-news: /var/spool/cyrus/news
newsspool: /var/spool/news
altnamespace: no
unixhierarchysep: yes
munge8bit: no
lmtp_downcase_rcpt: yes
admins: admin cyrus jhawley
allowanonymouslogin: no
popminpoll: 1
autocreatequota: 0
umask: 077
sendmail: /usr/sbin/sendmail
sieveusehomedir: false
sievedir: /var/spool/sieve
hashimapspool: true
allowplaintext: yes
sasl_mech_list: PLAIN
sasl_pwcheck_method: saslauthd
sasl_auto_transition: no
tls_cert_file: /etc/ssl/certs/ldap.cert
tls_key_file: /etc/ssl/certs/ldap.key
tls_ca_file: /etc/ssl/certs/ca.cert
tls_ca_path: /etc/ssl/certs
tls_session_timeout: 1440
tls_cipher_list: HIGH:MEDIUM:+SSLv2
tls_sieve_require_cert: false
lmtpsocket: /var/run/cyrus/socket/lmtp
idlesocket: /var/run/cyrus/socket/idle
notifysocket: /var/run/cyrus/socket/notify

jhawley@blaziken:etc$ cyradm -u cyrus localhost
IMAP Password:
              localhost>
localhost> version
name       : Cyrus IMAPD
version    : v2.1.16-IPv6-Debian-2.1.16-6 2004/02/26 22:56:56
vendor     : Project Cyrus
support-url: http://asg.web.cmu.edu/cyrus
os         : Linux
os-version : 2.4.24
environment: Cyrus SASL 2.1.15
             Sleepycat Software: Berkeley DB 3.2.9: (June 16, 2003)
             Built w/OpenSSL 0.9.7c 30 Sep 2003
             Running w/OpenSSL 0.9.7d 17 Mar 2004
             CMU Sieve 2.2
             DRAC
             TCP Wrappers
             UCD-SNMP 4.2.5
             mmap = shared
             lock = fcntl
             nonblock = fcntl
             auth = unix
             idle = poll
             mailboxes.db = skiplist
             seen.db = skiplist
             subs.db = flat
             deliver.db = db3-nosync
             tls_sessions.db = db3-nosync
localhost>

root@blaziken:etc# dpkg --list |grep cyrus
ii  cyrus21-admin            2.1.16-6      Cyrus mail system
(administration tool)
ii  cyrus21-clients          2.1.16-6      Cyrus mail system (test clients)
ii  cyrus21-common           2.1.16-6      Cyrus mail system (common files)
ii  cyrus21-doc              2.1.16-6      Cyrus mail system
(documentation files)
ii  cyrus21-imapd            2.1.16-6      Cyrus mail system (IMAP support)
ii  libcyrus-imap-perl21     2.1.16-6      Interface to Cyrus imap
client imclient library
root@blaziken:etc# dpkg --list |grep ldap
ii  ldap-utils               2.1.29-2      OpenLDAP utilities
ii  libldap2                 2.1.29-2      OpenLDAP libraries
ii  postfix-ldap             2.0.19-1      LDAP map support for Postfix
root@blaziken:etc# dpkg --list |grep postfix
ii  postfix                  2.0.19-1      A high-performance mail
transport agent
ii  postfix-ldap             2.0.19-1      LDAP map support for Postfix
ii  postfix-tls              2.0.19-1      TLS and SASL support for Postfix


** Thanks for any insight.

--
John Hawley
jhawley@hissingdragon.net


--
To UNSUBSCRIBE, email to debian-isp-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org



Reply to: