Hi,

Quoting Дилян Палаузов <dilyan.palau...@aegee.org>:

Hello Philipp,

perhaps sieveshell does not like STARTTLS-only connections.


Issue #530 "sieveshell wants STARTTLS support"
https://github.com/cyrusimap/cyrus-imapd/issues/530

You can try with https://code.guido-berhoerster.org/projects/sievemgr/
.




Greetings
  Dilyan

On Thu, 2022-01-27 at 12:07 -0700, Philip Prindeville wrote:
Hi,

I'm running a batch script to update my sieve settings for mailing
lists, as:

#!/bin/bash

script=$'put sieve.rc\nactivate sieve.rc\nquit'

cd $HOME

sieveshell -e "$script" -u $USER -r mail localhost

But when I run it, I get:

unable to connect to server at /usr/bin/sieveshell line 195.

Odder still, if I strace the script, I see:

...
read(4, "\"IMPLEMENTATION\" \"Cyrus timsieve"..., 4096) = 465
write(2, "unable to connect to server at /"..., 61unable to connect
to server at /usr/bin/sieveshell line 195.
) = 61
...

Which means we ARE connecting to it just fine.  Is the Perl module
broken?

Connecting to the socket manually works just fine:

[philipp@mail ~]$ telnet localhost 4190
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
"IMPLEMENTATION" "Cyrus timsieved 3.2.4-7.fc34 Fedora"
"VERSION" "1.0"
"SIEVE" "comparator-i;ascii-numeric fileinto reject ereject vacation
vacation-seconds imapflags notify enotify include editheader ihave
envelope environment body imap4flags date mailbox mboxmetadata
servermetadata duplicate relational regex extlists subaddress copy
index variables mailboxid"
"NOTIFY" "mailto"
"EXTLISTS" "urn:ietf:params:sieve:addrbook"
"STARTTLS"
"UNAUTHENTICATE"
OK
^]close

telnet> close
Connection closed.
[philipp@mail ~]$

I'm using perl-Cyrus-3.2.4-7.fc34.x86_64.

I'm stumped.  Anyone else seeing something similar?

Thanks,

-Philip




--------------------------------------------------------------------------------
Michael Menge                          Tel.: (49) 7071 / 29-70316
Universität Tübingen                   Fax.: (49) 7071 / 29-5912
Zentrum für Datenverarbeitung mail: michael.me...@zdv.uni-tuebingen.de
Wächterstraße 76
72074 Tübingen


------------------------------------------
Cyrus: Devel
Permalink: 
https://cyrus.topicbox.com/groups/devel/T7994137699dc50f4-Madee8033bc388b0be9cba97f
Delivery options: https://cyrus.topicbox.com/groups/devel/subscription

Reply via email to