Author Topic: managesieve plugin login issues, Roundcube v1.3.6  (Read 6997 times)

Offline whodat

  • Newbie
  • *
  • Posts: 3
managesieve plugin login issues, Roundcube v1.3.6
« on: May 12, 2018, 02:35:07 PM »
I recently upgraded Roundcube to v1.3.6 and lost the ability to login to managesieve using the plugin.  It appears to me that the plugin is not sending the credentials of the logged-in user to the managesieve (Dovecot 2.2.33.2) server, but that's just a guess.  The sieve server is filtering messages as expected and I can manage the filter rules from the command line using the sieve-connect utility.  Here is the redacted transcript of the managesieve pluging debug information in my log file:

May 12 14:25:47 www rcm: <aqm776ab> S: "IMPLEMENTATION" "Dovecot (Ubuntu) Pigeonhole"
May 12 14:25:47 www rcm: <aqm776ab> S: "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"
May 12 14:25:47 www rcm: <aqm776ab> S: "NOTIFY" "mailto"
May 12 14:25:47 www rcm: <aqm776ab> S: "SASL" ""
May 12 14:25:47 www rcm: <aqm776ab> S: "STARTTLS"
May 12 14:25:47 www rcm: <aqm776ab> S: "VERSION" "1.0"
May 12 14:25:47 www rcm: <aqm776ab> S: OK "Dovecot (Ubuntu) ready."
May 12 14:25:47 www rcm: ERROR: This server doesn't support any authentication methods. ()
May 12 14:25:47 www rcm: <aqm776ab> PHP Error: Unable to connect to managesieve on mx1.example.com:4190 in /var/www/example.com/htdocs/rcm/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php on line 222 (GET /rcm/?_task=settings&_action=plugin.managesieve)
May 12 14:25:47 www rcm: ERROR: Not currently in AUTHORISATION state (1)
May 12 14:25:47 www ool www: <aqm776ab> C: LOGOUT
May 12 14:25:47 www ool www: <aqm776ab> S: OK "Logout completed."

Thank you for any assistance you can provide.

--
W.

Online alec

  • Hero Member
  • *****
  • Posts: 1,363
Re: managesieve plugin login issues, Roundcube v1.3.6
« Reply #1 on: May 13, 2018, 01:12:32 AM »
Show plugin config, please and check this https://github.com/roundcube/roundcubemail/issues/6106

Offline whodat

  • Newbie
  • *
  • Posts: 3
Re: managesieve plugin login issues, Roundcube v1.3.6
« Reply #2 on: May 13, 2018, 10:55:04 AM »
Alec,

I had not seen the link to which you referred.  Thank you.  I will take a close look at it to see if there's anything that applies to my configuration.

<?php
$config['managesieve_port'] = 4190;
$config['managesieve_host'] = 'mx1.example.com';
$config['managesieve_auth_type'] = null;
$config['managesieve_auth_cid'] = null;
$config['managesieve_auth_pw'] = null;
$config['managesieve_usetls'] = false;
// I've disabled SSL cert verification for testing only
$config['managesieve_conn_options'] = array(
  'ssl'         => array(
    'verify_peer'  => false,
    'verify_depth' => 3,
    'cafile'       => '/etc/openssl/certs/ca.crt',
  ), 
);
$config['managesieve_conn_options'] = null;
$config['managesieve_default'] = '/etc/dovecot/sieve/global';
$config['managesieve_script_name'] = 'managesieve';
$config['managesieve_mbox_encoding'] = 'UTF-8';
$config['managesieve_replace_delimiter'] = '';
$config['managesieve_disabled_extensions'] = array();
$config['managesieve_debug'] = true;
$config['managesieve_kolab_master'] = false;
$config['managesieve_filename_extension'] = '.sieve';
$config['managesieve_filename_exceptions'] = array();
$config['managesieve_domains'] = array();
$config['managesieve_vacation'] = 0;
$config['managesieve_vacation_interval'] = 0;
$config['managesieve_vacation_addresses_init'] = false;
$config['managesieve_vacation_from_init'] = false;
$config['managesieve_notify_methods'] = array('mailto');
$config['managesieve_raw_editor'] = true;

--
W.

Online alec

  • Hero Member
  • *****
  • Posts: 1,363
Re: managesieve plugin login issues, Roundcube v1.3.6
« Reply #3 on: May 13, 2018, 12:56:09 PM »
That looks like you have disabled TLS. Set $config['managesieve_usetls'] = true;

Offline whodat

  • Newbie
  • *
  • Posts: 3
Re: managesieve plugin login issues, Roundcube v1.3.6 [SOLVED]
« Reply #4 on: May 18, 2018, 03:18:46 PM »
Thanks for the reminder to enable TLS.  My issue was related to my self-signed SSL certificate and lack of familiarity with how PHP handles SSL contexts.  Prior to upgrading to 1.3.6, the Roundcube installation resided on the mail server and accessed the managesieve daemon through localhost:4190 so, obviously, there was no need for SSL.  To fix the problem, I ensured that my SSL certs were properly hashed in their directory and set the respective options in config.inc.php as follows:

$config['managesieve_conn_options'] = array(
  'ssl'         => array(
    'verify_peer'  => true,
     'allow_self_signed' => true,
     'capath'  => '/etc/ssl/certs',
   )
);

Thank you for your assistance and for providing a superlative web-based e-mail package.

--
W.