roundcube / roundcubemail

The Roundcube Webmail suite
https://roundcube.net
GNU General Public License v3.0
5.79k stars 1.62k forks source link

Managesieve plugin over TLS #5342

Closed m0ps closed 8 years ago

m0ps commented 8 years ago

Hello! We just trying to configure managesieve plugin to connect to sieve server over TLS and faced with some issue. It looks like it can't propertly parce responce from server: managesieve settings page errors In error log there is: [01-Jul-2016 17:05:26 Europe/Kiev] ERROR: (NONEXISTENT) "Script does not exist." (3) in managesieve debug log: [01-Jul-2016 17:16:05 +0300]: S: "IMPLEMENTATION" "Cyrus timsieved v2.2.13" [01-Jul-2016 17:16:05 +0300]: S: "SIEVE" "fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave" [01-Jul-2016 17:16:05 +0300]: S: "NOTIFY" "mailto" [01-Jul-2016 17:16:05 +0300]: S: "SASL" "PLAIN" [01-Jul-2016 17:16:05 +0300]: S: "STARTTLS" [01-Jul-2016 17:16:05 +0300]: S: "VERSION" "1.0" [01-Jul-2016 17:16:05 +0300]: S: OK "Dovecot ready." [01-Jul-2016 17:16:05 +0300]: C: CAPABILITY [01-Jul-2016 17:16:05 +0300]: S: "IMPLEMENTATION" "Cyrus timsieved v2.2.13" [01-Jul-2016 17:16:05 +0300]: S: "SIEVE" "fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave" [01-Jul-2016 17:16:05 +0300]: S: "NOTIFY" "mailto" [01-Jul-2016 17:16:05 +0300]: S: "SASL" "PLAIN" [01-Jul-2016 17:16:05 +0300]: S: "STARTTLS" [01-Jul-2016 17:16:05 +0300]: S: "VERSION" "1.0" [01-Jul-2016 17:16:05 +0300]: S: OK "Capability completed." [01-Jul-2016 17:16:05 +0300]: C: STARTTLS [01-Jul-2016 17:16:05 +0300]: S: OK "Begin TLS negotiation now." [01-Jul-2016 17:16:05 +0300]: STARTTLS negotiation successful [01-Jul-2016 17:16:05 +0300]: C: CAPABILITY [01-Jul-2016 17:16:05 +0300]: S: "IMPLEMENTATION" "Cyrus timsieved v2.2.13" [01-Jul-2016 17:16:05 +0300]: S: "SIEVE" "fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave" [01-Jul-2016 17:16:05 +0300]: S: "NOTIFY" "mailto" [01-Jul-2016 17:16:05 +0300]: S: "SASL" "PLAIN" [01-Jul-2016 17:16:05 +0300]: S: "VERSION" "1.0" [01-Jul-2016 17:16:05 +0300]: S: OK "TLS negotiation successful." [01-Jul-2016 17:16:05 +0300]: C: AUTHENTICATE "PLAIN" "AG1rdXJzaW4AZ2ZoamttX2xrejFzYXRzYXQ=" [01-Jul-2016 17:16:05 +0300]: S: "IMPLEMENTATION" "Cyrus timsieved v2.2.13" [01-Jul-2016 17:16:05 +0300]: S: "SIEVE" "fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave" [01-Jul-2016 17:16:05 +0300]: S: "NOTIFY" "mailto" [01-Jul-2016 17:16:05 +0300]: S: "SASL" "PLAIN" [01-Jul-2016 17:16:05 +0300]: S: "VERSION" "1.0" [01-Jul-2016 17:16:05 +0300]: S: OK "Capability completed." [01-Jul-2016 17:16:05 +0300]: C: CAPABILITY [01-Jul-2016 17:16:05 +0300]: S: OK "Logged in." [01-Jul-2016 17:16:05 +0300]: C: LISTSCRIPTS [01-Jul-2016 17:16:05 +0300]: S: "IMPLEMENTATION" "Dovecot Pigeonhole" [01-Jul-2016 17:16:05 +0300]: S: "SIEVE" "fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave" [01-Jul-2016 17:16:05 +0300]: S: "MAXREDIRECTS" "8" [01-Jul-2016 17:16:05 +0300]: S: "NOTIFY" "mailto" [01-Jul-2016 17:16:05 +0300]: S: "VERSION" "1.0" [01-Jul-2016 17:16:05 +0300]: S: OK "Capability completed." [01-Jul-2016 17:16:05 +0300]: C: LISTSCRIPTS [01-Jul-2016 17:16:05 +0300]: S: "dovecot.orig" [01-Jul-2016 17:16:05 +0300]: S: OK "Listscripts completed." [01-Jul-2016 17:16:05 +0300]: C: GETSCRIPT "IMPLEMENTATION\" \"Dovecot Pigeonhole" [01-Jul-2016 17:16:05 +0300]: S: "dovecot.orig" [01-Jul-2016 17:16:05 +0300]: S: OK "Listscripts completed." [01-Jul-2016 17:16:05 +0300]: C: LOGOUT [01-Jul-2016 17:16:05 +0300]: S: NO (NONEXISTENT) "Script does not exist."

Without TLS it works like a charm.

alecpl commented 8 years ago

WTF, cyrus and dovecot in one? I think you have misconfigured managesieve to use invalid "implementation" string.

m0ps commented 8 years ago

As a Sieve server we use Dovecot v 2.0.19 There is no such issue with thunderbird plugin Sieve 0.2.3.f

Dovecot config has such string: managesieve_implementation_string = Cyrus timsieved v2.2.13

m0ps commented 8 years ago

Just replaced it with managesieve_implementation_string = Dovecot Pigeonhole and issue gone.

Thanks for pointing.