Bug#441612: cyrus-admin-2.2: sieveshell cannot connect to server

Ramiro Morales cramm0 at gmail.com
Mon Sep 10 17:31:40 UTC 2007


On 9/10/07, Alex Prinsier <debian at aphexer.mailhaven.com> wrote:
> I removed all firewall rules from iptables, and it made no difference.
>
> I also checked /etc/hosts.deny (it only contains lmtp: ALL, and
> commenting that line doesn't make a difference).
>
> Restarting cyrus also doesn't help.
>
> When running sieveshell this is everything that comes to the log:
>
> Sep 10 16:23:40 mail cyrus/master[15718]: about to exec
> /usr/lib/cyrus/bin/timsieved
> Sep 10 16:23:40 mail cyrus/sieve[15718]: executed
> Sep 10 16:23:40 mail cyrus/sieve[15718]: accepted connection
> Sep 10 16:23:40 mail cyrus/master[13845]: process 15718 exited, status 0
>

I remember seeing that scenario when upgrading from 2.1 to 2.2 but I can't
find anything on my notes about the reason and how I solved it. Actually
the sieve client is connecting, timsieved is getting forked by cyrmaster
but is exiting immediately.

I'd recommend trying the following:

1) Add the  -a authname, --authname=authname option to the sieveshell
    invocation:

  $ sieveshell -u username -p tehpass localhost:2000
  connecting to localhost:2000
  unable to connect to server at /usr/bin/sieveshell line 179.

  $ sieveshell -u username -a username -p tehpas localhost:2000
  connecting to localhost:2000
  >

/var/log/mail.log:

Sep 10 14:24:52 mx cyrus/master[17430]: about to exec
/usr/lib/cyrus/bin/timsieved
Sep 10 14:24:52 mx cyrus/sieve[17430]: executed
Sep 10 14:24:52 mx cyrus/sieve[17430]: accepted connection
Sep 10 14:24:52 mx cyrus/pop3[17382]: accepted connection
Sep 10 14:24:52 mx cyrus/sieve[17430]: login: localhost[127.0.0.1]
username PLAIN User logged in

2) Try using another non-privileged user different from cyrus.

3) If you are upgrading from Cyrus < 2.2, remember you need to compile
   the sieve scripts as described in
/usr/share/doc/cyrus-doc-2.2/UPGRADE.Debian.gz
  (/usr/lib/cyrus/upgrade/masssievec and sievec)

4) Try executing timsieved manually to see if it logs something:

  # sudo -u cyrus /usr/lib/cyrus/bin/timsieved

HTH and good luck.

-- 
 Ramiro Morales



More information about the Pkg-Cyrus-imapd-Debian-devel mailing list