[Dovecot] Question to sieve symlink
Hello!
A Server running openSUSE 12.3 and dovecot version 2.1.13. In the log I find
Oct 19 00:23:23 managesieve(anmeyer@anup.de): Warning: sieve-storage: Active sieve script symlink /var/spool/vhosts/anup.de/anmeyer/.dovecot.sieve is broken: invalid/unknown path to storage (points to /var/spool/vhosts/anup.de/anmeyer/.sieve/managesieve.sieve).
But the link is ok and when I login to roundcube I can manage the filters. What's the problem?
Greetings
Andreas
Andreas Meyer anmeyer@anup.de wrote:
A Server running openSUSE 12.3 and dovecot version 2.1.13. In the log I find
Oct 19 00:23:23 managesieve(anmeyer@anup.de): Warning: sieve-storage: Active sieve script symlink /var/spool/vhosts/anup.de/anmeyer/.dovecot.sieve is broken: invalid/unknown path to storage (points to /var/spool/vhosts/anup.de/anmeyer/.sieve/managesieve.sieve).
But the link is ok and when I login to roundcube I can manage the filters. What's the problem?
I found the corresponding part in sieve-storage-script.c
/* Check whether the path is any good */ if ( strcmp(scriptpath, storage->link_path) != 0 && strcmp(scriptpath, storage->dir) != 0 ) { i_warning ("sieve-storage: Active sieve script symlink %s is broken: " "invalid/unknown path to storage (points to %s).", storage->active_path, link); return NULL; }
but I am not a programmer to say what's wrong there.
Andreas
On 10/19/2013 1:55 AM, Andreas Meyer wrote:
Hello!
A Server running openSUSE 12.3 and dovecot version 2.1.13. In the log I find
Oct 19 00:23:23 managesieve(anmeyer@anup.de): Warning: sieve-storage: Active sieve script symlink /var/spool/vhosts/anup.de/anmeyer/.dovecot.sieve is broken: invalid/unknown path to storage (points to /var/spool/vhosts/anup.de/anmeyer/.sieve/managesieve.sieve).
But the link is ok and when I login to roundcube I can manage the filters. What's the problem?
What is your configuration (output from dovecot -n) ?
Regards,
Stephan
Hello!
Stephan Bosch stephan@rename-it.nl wrote:
On 10/19/2013 1:55 AM, Andreas Meyer wrote:
Hello!
A Server running openSUSE 12.3 and dovecot version 2.1.13. In the log I find
Oct 19 00:23:23 managesieve(anmeyer@anup.de): Warning: sieve-storage: Active sieve script symlink /var/spool/vhosts/anup.de/anmeyer/.dovecot.sieve is broken: invalid/unknown path to storage (points to /var/spool/vhosts/anup.de/anmeyer/.sieve/managesieve.sieve).
But the link is ok and when I login to roundcube I can manage the filters. What's the problem?
What is your configuration (output from dovecot -n) ?
I will not send this sensitive output to a public mailinglist. Do you need a special part of the output?
Andreas
On 2013-10-20 11:39 AM, Andreas Meyer anmeyer@anup.de wrote:
Stephan Bosch stephan@rename-it.nl wrote:
What is your configuration (output from dovecot -n) ?
I will not send this sensitive output to a public mailinglist. Do you need a special part of the output?
Don't be stupid. There is little to nothing in that output that would put your system at risk - and if there was, a few seconds to obfuscate it is all it would take.
Otherwise, there is nothing anyone here can dot to help you.
--
Best regards,
*/Charles/*
Charles Marcus CMarcus@Media-Brokers.com wrote:
On 2013-10-20 11:39 AM, Andreas Meyer anmeyer@anup.de wrote:
Stephan Bosch stephan@rename-it.nl wrote:
What is your configuration (output from dovecot -n) ?
I will not send this sensitive output to a public mailinglist. Do you need a special part of the output?
Don't be stupid. There is little to nothing in that output that would put your system at risk - and if there was, a few seconds to obfuscate it is all it would take.
Otherwise, there is nothing anyone here can dot to help you.
ok, here it is:
# 2.1.17: /etc/dovecot/dovecot.conf # OS: Linux 3.7.10-1.16-pae i686 openSUSE 12.3 (i586) auth_mechanisms = plain cram-md5 auth_verbose = yes debug_log_path = /var/log/dovecot-debug.log disable_plaintext_auth = no hostname = delta.bitcorner.eu log_path = /var/log/dovecot1 login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c %k mail_home = /var/spool/vhosts/%d/%n mail_location = maildir:~/ mail_plugins = quota managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave vacation-seconds namespace inbox { inbox = yes location = prefix = } passdb { args = /etc/dovecot/passwd driver = passwd-file } passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } plugin { autocreate = Trash autocreate2 = Drafts autocreate3 = Sent autosubscribe = Trash autosubscribe2 = Drafts autosubscribe3 = Sent quota = maildir:User quota quota_grace = 10%% quota_rule = *:storage=500MB quota_rule2 = Trash:storage=+10%% quota_status_nouser = DUNNO quota_status_overquota = 552 5.2.2 Mailbox is full / Mailbox ist voll quota_status_success = DUNNO sieve = ~/.dovecot.sieve sieve_dir = ~/.sieve sieve_extensions = +vacation-seconds sieve_vacation_default_period = 10d sieve_vacation_max_period = 30d sieve_vacation_min_period = 1h } postmaster_address = postmaster@bitcorner.de protocols = imap pop3 lmtp sieve quota_full_tempfail = yes service auth { unix_listener auth-userdb { group = vmail mode = 0666 user = vmail } } service managesieve-login { inet_listener sieve { port = 4190 } } service quota-warning { executable = script /usr/local/bin/quota-warning.sh unix_listener quota-warning { mode = 0666 user = vmail } user = vmail } ssl_cert =
I did not have this problem with the symlink before with a selfcompiled dovecot version 2.1.17 and a selfcompiled version of dovecot-2.1-pigeonhole-0.3.1
Now, I used the rpm-packages of the distribution (version 2.1.13), upgraded yesterday with rpm's to version 2.1.17 but the problem persists.
Andreas
On 10/20/2013 6:05 PM, Andreas Meyer wrote:
I did not have this problem with the symlink before with a selfcompiled dovecot version 2.1.17 and a selfcompiled version of dovecot-2.1-pigeonhole-0.3.1
Now, I used the rpm-packages of the distribution (version 2.1.13), upgraded yesterday with rpm's to version 2.1.17 but the problem persists.
Could you enable mail_debug and show us what the logs say?
Regards,
Stephan
Stephan Bosch stephan@rename-it.nl wrote:
On 10/20/2013 6:05 PM, Andreas Meyer wrote:
I did not have this problem with the symlink before with a selfcompiled dovecot version 2.1.17 and a selfcompiled version of dovecot-2.1-pigeonhole-0.3.1
Now, I used the rpm-packages of the distribution (version 2.1.13), upgraded yesterday with rpm's to version 2.1.17 but the problem persists.
Could you enable mail_debug and show us what the logs say?
I specified
mail_debug = yes debug_log_path = /var/log/dovecot-debug.log
in dovecot.conf and restarted dovecot, but nothing is written to the log.
# doveadm log find Debug: /var/log/dovecot-debug.log Info: /var/log/dovecot1 Warning: /var/log/dovecot1 Error: /var/log/dovecot1 Fatal: /var/log/dovecot1
Regards,
Stephan
Andreas
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Am 20.10.2013 20:01, schrieb Andreas Meyer:
Stephan Bosch stephan@rename-it.nl wrote:
On 10/20/2013 6:05 PM, Andreas Meyer wrote:
I did not have this problem with the symlink before with a selfcompiled dovecot version 2.1.17 and a selfcompiled version of dovecot-2.1-pigeonhole-0.3.1
Now, I used the rpm-packages of the distribution (version 2.1.13), upgraded yesterday with rpm's to version 2.1.17 but the problem persists.
Could you enable mail_debug and show us what the logs say?
I specified
mail_debug = yes debug_log_path = /var/log/dovecot-debug.log
in dovecot.conf and restarted dovecot, but nothing is written to the log.
# doveadm log find Debug: /var/log/dovecot-debug.log Info: /var/log/dovecot1 Warning: /var/log/dovecot1 Error: /var/log/dovecot1 Fatal: /var/log/dovecot1
Regards,
Stephan
Andreas
does it exist ,is it writable ?
Best Regards MfG Robert Schetterer
[*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJSZBtOAAoJEP8jBObu0LlEhDkH/2OnCkfIKQWlun97jeJk6ujR BefuHWVr4AKyoLlCbhy5iZ4rLMIMtWGrqTMHqI6hgieAwmVrv2k7VOhziiBU25q5 c5M1ymR3tnYUIG6D4ublGLbOyPh4F063ZdVbOgb9tVjI8Kd7JMU434liBzIMmdrF CixXQU1YiCuCz+tSjXOYIOjlcEarh0OGSFUBq1luUYL2b0NivcMQE0xAHX7jQP09 OyXpVdDvG7dfInn3o6/4GOE+1Ar8l239RW67STrAM8mOJ47bzxIBBn7YmSIbwE6Z Sv1JqzwhrFElPqgJMcDI9j5aAPdxREaNEv0JV/F7DX54lT10u5Dc7s6NhXrigg8= =RXO3 -----END PGP SIGNATURE-----
Robert Schetterer rs@sys4.de wrote:
Am 20.10.2013 20:01, schrieb Andreas Meyer:
Stephan Bosch stephan@rename-it.nl wrote:
Now, I used the rpm-packages of the distribution (version 2.1.13), upgraded yesterday with rpm's to version 2.1.17 but the problem persists.
Could you enable mail_debug and show us what the logs say?
I specified
mail_debug = yes debug_log_path = /var/log/dovecot-debug.log
in dovecot.conf and restarted dovecot, but nothing is written to the log.
# doveadm log find Debug: /var/log/dovecot-debug.log Info: /var/log/dovecot1 Warning: /var/log/dovecot1 Error: /var/log/dovecot1 Fatal: /var/log/dovecot1
does it exist ,is it writable ?
I set mail_debug = yes debug_log_path = /var/log/dovecot-debug.log
in the dovecot.conf but in the 10-logging.conf there was mail_debug = no set. I thought the dovecot.conf would overtop the 10-logging.conf
Best Regards MfG Robert Schetterer
Andreas
Stephan Bosch stephan@rename-it.nl wrote:
On 10/20/2013 6:05 PM, Andreas Meyer wrote:
I did not have this problem with the symlink before with a selfcompiled dovecot version 2.1.17 and a selfcompiled version of dovecot-2.1-pigeonhole-0.3.1
Now, I used the rpm-packages of the distribution (version 2.1.13), upgraded yesterday with rpm's to version 2.1.17 but the problem persists.
Could you enable mail_debug and show us what the logs say?
In the debug.log I have this
Oct 20 20:10:39 managesieve: Debug: Loading modules from directory: /usr/lib/dovecot/modules
Oct 20 20:10:39 managesieve: Debug: Module loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so
Oct 20 20:10:39 managesieve: Debug: Added userdb setting: mail=maildir:~/
Oct 20 20:10:39 managesieve: Debug: Added userdb setting: plugin/quota_rule=*:bytes=1G
Oct 20 20:10:39 managesieve(anmeyer@anup.de): Debug: Effective uid=5000, gid=5000, home=/var/spool/vhosts/anup.de/anmeyer
Oct 20 20:10:39 managesieve(anmeyer@anup.de): Debug: Quota root: name=User quota backend=maildir args=
Oct 20 20:10:39 managesieve(anmeyer@anup.de): Debug: Quota rule: root=User quota mailbox=* bytes=1073741824 messages=0
Oct 20 20:10:39 managesieve(anmeyer@anup.de): Debug: Quota rule: root=User quota mailbox=Trash bytes=+107374182 (10%) messages=0
Oct 20 20:10:39 managesieve(anmeyer@anup.de): Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/
Oct 20 20:10:39 managesieve(anmeyer@anup.de): Debug: maildir++: root=/var/spool/vhosts/anup.de/anmeyer, index=, control=, inbox=/var/spool/vhosts/anup.de/anmeyer, alt=
Oct 20 20:10:39 managesieve(anmeyer@anup.de): Debug: sieve: include: sieve_global_dir is not set; it is currently not possible to include :global' scripts. Oct 20 20:10:39 managesieve(anmeyer@anup.de): Debug: sieve-storage: using active sieve script path: /var/spool/vhosts/anup.de/anmeyer/.dovecot.sieve Oct 20 20:10:39 managesieve(anmeyer@anup.de): Debug: sieve-storage: using sieve script storage directory: /var/spool/vhosts/anup.de/anmeyer/.sieve Oct 20 20:10:39 managesieve(anmeyer@anup.de): Debug: sieve-storage: using permissions from /var/spool/vhosts/anup.de/anmeyer/.sieve: mode=0700 gid=-1 Oct 20 20:10:39 managesieve(anmeyer@anup.de): Debug: sieve-storage: relative path to sieve storage in active link: .sieve/ Oct 20 20:10:51 managesieve: Debug: Loading modules from directory: /usr/lib/dovecot/modules Oct 20 20:10:51 managesieve: Debug: Module loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so Oct 20 20:10:51 managesieve: Debug: Added userdb setting: mail=maildir:~/ Oct 20 20:10:51 managesieve: Debug: Added userdb setting: plugin/quota_rule=*:bytes=1G Oct 20 20:10:51 managesieve(anmeyer@anup.de): Debug: Effective uid=5000, gid=5000, home=/var/spool/vhosts/anup.de/anmeyer Oct 20 20:10:51 managesieve(anmeyer@anup.de): Debug: Quota root: name=User quota backend=maildir args= Oct 20 20:10:51 managesieve(anmeyer@anup.de): Debug: Quota rule: root=User quota mailbox=* bytes=1073741824 messages=0 Oct 20 20:10:51 managesieve(anmeyer@anup.de): Debug: Quota rule: root=User quota mailbox=Trash bytes=+107374182 (10%) messages=0 Oct 20 20:10:51 managesieve(anmeyer@anup.de): Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/ Oct 20 20:10:51 managesieve(anmeyer@anup.de): Debug: maildir++: root=/var/spool/vhosts/anup.de/anmeyer, index=, control=, inbox=/var/spool/vhosts/anup.de/anmeyer, alt= Oct 20 20:10:51 managesieve(anmeyer@anup.de): Debug: sieve: include: sieve_global_dir is not set; it is currently not possible to include
:global' scripts.
Oct 20 20:10:51 managesieve(anmeyer@anup.de): Debug: sieve-storage: using active sieve script path: /var/spool/vhosts/anup.de/anmeyer/.dovecot.sieve
Oct 20 20:10:51 managesieve(anmeyer@anup.de): Debug: sieve-storage: using sieve script storage directory: /var/spool/vhosts/anup.de/anmeyer/.sieve
Oct 20 20:10:51 managesieve(anmeyer@anup.de): Debug: sieve-storage: using permissions from /var/spool/vhosts/anup.de/anmeyer/.sieve: mode=0700 gid=-1
Oct 20 20:10:51 managesieve(anmeyer@anup.de): Debug: sieve-storage: relative path to sieve storage in active link: .sieve/
Oct 20 20:10:51 imap: Debug: Loading modules from directory: /usr/lib/dovecot/modules
Oct 20 20:10:51 imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so
Oct 20 20:10:51 imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so
Oct 20 20:10:51 imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib20_autocreate_plugin.so
Oct 20 20:10:51 imap: Debug: Added userdb setting: mail=maildir:~/
Oct 20 20:10:51 imap: Debug: Added userdb setting: plugin/quota_rule=*:bytes=1G
Oct 20 20:10:51 imap(anmeyer@anup.de): Debug: Effective uid=5000, gid=5000, home=/var/spool/vhosts/anup.de/anmeyer
Oct 20 20:10:51 imap(anmeyer@anup.de): Debug: Quota root: name=User quota backend=maildir args=
Oct 20 20:10:51 imap(anmeyer@anup.de): Debug: Quota rule: root=User quota mailbox=* bytes=1073741824 messages=0
Oct 20 20:10:51 imap(anmeyer@anup.de): Debug: Quota rule: root=User quota mailbox=Trash bytes=+107374182 (10%) messages=0
Oct 20 20:10:51 imap(anmeyer@anup.de): Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:~/
Oct 20 20:10:51 imap(anmeyer@anup.de): Debug: maildir++: root=/var/spool/vhosts/anup.de/anmeyer, index=, control=, inbox=/var/spool/vhosts/anup.de/anmeyer, alt=
In the regular log this:
Oct 20 20:10:39 managesieve-login: Info: Login: user=anmeyer@anup.de, method=CRAM-MD5, rip=127.0.0.1, lip=127.0.0.1, mpid=1898, secured Oct 20 20:10:39 managesieve(anmeyer@anup.de): Warning: sieve-storage: Active sieve script symlink /var/spool/vhosts/anup.de/anmeyer/.dovecot.sieve is broken: invalid/unknown path to storage (points to /var/spool/vhosts/anup.de/anmeyer/.sieve/banane.sieve). Oct 20 20:10:39 managesieve(anmeyer@anup.de): Warning: sieve-storage: Active sieve script symlink /var/spool/vhosts/anup.de/anmeyer/.dovecot.sieve is broken: invalid/unknown path to storage (points to /var/spool/vhosts/anup.de/anmeyer/.sieve/banane.sieve). Oct 20 20:10:39 managesieve(anmeyer@anup.de): Info: Disconnected: Logged out bytes=52/1565
Regards,
Stephan
Andreas
On 10/20/2013 8:15 PM, Andreas Meyer wrote:
Stephan Bosch stephan@rename-it.nl wrote:
Could you enable mail_debug and show us what the logs say? In the debug.log I have this
Oct 20 20:10:51 managesieve(anmeyer@anup.de): Debug: sieve-storage: using active sieve script path: /var/spool/vhosts/anup.de/anmeyer/.dovecot.sieve Oct 20 20:10:51 managesieve(anmeyer@anup.de): Debug: sieve-storage: using sieve script storage directory: /var/spool/vhosts/anup.de/anmeyer/.sieve Oct 20 20:10:51 managesieve(anmeyer@anup.de): Debug: sieve-storage: using permissions from /var/spool/vhosts/anup.de/anmeyer/.sieve: mode=0700 gid=-1 Oct 20 20:10:51 managesieve(anmeyer@anup.de): Debug: sieve-storage: relative path to sieve storage in active link: .sieve/
In the regular log this:
Oct 20 20:10:39 managesieve-login: Info: Login: user=anmeyer@anup.de, method=CRAM-MD5, rip=127.0.0.1, lip=127.0.0.1, mpid=1898, secured Oct 20 20:10:39 managesieve(anmeyer@anup.de): Warning: sieve-storage: Active sieve script symlink /var/spool/vhosts/anup.de/anmeyer/.dovecot.sieve is broken: invalid/unknown path to storage (points to /var/spool/vhosts/anup.de/anmeyer/.sieve/banane.sieve). Oct 20 20:10:39 managesieve(anmeyer@anup.de): Warning: sieve-storage: Active sieve script symlink /var/spool/vhosts/anup.de/anmeyer/.dovecot.sieve is broken: invalid/unknown path to storage (points to /var/spool/vhosts/anup.de/anmeyer/.sieve/banane.sieve). Oct 20 20:10:39 managesieve(anmeyer@anup.de): Info: Disconnected: Logged out bytes=52/1565
This looks like a bug to me. Could you try to set:
sieve_dir = ~/.sieve/
(notice the slash at the end)
Does it stop complaining now?
Regards,
Stephan.
Stephan Bosch stephan@rename-it.nl wrote:
Oct 20 20:10:39 managesieve-login: Info: Login: user=anmeyer@anup.de, method=CRAM-MD5, rip=127.0.0.1, lip=127.0.0.1, mpid=1898, secured Oct 20 20:10:39 managesieve(anmeyer@anup.de): Warning: sieve-storage: Active sieve script symlink /var/spool/vhosts/anup.de/anmeyer/.dovecot.sieve is broken: invalid/unknown path to storage (points to /var/spool/vhosts/anup.de/anmeyer/.sieve/banane.sieve). Oct 20 20:10:39 managesieve(anmeyer@anup.de): Warning: sieve-storage: Active sieve script symlink /var/spool/vhosts/anup.de/anmeyer/.dovecot.sieve is broken: invalid/unknown path to storage (points to /var/spool/vhosts/anup.de/anmeyer/.sieve/banane.sieve). Oct 20 20:10:39 managesieve(anmeyer@anup.de): Info: Disconnected: Logged out bytes=52/1565
This looks like a bug to me. Could you try to set:
sieve_dir = ~/.sieve/
(notice the slash at the end)
Does it stop complaining now?
well allright, that seems to solve the problem. No complains anymore so far about the broken symlink.
Regards,
Stephan.
Thank you so much!
Andreas
participants (4)
-
Andreas Meyer
-
Charles Marcus
-
Robert Schetterer
-
Stephan Bosch