<html style="direction: ltr;">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <style id="bidiui-paragraph-margins" type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
  </head>
  <body bidimailui-charset-is-forced="true" style="direction: ltr;">
    <font face="monospace">Hello Colin,<br>
      <br>
      On my installation, managesieve is configured in its own plugin
      directory : <br>
      <br>
      /var/www/roundcubemail/plugins/managesieve/<br>
      <br>
      <br>
      <br>
      <br>
      Here's what works for me : <br>
      <br>
      root@messagerie-principale[10.10.10.19]
      /var/www/roundcubemail-1.2.4/plugins/managesieve #
      pretty.remove.blanks+comments config.inc.php<br>
      <?php<br>
      $config['managesieve_port'] = null;<br>
      $config['managesieve_host'] = 'localhost';<br>
      $config['managesieve_auth_type'] = null;<br>
      $config['managesieve_auth_cid'] = null;<br>
      $config['managesieve_auth_pw'] = null;<br>
      $config['managesieve_usetls'] = false;<br>
      $config['managesieve_conn_options'] = null;<br>
      $config['managesieve_default'] = '/etc/dovecot/sieve/global';<br>
      $config['managesieve_script_name'] = 'managesieve';<br>
      $config['managesieve_mbox_encoding'] = 'UTF-8';<br>
      $config['managesieve_replace_delimiter'] = '';<br>
      $config['managesieve_disabled_extensions'] = array();<br>
      $config['managesieve_debug'] = false;<br>
      $config['managesieve_kolab_master'] = false;<br>
      $config['managesieve_filename_extension'] = '.sieve';<br>
      $config['managesieve_filename_exceptions'] = array();<br>
      $config['managesieve_domains'] = array();<br>
      $config['managesieve_vacation'] = 1;<br>
      $config['managesieve_vacation_interval'] = 0;<br>
      $config['managesieve_vacation_addresses_init'] = false;<br>
      $config['managesieve_notify_methods'] = array('mailto');<br>
      root@messagerie-principale[10.10.10.19]
      /var/www/roundcubemail-1.2.4/plugins/managesieve #<br>
      <br>
      <br>
      <br>
      <br>
      prety.remove.blanks+comments is just a grep alias : <br>
      <br>
      $ type pretty.remove.blanks+comments<br>
      pretty.remove.blanks+comments is aliased to `egrep -v
      '(^[[:space:]]*#|^$|^[[:space:]]*//|^[[:space:]]*;)''<br>
      $<br>
      <br>
      Maybe you could use this alias and print your config as requested?<br>
    </font><br>
    <font face="monospace">Best,<br>
    </font>
    <pre class="moz-signature" cols="72">-- 
Yassine -- sysadm</pre>
    <div class="moz-cite-prefix">Le 11/23/22 à 8:54 PM,
      <a class="moz-txt-link-abbreviated" href="mailto:colin@colinlikesfood.com">colin@colinlikesfood.com</a> a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:e323dc20-10ba-475c-8a1e-a4a3ae7dae6a@smtp-relay.sendinblue.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p>thank you again. it seems you have seen my paste of
        config.inc.php.  I do not have a config.php:</p>
      <p>my_user@some_host:/usr/local/www/roundcube/config # ls -l<br>
        total 67<br>
        -rw-r--r--  1 root  wheel    164 Jul 23 15:17 .htaccess<br>
        -rw-r--r--  1 root  wheel   1867 Nov 22 15:12 config.inc.php<br>
        -rw-r--r--  1 root  wheel   2943 Jul 23 15:17
        config.inc.php.sample<br>
        -rw-r--r--  1 root  wheel  63790 Oct 29 20:24 defaults.inc.php<br>
        -rw-r--r--  1 root  wheel   2806 Jul 23 15:17 mimetypes.php<br>
        my_user@some_host:/usr/local/www/roundcube/config #</p>
      <p><br>
      </p>
      <p>I have tried changing tls:// to ssl:// and back again (in the
        line $config['managesieve_host'] = 'tls://obfuscated.domain';)
        but the error remains the same:</p>
      <p style="direction: ltr;">roundcube: PHP Error: Connection
        refused (GET
        /index.php?_task=settings&_action=plugin.managesieve)<br>
        roundcube: PHP Error: Unable to connect to managesieve on
        obfuscated.domain:4190 in
/usr/local/www/roundcube/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php
        on line 221 (GET
        /index.php?_task=settings&_action=plugin.managesieve)<br>
        roundcube: PHP Error: Not currently in AUTHORISATION state (GET
        /index.php?_task=settings&_action=plugin.managesieve)<br>
        php: PHP Error: Not currently connected (GET
        /index.php?_task=settings&_action=plugin.managesieve)<br>
        roundcube: PHP Error: Connection refused (GET
/index.php?_task=settings&_action=plugin.managesieve-action&_framed=1&_nav=hide)<br>
        roundcube: PHP Error: Unable to connect to managesieve on
        obfuscated.domain:4190 in
/usr/local/www/roundcube/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php
        on line 221 (GET
/index.php?_task=settings&_action=plugin.managesieve-action&_framed=1&_nav=hide)<br>
        php: PHP Error: Not currently connected (GET
/index.php?_task=settings&_action=plugin.managesieve-action&_framed=1&_nav=hide)<br>
        roundcube: PHP Error: Connection refused (POST
        /?_task=settings&_action=plugin.managesieve-save)<br>
        roundcube: PHP Error: Unable to connect to managesieve on
        obfuscated.domain:4190 in
/usr/local/www/roundcube/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php
        on line 221 (POST
        /?_task=settings&_action=plugin.managesieve-save)</p>
      <p><br>
      </p>
      <p>i don't understand why it can't connect, this seems to work
        fine:</p>
      <p style="background-color: #ffffff;"># gnutls-cli --tofu
        --starttls -p 4190 10.0.0.91<br>
        Processed 142 CA certificate(s).<br>
        Resolving '10.0.0.91:4190'...<br>
        Connecting to '10.0.0.91:4190'...</p>
      <p style="background-color: #ffffff;">- Simple Client Mode:</p>
      <p style="background-color: #ffffff;">"IMPLEMENTATION" "dovecot"<br>
        "SIEVE" "fileinto reject envelope encoded-character vacation
        subaddress comparator-i;ascii-numeric relational regex
        imap4flags copy include variables body enotify environment
        mailbox date index ihave duplicate mime foreverypart
        extracttext"<br>
        "NOTIFY" "mailto"<br>
        "SASL" "CRAM-MD5"<br>
        "STARTTLS"<br>
        "VERSION" "1.0"<br>
        OK "Dovecot ready."<br>
        STARTTLS<br>
        OK "Begin TLS negotiation now."<br>
        *** Starting TLS handshake<br>
        - Certificate type: X.509<br>
        - Got a certificate list of 3 certificates.<br>
        - Certificate[0] info:<br>
         - subject `CN=obfuscated.domain.com', issuer `CN=R3,O=Let's
        Encrypt,C=US', serial xxxxxxxxxxxxxxxxxxxxxx, RSA key 2048 bits,
        signed using RSA-SHA256, activated `yyyy-mm-dd 17:48:15 UTC',
        expires `yyyy-mm-dd 17:48:14 UTC',
        pin-sha256="xxxxxxxxxxxxxxxxxxxxxx"<br>
                Public Key ID:<br>
                        sha1:xxxxxxxxxxxxxxxxxxxxxx<br>
                        sha256:xxxxxxxxxxxxxxxxxxxxxx<br>
                Public Key PIN:<br>
                        pin-sha256:xxxxxxxxxxxxxxxxxxxxxx</p>
      <p style="background-color: #ffffff;">- Certificate[1] info:<br>
         - subject `CN=R3,O=Let's Encrypt,C=US', issuer `CN=ISRG Root
        X1,O=Internet Security Research Group,C=US', serial
        xxxxxxxxxxxxxxxxxxxxxx, RSA key 2048 bits, signed using
        RSA-SHA256, activated `yyyy-mm-dd 00:00:00 UTC', expires
        `yyyy-mm-dd 16:00:00 UTC', pin-sha256="xxxxxxxxxxxxxxxxxxxxxx"<br>
        - Certificate[2] info:<br>
         - subject `CN=ISRG Root X1,O=Internet Security Research
        Group,C=US', issuer `CN=DST Root CA X3,O=Digital Signature Trust
        Co.', serial yyyy-mm-dd, RSA key 4096 bits, signed using
        RSA-SHA256, activated `yyyy-mm-dd 19:14:03 UTC', expires
        `yyyy-mm-dd 18:14:03 UTC', pin-sha256="xxxxxxxxxxxxxxxxxxxxxx"<br>
        - Status: The certificate is NOT trusted. The name in the
        certificate does not match the expected.<br>
        *** PKI verification of server certificate failed...<br>
        Host 10.0.0.91 (sieve) has never been contacted before.<br>
        Its certificate is valid for 10.0.0.91.<br>
        Are you sure you want to trust it? (y/N): y<br>
        - Description:
        (TLS1.3-X.509)-(ECDHE-SECP256R1)-(RSA-PSS-RSAE-SHA256)-(AES-256-GCM)<br>
        - Session ID: xx:yy:xx:yy:xx:yy...<br>
        - Options:<br>
        "IMPLEMENTATION" "dovecot"<br>
        "SIEVE" "fileinto reject envelope encoded-character vacation
        subaddress comparator-i;ascii-numeric relational regex
        imap4flags copy include variables body enotify environment
        mailbox date index ihave duplicate mime foreverypart
        extracttext"<br>
        "NOTIFY" "mailto"<br>
        "SASL" "CRAM-MD5"<br>
        "VERSION" "1.0"<br>
        OK "TLS negotiation successful."</p>
      <p><br>
      </p>
      <p><br>
      </p>
      <p id="reply-intro">On 2022-11-23 13:35, Yassine Chaouche wrote:</p>
      <blockquote type="cite" style="padding: 0 0.4em; border-left:
        #1010ff 2px solid; margin: 0">
        <div class="pre" style="margin: 0; padding: 0; font-family:
          monospace">also make sure your are editing config.php and not
          config.inc.php (which you pasted)<br>
          <br>
          Yassine.<br>
          <br>
          Le 23 novembre 2022 8:30:36 PM GMT+01:00, Yassine Chaouche
          <<a href="mailto:a.chaouche@algerian-radio.dz"
            moz-do-not-send="true">a.chaouche@algerian-radio.dz</a>>
          a écrit :
          <blockquote type="cite" style="padding: 0 0.4em; border-left:
            #1010ff 2px solid; margin: 0">good. we have established that
            the problem shouldn't be on dovecot's side. i suspect
            roundcube is misconfigured or can't connect for some reason.
            I believe someone mentioned SSL and TLS support problem in
            RC for a specific version? can you try without? also can you
            paste RC config? <br>
            <br>
            Yassine.<br>
            <br>
          </blockquote>
        </div>
      </blockquote>
      <img
src="https://fcfjhji.r.af.d.sendibt2.com/tr/op/M9PFDybHrbcFc6LsPcP8Sq2eRd0csxYkact2TCoFDYoDp8wkrLhL20d6yeZUXxVdKyIgK8fG-5WY2QPtUHkGOg-DkGV-8DguoTfXJpOYDn4jfz7RGWg34jtgmbM6iwCcyDff5qm0wAS66yFwfFRjTLDsJOnzC3lcilqzwamTe5b6"
        alt="" moz-do-not-send="true" width="1" height="1">
    </blockquote>
    <br>
  </body>
</html>