• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Can't create Sieve filter within Horde :(

Status
Not open for further replies.

JonathanMueller

New Pleskian
Hey,

I want to create a Sieve filter for my email account using the Webmail interface of Horde.
When I save a script at /ingo/basic.php?page=filters I get the following error message:
Please note: My system language is German. See my translation of the German error messages within braces.
Code:
Skript nicht aktualisiert ("Script not updated"): exception 'Ingo_Exception' with message 'Beim Aktivieren des Skripts ist ein Fehler aufgetreten.
Fehlermeldung des Treibers ("Error while activating the script. Error message of the driver"): exception 'Ingo_Exception' with message
'Verbindungsaufbau abgelehnt' ("Connection refused") in /usr/share/psa-horde/ingo/lib/Transport/Timsieved.php:87
Stack trace: #0 /usr/share/psa-horde/ingo/lib/Transport/Timsieved.php(120): Ingo_Transport_Timsieved->_connect()
#1 /usr/share/psa-horde/ingo/lib/Script/Util.php(45): Ingo_Transport_Timsieved->setScriptActive(Array) #2
/usr/share/psa-horde/ingo/lib/Script/Util.php(81): Ingo_Script_Util::activate(Array) #3 /usr/share/psa-horde/ingo/lib/Basic/Rule.php(198):
Ingo_Script_Util::update() #4 /usr/share/psa-horde/ingo/lib/Basic/Base.php(48): Ingo_Basic_Rule->_init()
#5 /usr/share/psa-horde/ingo/basic.php(30): Ingo_Basic_Base->__construct(Object(Horde_Variables))
#6 {main}' in /usr/share/psa-horde/ingo/lib/Script/Util.php:50 Stack trace:
#0 /usr/share/psa-horde/ingo/lib/Script/Util.php(81):
Ingo_Script_Util::activate(Array)
#1 /usr/share/psa-horde/ingo/lib/Basic/Rule.php(198): Ingo_Script_Util::update()
#2 /usr/share/psa-horde/ingo/lib/Basic/Base.php(48): Ingo_Basic_Rule->_init()
#3 /usr/share/psa-horde/ingo/basic.php(30): Ingo_Basic_Base->__construct(Object(Horde_Variables)) #4 {main}

Server: Debian 6.0.10
Webserver: nginx (Plesk install)
Mailserver: Dovecot / postfix
Plesk version: 12.0.18 Update #18

What's the problem? How to resolve it?
Is there a way to modify / create Sieve filters without Horde?

Thanks for helping.
 
Last edited:
You could edit your custom domain PHP.ini, and define some paths:

Start > Abonnements > YOURDOMAIN.COM > Websites & Domains > PHP-Settings

Suggested modifications:
PHP:
include_path = ".:/usr/share/php:/usr/share/php5:/usr/share/perl:/usr/share/perl5:/usr/share/pear:/usr/share/psa-pear:/usr/share/psa-horde:/usr/bin/python"
open_basedir = "/var/www/vhosts/<(SUBDOMAIN.)DOMAIN>/:/tmp/:/usr/share/php:/usr/share/php5:/usr/share/perl:/usr/share/perl5:/usr/share/pear:/usr/share/psa-pear:/usr/share/psa-horde:/usr/bin/python"
<(SUBDOMAIN.)DOMAIN> = please edit with your specific domain or subdomain and without the brackets.
 
This did not change anything.

In the _connect method of `/usr/share/psa-horde/ingo/lib/Transport/Timsieved.php` I added some debugging:
Code:
$res = $this->_sieve->getError();
print_r($res);
This gives me the full backtrace log when the error occurs, maybe this helps a bit more:

Code:
PEAR_Error Object
(
    [error_message_prefix] =>
    [mode] => 1
    [level] => 1024
    [code => 111
    [message] => Verbindungsaufbau abgelehnt
    [userinfo] =>
    [backtrace] => Array
    (
        [0] => Array
            (
                [file] => /usr/share/psa-pear/pear/php/PEAR.php
                [line] => 533
                [function] => PEAR_Error
                [class] => PEAR_Error
                [type] => ->
                [args] => Array
                    (
                        [0] => Verbindungsaufbau abgelehnt
                        [1] => 111
                        [2] => 1
                        [3] => 1024
                        [4] =>
                    )

            )

        [1] => Array
            (
                [file] => /usr/share/psa-pear/pear/php/Net/Socket.php
                [line] => 173
                [function] => raiseError
                [class] => PEAR
                [object] => Net_Socket Object
                    (
                        [fp] =>
                        [blocking] => 1
                        [persistent] =>
                        [addr] => localhost
                        [port] => 4190
                        [timeout] =>
                        [lineLength] => 2048
                        [newline] =>

                        [_debug] =>
                        [_default_error_mode] =>
                        [_default_error_options] =>
                        [_default_error_handler] =>
                        [_error_class] => PEAR_Error
                        [_expected_errors] => Array
                            (
                            )

                    )

                [type] => ->
                [args] => Array
                    (
                        [0] => Verbindungsaufbau abgelehnt
                        [1] => 111
                    )

            )

        [2] => Array
            (
                [file] => /usr/share/psa-pear/pear/php/Net/Sieve.php
                [line] => 310
                [function] => connect
                [class] => Net_Socket
                [object] => Net_Socket Object
                    (
                        [fp] =>
                        [blocking] => 1
                        [persistent] =>
                        [addr] => localhost
                        [port] => 4190
                        [timeout] =>
                        [lineLength] => 2048
                        [newline] =>

                        [_debug] =>
                        [_default_error_mode] =>
                        [_default_error_options] =>
                        [_default_error_handler] =>
                        [_error_class] => PEAR_Error
                        [_expected_errors] => Array
                            (
                            )

                    )

                [type] => ->
                [args] => Array
                    (
                        [0] => localhost
                        [1] => 4190
                        [2] =>
                        [3] => 5
                        [4] =>
                    )

            )

        [3] => Array
            (
                [file] => /usr/share/psa-pear/pear/php/Net/Sieve.php
                [line] => 275
                [function] => connect
                [class] => Net_Sieve
                [object] => Net_Sieve Object
                    (
                        [supportedAuthMethods] => Array
                            (
                                [2] => EXTERNAL
                                [3] => PLAIN
                                [4] => LOGIN
                            )

                        [supportedSASLAuthMethods] => Array
                            (
                                [0] => DIGEST-MD5
                                [1] => CRAM-MD5
                            )

                        [_sock] => Net_Socket Object
                            (
                                [fp] =>
                                [blocking] => 1
                                [persistent] =>
                                [addr] => localhost
                                [port] => 4190
                                [timeout] =>
                                [lineLength] => 2048
                                [newline] =>

                                [_debug] =>
                                [_default_error_mode] =>
                                [_default_error_options] =>
                                [_default_error_handler] =>
                                [_error_class] => PEAR_Error
                                [_expected_errors] => Array
                                    (
                                    )

                            )

                        [_data] => Array
                            (
                                [user] => [email protected]
                                [pass] => mypassword
                                [host] => localhost
                                [port] => 4190
                                [logintype] => PLAIN
                                [euser] => [email protected]
                            )
 
OK, I finally found the issue:
Recently I did some dovecot config modifications:
New file: /etc/dovecot/conf.d/99-custom.conf with the following contents:
..
protocols = imap
..

This only enables dovecot imap support. (And disables the default pop3 support)

Looks like I forgot to add `sieve`to the protocols list, as it is added by `90-plesk-sieve.conf`

If I edit my 99-custom.conf file to:
..
protocols = imap sieve
..
everything works again!! :D yay.
 
Status
Not open for further replies.
Back
Top