• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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