Problems with sieveshell under Solaris 9

Thomas Robers robers at tutech.de
Wed Feb 23 06:37:03 EST 2005


Hello all,

I'm running Cyrus-Imapd 2.2.12 on Solaris 9.
I compiled it from source with gcc 3.2.2 from
Sunfreeware. I use saslauthd with method pam
for authentication. The "user accounts" for pam
are from a Windows 2003 Server via Samba/Winbind.

Everything works so far except sieveshell, which
I need for activating the sievescripts. When I
try:

 > root at imap:~ # sieveshell -u cyrus localhost
 > connecting to localhost
 > unable to connect to server at /opt/imap/bin/sieveshell line 169.

The log shows then:

 > imap master[15106]: [ID 392559 local6.debug] about to exec /opt/imap/libexec/timsieved
 > imap sieve[15106]: [ID 518349 local6.debug] executed
 > imap sieve[15106]: [ID 921384 local6.debug] accepted connection
 > imap master[11081]: [ID 310780 local6.debug] process 15106 exited, status 0

I searched the archive and documentation but found
nothing regarding this problem. I'm not a perl expert
but it seems that that the perl module managesieve
has some kind of problems, or am I totally wrong?
I tried telneting sieve as mentioned at
http://asg.web.cmu.edu/cyrus/download/imapd/install-sieve.html

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

So it seems that the sieve daemon is working, but sieveshell is
unable to connect to the sieve server.

Does anybody have a suggestion where the problem
may be, or where I could have a mistake? Maybe there
is another possibilty to activate a sieve script,
so that I don't need sieveshell?

Here some system information:

-gcc 3.2.2 from sunfreeware
-perl 5.8.3 also from sunfreeware
-cyrus-sasl 2.1.20 compiled from source
-openssl-0.9.7e compiled from source

-compile-flags for cyrus-imap:

CFLAGS="-O2 -g" \
CPPFLAGS="-I/usr/local/include -I/opt/BerkeleyDB/include -I/opt/openldap/include -I/opt/cyrus-sasl2/include/sasl \
  -I/opt/net-snmp/include"
LDFLAGS="-L/usr/local/lib -L/opt/BerkeleyDB/lib -L/opt/cyrus-sasl2/lib/sasl2 -L/opt/cyrus-sasl2/lib -L/opt/openldap/lib \
-R/opt/cyrus-sasl2/lib/sasl2 -R/opt/cyrus-sasl2/lib -L/opt/net-snmp/lib"
export CPPFLAGS LDFLAGS

./configure --prefix=/opt/imap --exec-prefix=/opt/imap --sysconfdir=/var/imap \
	    --sharedstatedir=/var/imap --localstatedir=/var/imap \
             --enable-sieve --enable-nntp --enable-murder --enable-oldsievename \
             --enable-listext --enable-netscape-hack --disable-gssapi --with-cyrus-prefix=/opt/imap \
             --with-service-path=/opt/imap/libexec --with-cyrus-user=cyrus --with-cyrus-group=cyrus \
             --with-statedir=/var/imap --with-auth=unix --with-bdb=/opt/BerkeleyDB
             --with-bdb-libdir=/opt/BerkeleyDB/lib --with-bdb-inc-dir=/opt/BerkeleyDB/include \
             --with-ldap=/opt/openldap --with-openssl=/opt/openssl --with-snmp=/opt/net-snmp \
             --with-pidfile=/var/run/cyrus-master.pid --with-sasl=/opt/cyrus-sasl2
	    --with-perl=/usr/local/bin/perl --with-libwrap=/usr/local/lib

-imapd.conf:

configdirectory: /var/imap
partition-default: /export/home/imap
sievedir: /export/home/sieve
sieveusehomedir: false
admins: root cyrus
sieve_admins: root cyrus
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN LOGIN
lmtpsocket: /export/home/imap/socket/lmtp
sendmail: /opt/postfix/sbin/sendmail
annotation_db: skiplist
duplicate_db: skiplist
mboxlist_db: skiplist
ptscache_db: skiplist
quotadb: skiplist
seenstate_db: skiplist
subscription_db: skiplist
tlscache_db: skiplist
allowplaintext: 1
mailnotifier: notifyd
sievenotifier: notifyd
temp_path: /tmp
#
tls_cert_file: /var/imap/certs/imap.pem
tls_key_file: /var/imap/certs/imap.pem
tls_ca_file: /var/imap/certs/imap.pem

-cyrus.conf:

# standard standalone server implementation
START {
   # do not delete this entry!
   recover       cmd="ctl_cyrusdb -r"
   # this is only necessary if using idled for IMAP IDLE
#  idled                cmd="idled"
}
# UNIX sockets start with a slash and are put into /var/imap/sockets
SERVICES {
   # add or remove based on preferences
   imap          cmd="imapd" listen="imap" prefork=5
#  imaps                cmd="imapd -s" listen="imaps" prefork=1
   imaps         cmd="/opt/imap/libexec/imapd -s" listen="imaps" prefork=5
   pop3          cmd="pop3d" listen="pop3" prefork=3
   pop3s         cmd="pop3d -s" listen="pop3s" prefork=1
   sieve         cmd="timsieved" listen="sieve" prefork=0
   # at least one LMTP is required for delivery
#  lmtp         cmd="lmtpd" listen="lmtp" prefork=0
   lmtpunix      cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=1
   # this is only necessary if using notifications
#  notify       cmd="notifyd" listen="/var/imap/socket/notify" proto="udp" prefork=1
}
EVENTS {
   # this is required
   checkpoint    cmd="ctl_cyrusdb -c" period=30
   # this is only necessary if using duplicate delivery suppression
   delprune      cmd="ctl_deliver -E 3" at=0400
   #delprune     cmd="
   # this is only necessary if caching TLS sessions
   tlsprune      cmd="tls_prune" at=0400
}


I don't know, if any further information would be helpful.
But any suggestion would be helpful for me.

Thanks.

Thomas

---
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