Roundcube Community Forum

Release Support => Requests => Topic started by: vigneshk on July 16, 2018, 05:09:09 AM

Title: auto responder filter
Post by: vigneshk on July 16, 2018, 05:09:09 AM
Hi ,

Whenever i add manageseive in config and i try to open it in frontend for out for office feature , i get "unable to connect to server".
incoming and outgoing is working. not able to built the filter feature.
Roudcube version : 1.3.6

can anyone help me on this !
Title: Re: auto responder filter
Post by: JohnDoh on July 16, 2018, 08:36:50 AM
for the plugin to work you need to be running a managesieve server eg https://wiki.dovecot.org/Pigeonhole/ManageSieve
Title: Re: auto responder filter
Post by: vigneshk on July 16, 2018, 09:49:06 AM
HI

Thanks for your suggestion

but i already installed managesieve server
Title: Re: auto responder filter
Post by: JohnDoh on July 16, 2018, 11:06:01 AM
good start. so we know you have a server running and rc cannot connect to it. can other clients connect to it? can you telnet to it from your webserver is a good check. have you double checked you have the correct connection info in the rc managesieve plugin's config file? there may be a more verbose error message in your rc error log i'm not sure.
Title: Re: auto responder filter
Post by: vigneshk on July 16, 2018, 03:13:36 PM
Hi

telnet is working for my web server


my round cube error log

[16-Jul-2018 18:23:01 +0530]: <td6hupte> PHP Error: Unable to connect to managesieve on 127.0.0.1:4190 in /var/www/html/roundcube/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php on line 222 (GET /roundcube/?_task=settings&_action=plugin.managesieve-vacation)


Thanks for suggestion
Title: Re: auto responder filter
Post by: vigneshk on July 17, 2018, 12:28:32 AM
hi ,

I would like to brief on the work done.
Our mail server is seperate.
We have installed roundcube on a seperate ubuntu(14.04) desktop machine.
We have installed dovecot and configurations of our server is completed and we are able to login with our mail id's and able to send and receive mails.
While trying to bring this filters option , when manageseive is configured in roundcube configuration in front end it throws an error.
We are running the manageseive server through dovecot bundle.

following are the main configurations done:
- roudcube/config/config.inc.php

$rcmail_config['plugins'] = array('managesieve');

- roundcube/plugins/managesieve/config.inc.php

$rcmail_config['managesieve_port'] = 4190;
$config['managesieve_host'] = '127.0.0.1';
$config['managesieve_auth_type'] = 'PLAIN';
$config['managesieve_auth_cid'] = null;
$config['managesieve_auth_pw'] = null;
$config['managesieve_usetls'] = true;
$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_filename_extension'] = '.sieve';
$config['managesieve_conn_options'] = array(
  'ssl'         => array(
     'verify_peer'  => true,
'allow_self_signed' => true,
'capath'  => '/etc/ssl/certs',
  ),
 );

we have tried keeping the ssl and commenting too still same issue.


Title: Re: auto responder filter
Post by: JohnDoh on July 17, 2018, 02:41:54 AM
I think the problem might be here:
Code: [Select]
$config['managesieve_host'] = '127.0.0.1';that says the plugin should connect to localhost but you said that roundcube and dovecot are on seperate machines.
Title: Re: auto responder filter
Post by: vigneshk on July 17, 2018, 06:18:33 AM
Roundcube and dovecot are in the same server.
The mail server is hosted different.
The mail client roundcube and dovecot are in the same ubuntu desktop 14.04
Title: Re: auto responder filter
Post by: vigneshk on July 17, 2018, 06:20:35 AM
The possible errors we can find in roundcube logs and mail logs is :

dovecot: managesieve-login: Aborted login (auth failed, 1 attempts in 4 secs): user=<vigneshk@vtigress.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<MshFcCpxeQB/AAAB>

PHP Error: Unable to connect to managesieve on 127.0.0.1:4190 in /var/www/html/roundcube/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php on line 222 (GET /roundcube/?_task=settings&_action=plugin.managesieve)

ERROR: Not currently in AUTHORISATION state (1)
Title: Re: auto responder filter
Post by: JohnDoh on July 18, 2018, 10:26:30 AM
"Aborted login" might be an internal problem on your managesieve server. Can you check the logs to see why it was aborted?
Title: Re: auto responder filter
Post by: vigneshk on July 18, 2018, 11:04:42 AM
Hi

our log files output


/var/log/mail.log


Jul 18 18:54:48 mepc-08 dovecot: managesieve-login: Aborted login (auth failed, 1 attempts in 5 secs): user=<gurunarayan>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<hRNU/EVxLQB/AAAB>
Jul 18 18:55:07 mepc-08 dovecot: managesieve-login: Aborted login (auth failed, 1 attempts in 8 secs): user=<gurunarayan>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<f0lJ/UVxLgB/AAAB>
Jul 18 18:56:45 mepc-08 dovecot: managesieve-login: Aborted login (auth failed, 1 attempts in 4 secs): user=<gurunarayan>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<m79YA0ZxNgB/AAAB>
Jul 18 18:57:45 mepc-08 dovecot: managesieve-login: Aborted login (auth failed, 1 attempts in 5 secs): user=<gurunarayan>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<DZXmBkZxOAB/AAAB>
Jul 18 18:58:02 mepc-08 dovecot: managesieve-login: Aborted login (auth failed, 1 attempts in 8 secs): user=<gurunarayan>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<ULytB0ZxPQB/AAAB>
Jul 18 19:15:21 mepc-08 dovecot: managesieve-login: Aborted login (auth failed, 1 attempts in 4 secs): user=<gurunarayan>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<LB/eRUZxXwB/AAAB>
Jul 18 19:18:45 mepc-08 dovecot: managesieve-login: Aborted login (auth failed, 1 attempts in 4 secs): user=<gurunarayan>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<ql8GUkZxZAB/AAAB>












/var/www/html/roundcube/logs/errors

[18-Jul-2018 18:58:02 +0530]: <oiiol3nl> PHP Error: Unable to connect to managesieve on 127.0.0.1:4190 in /var/www/html/roundcube/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php on line 222 (GET /roundcube/?_task=settings&_action=plugin.managesieve-vacation)
[18-Jul-2018 19:15:21 Asia/Calcutta] ERROR: "Authentication failed." (3)
[18-Jul-2018 19:15:21 +0530]: <oiiol3nl> PHP Error: Unable to connect to managesieve on 127.0.0.1:4190 in /var/www/html/roundcube/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php on line 222 (GET /roundcube/?_task=settings&_action=plugin.managesieve-vacation)
[18-Jul-2018 19:18:45 Asia/Calcutta] ERROR: "Authentication failed." (3)
[18-Jul-2018 19:18:45 +0530]: <oiiol3nl> PHP Error: Unable to connect to managesieve on 127.0.0.1:4190 in /var/www/html/roundcube/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php on line 222 (GET /roundcube/?_task=settings&_action=plugin.managesieve-vacation)




and no error log in

/var/log/dovecot
Title: Re: auto responder filter
Post by: JohnDoh on July 19, 2018, 05:01:51 AM
that does not tell us anything new. can you login to your managesieve server with other clients? you need to find out why its reporting Aborted login. This has some debugging tips and how to enable more detailed logging https://wiki.dovecot.org/Pigeonhole/ManageSieve/Troubleshooting
Title: Re: auto responder filter
Post by: vigneshk on July 19, 2018, 04:19:06 PM
Hi

our output

perl sieve-auth-command.pl shift shift
AUTHENTICATE "PLAIN" "AHNoaWZ0AHNoaWZ0"


 gnutls-cli --starttls -p 4190 127.0.0.1



Resolving '127.0.0.1'...
Connecting to '127.0.0.1:4190'...

- Simple Client Mode:

"IMPLEMENTATION" "dovecot"
"SIEVE" "fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave"
"NOTIFY" "mailto"
"SASL" "PLAIN"
"STARTTLS"
"VERSION" "1.0"
OK "Dovecot (Ubuntu) ready."
Title: Re: auto responder filter
Post by: vigneshk on July 27, 2018, 11:24:39 AM
hi ,

Can you please tell me is it must to setup managesieve in my mail server first before setting up on my local where roundcube is installed?
If so , can i know how to configure it in my mail server.
Title: Re: auto responder filter
Post by: JohnDoh on July 29, 2018, 03:59:54 AM
Yes, you must have a correctly configured managesieve server running first before you can use the managesieve plugin in Roundcube.

This is not the place for help configuring servers. Please ask in the community for your server software.
Title: Re: auto responder filter
Post by: vigneshk on August 03, 2018, 10:07:49 AM
i would like to know , if this autoresponder is been achieved before by anyone or is it possible?