[Dovecot] warning from managesieve
when .dovecot.sieve is a symlink (which it is in my case) a warning is
written to the error log file, but it still works.
Dec 12 10:02:33 managesieve(tester@domain.com): Warning:
sieve-storage: Active sieve script symlink
/srv/vmail/sieve/domain.com/tester/.dovecot.sieve is broken:
invalid/unknown path to storage (points to ingo.sieve).
root@i920:/srv/vmail/sieve/domain.com/tester# ll insgesamt 20 drwx------ 3 mail mail 4096 Dez 12 10:03 ./ drwx------ 15 mail mail 4096 Dez 12 10:02 ../ lrwxrwxrwx 1 mail mail 10 Dez 12 10:02 .dovecot.sieve -> ingo.sieve -rw------- 1 mail mail 1575 Dez 12 10:03 .dovecot.svbin -rw------- 1 mail mail 2457 Dez 12 10:02 ingo.sieve drwx------ 2 mail mail 4096 Dez 12 10:02 tmp/
Am 12.12.2013 10:17, schrieb Michael Cramer:
when .dovecot.sieve is a symlink (which it is in my case) a warning is written to the error log file, but it still works.
Dec 12 10:02:33 managesieve(tester@domain.com): Warning: sieve-storage: Active sieve script symlink /srv/vmail/sieve/domain.com/tester/.dovecot.sieve is broken: invalid/unknown path to storage (points to ingo.sieve).
are you using horde/ingo if yes check that setup, or perhaps its left from a former horde install etc ?
root@i920:/srv/vmail/sieve/domain.com/tester# ll insgesamt 20 drwx------ 3 mail mail 4096 Dez 12 10:03 ./ drwx------ 15 mail mail 4096 Dez 12 10:02 ../ lrwxrwxrwx 1 mail mail 10 Dez 12 10:02 .dovecot.sieve -> ingo.sieve -rw------- 1 mail mail 1575 Dez 12 10:03 .dovecot.svbin -rw------- 1 mail mail 2457 Dez 12 10:02 ingo.sieve drwx------ 2 mail mail 4096 Dez 12 10:02 tmp/
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
On 12/12/2013 10:17 AM, Michael Cramer wrote:
when .dovecot.sieve is a symlink (which it is in my case) a warning is written to the error log file, but it still works.
Dec 12 10:02:33 managesieve(tester@domain.com): Warning: sieve-storage: Active sieve script symlink /srv/vmail/sieve/domain.com/tester/.dovecot.sieve is broken: invalid/unknown path to storage (points to ingo.sieve).
root@i920:/srv/vmail/sieve/domain.com/tester# ll insgesamt 20 drwx------ 3 mail mail 4096 Dez 12 10:03 ./ drwx------ 15 mail mail 4096 Dez 12 10:02 ../ lrwxrwxrwx 1 mail mail 10 Dez 12 10:02 .dovecot.sieve -> ingo.sieve -rw------- 1 mail mail 1575 Dez 12 10:03 .dovecot.svbin -rw------- 1 mail mail 2457 Dez 12 10:02 ingo.sieve drwx------ 2 mail mail 4096 Dez 12 10:02 tmp/
What is your configuration? Show output from dovecot -n
.
Regards,
Stephan.
# 2.2.9 (5c170e0786f3): /etc/dovecot/dovecot.conf
# OS: Linux 3.11.0-14-generic x86_64 Ubuntu 13.10 ext4
auth_master_user_separator = *
auth_mechanisms = plain login
debug_log_path = /var/log/dovecot/debug.log
dict {
acl = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext
expire = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext
quota = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext
}
first_valid_gid = 8
first_valid_uid = 8
info_log_path = /var/log/dovecot/info.log
last_valid_gid = 8
last_valid_uid = 8
log_path = /var/log/dovecot/error.log
mail_gid = 8
mail_location =
mdbox:/srv/vmail/mail/%d/%n:INDEX=/srv/vmail/indexes/shared/%d/%n
mail_plugins = quota zlib acl expire virtual fts fts_solr mail_log notify
mail_uid = 8
mailbox_list_index = yes
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 imapflags notify
mdbox_preallocate_space = yes
mdbox_rotate_size = 10 M
namespace {
list = children
location =
mdbox:/srv/vmail/mail/%%d/%%n:INDEX=/srv/vmail/indexes/shared/%%d/%%n:INDEXPVT=/srv/vmail/indexes/private/%d/%n/shared/%%u
prefix = Shared/%%u/
separator = /
subscriptions = no
type = shared
}
namespace inbox {
inbox = yes
location =
mailbox Archive {
auto = subscribe
special_use = \Archive
}
mailbox Drafts {
auto = subscribe
special_use = \Drafts
}
mailbox Sent {
auto = subscribe
special_use = \Sent
}
mailbox Spam {
auto = subscribe
special_use = \Junk
}
mailbox Trash {
auto = subscribe
special_use = \Trash
}
mailbox virtual/All {
auto = subscribe
special_use = \All
}
mailbox virtual/Flagged {
auto = subscribe
special_use = \Flagged
}
prefix =
separator = /
type = private
}
namespace virtual {
location =
virtual:/srv/vmail/virtual:INDEX=/srv/vmail/indexes/shared/%d/%n/virtual
prefix = virtual/
separator = /
}
passdb {
args = /etc/dovecot/dovecot-sql-master.conf.ext
driver = sql
master = yes
pass = yes
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
passdb {
args = /etc/dovecot/passwd.masterusers
driver = passwd-file
master = yes
pass = yes
}
plugin {
acl = vfile:/srv/vmail/acl:cache_secs=300
acl_anyone = allow
acl_shared_dict = proxy::acl
expire = Trash
expire1 = Trash/*
expire2 = Spam
expire_dict = proxy::expire
fts = solr
fts_autoindex = yes
fts_solr = break-imap-search url=http://localhost:28080/solr/dovecot/
quota = dict:User quota::proxy::quota
quota_warning = storage=95%% quota-warning 95 %u
quota_warning2 = storage=80%% quota-warning 80 %u
quota_warning3 = -storage=100%% quota-warning below %u
sieve = /srv/vmail/sieve/%d/%n/.dovecot.sieve
sieve_default = /srv/vmail/sieve/default.sieve
sieve_dir = /srv/vmail/sieve/%d/%n/
sieve_extensions = +notify +imapflags
sieve_global_dir = /srv/vmail/sieve/global
zlib_save = gz
zlib_save_level = 6
}
postmaster_address = postmaster@domain.com
protocols = " imap lmtp sieve"
service auth-worker {
user = $default_internal_user
}
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0666
user = postfix
}
unix_listener auth-userdb {
group = mail
mode = 0666
user = mail
}
}
service dict {
unix_listener dict {
group = mail
mode = 0660
user = mail
}
}
service managesieve-login {
inet_listener sieve {
port = 4190
}
}
service quota-warning {
executable = script /usr/local/bin/quota-warning.sh
unix_listener quota-warning {
user = mail
}
user = dovecot
}
ssl_cert = </srv/ssl/ssl-unified.crt
ssl_key = </srv/ssl/ssl-decrypted.key
userdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
protocol lda {
debug_log_path = /var/log/dovecot/deliver-debug.log
info_log_path = /var/log/dovecot/deliver-info.log
log_path = /var/log/dovecot/deliver-errors.log
mail_plugins = quota zlib acl expire virtual fts fts_solr mail_log
notify sieve
}
protocol imap {
mail_plugins = quota zlib acl expire virtual fts fts_solr mail_log
notify imap_quota imap_acl imap_zlib
}
same warning is shown when using telnet and upload a script
Zitat von Stephan Bosch <stephan@rename-it.nl>:
On 12/12/2013 10:17 AM, Michael Cramer wrote:
when .dovecot.sieve is a symlink (which it is in my case) a warning is written to the error log file, but it still works.
Dec 12 10:02:33 managesieve(tester@domain.com): Warning: sieve-storage: Active sieve script symlink /srv/vmail/sieve/domain.com/tester/.dovecot.sieve is broken: invalid/unknown path to storage (points to ingo.sieve).
root@i920:/srv/vmail/sieve/domain.com/tester# ll insgesamt 20 drwx------ 3 mail mail 4096 Dez 12 10:03 ./ drwx------ 15 mail mail 4096 Dez 12 10:02 ../ lrwxrwxrwx 1 mail mail 10 Dez 12 10:02 .dovecot.sieve -> ingo.sieve -rw------- 1 mail mail 1575 Dez 12 10:03 .dovecot.svbin -rw------- 1 mail mail 2457 Dez 12 10:02 ingo.sieve drwx------ 2 mail mail 4096 Dez 12 10:02 tmp/
What is your configuration? Show output from
dovecot -n
.Regards,
Stephan.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 12 Dec 2013, Michael Cramer wrote:
sieve = /srv/vmail/sieve/%d/%n/.dovecot.sieve sieve_dir = /srv/vmail/sieve/%d/%n/
add a subdir to sieve_dir
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUqmTjl3r2wJMiz2NAQIzEwf/TgBbqfj2L5RzYlGSy2eQpxLQYHHDwtm8 ozWoh9HBLYm3jJ9SKeubqDG82MBB8v0I2ToweMtvZh8GFcndTZf/Lvd4hapafKG0 SyLQ+vw7ZHbOzBNNnS/Sw1dF+KLw8rMNBIxbBkWiarMPTXsbzoK5CkKqJO/8U7Gr DjoGXbDQ9nwZByIjL7YRPB98ykzTVSKfMVSAQWaolPE8wMieq4enNk2Rt8+RkIO4 CjcQffspm5gnqCMzUN6ekwERRs/NankCOu95blfGjwjuUcYd0ZEdKYQ0tHGBS2X5 1CMcdRbaXJjEgLB7BGUoN4clCG2ftSgHQkKyrBUHf2Vgt9BEyzC1gQ== =eg2m -----END PGP SIGNATURE-----
after adding a dir the warning is gone, thx, i think i misread the wiki page
Zitat von Steffen Kaiser <skdovecot@smail.inf.fh-brs.de>:
On Thu, 12 Dec 2013, Michael Cramer wrote:
sieve = /srv/vmail/sieve/%d/%n/.dovecot.sieve sieve_dir = /srv/vmail/sieve/%d/%n/
add a subdir to sieve_dir
Steffen Kaiser
Michael Cramer schreef op 12-12-2013 12:30:
after adding a dir the warning is gone, thx, i think i misread the wiki page
The subdir solution is a good one; it is a bad idea to put the active symlink inside the script storage directory.
However, this is not the direct cause of the warning. There was a bug in Pigeonhole that makes it sensitive to a trailing slash in the sieve_dir setting.
Regards,
Stephan.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 12 Dec 2013, Michael Cramer wrote:
when .dovecot.sieve is a symlink (which it is in my case) a warning is written to the error log file, but it still works.
Dec 12 10:02:33 managesieve(tester@domain.com): Warning: sieve-storage: Active sieve script symlink /srv/vmail/sieve/domain.com/tester/.dovecot.sieve is broken: invalid/unknown path to storage (points to ingo.sieve).
root@i920:/srv/vmail/sieve/domain.com/tester# ll insgesamt 20 drwx------ 3 mail mail 4096 Dez 12 10:03 ./ drwx------ 15 mail mail 4096 Dez 12 10:02 ../ lrwxrwxrwx 1 mail mail 10 Dez 12 10:02 .dovecot.sieve -> ingo.sieve -rw------- 1 mail mail 1575 Dez 12 10:03 .dovecot.svbin -rw------- 1 mail mail 2457 Dez 12 10:02 ingo.sieve drwx------ 2 mail mail 4096 Dez 12 10:02 tmp/
managesieve wants to have a directory to store all script in, is this file created by managesieve itself or did you migrated?
Add a sieve_dir, e.g. sieve_dir ~/sieve.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUqmIfV3r2wJMiz2NAQLczgf/Q6N29g5ccdwKCiomYii41gs58rv5QeJd C8vEFb7s84IiYSMGPygvZyghvsv1n1kRLTZeKk4Y6M44zutCN7WtwRN6UA63tOMD g33Ah3QYMJbNqbY0EUYib0jlK1Pjx5jCP57JDIPjuhAgTPNsxsV6nWRepxiCPqX0 rwOgzgjm8766ZI3NS9mnsIGFXarCj9m2JeMvLS0muM2H66XUhNyb2w0HVa0spymO jYJ9TGcwyUqtOigAe8BpYMRmRBCyuqg1XLl6RjTDtT9cbpMK+LY8Qb6E8a/Pa1ge +PNkjF+nGuqff8I0HZm/LCWwzOYrU/hEUWZTAPlRX+ckehsEjClGOQ== =0Z0U -----END PGP SIGNATURE-----
participants (4)
-
Michael Cramer
-
Robert Schetterer
-
Steffen Kaiser
-
Stephan Bosch