Active sieve script symbolic link doesn't update when changed.

Steven Mainor steve at degga.net
Wed Nov 23 08:03:22 UTC 2016


While setting up sieve on my email server I mistakenly setup a symlink 
(~/sieve/myfilter.svbin > ~/.dovecot.sieve) but I think that that should 
have been (~/sieve/myfilter.sieve > ~/.dovecot.sieve). I have fixed the 
mistake but dovecot/sieve still throws an error saying that the symlink 
still links to the wrong file.

I have made sure the symlink is fixed (it links to 
~/sieve/myfilter.sieve) and I tried restarting dovecot and the server 
but nothing works. I still get the error and my sieve filters aren't 
processed.

Any help would be greatly appreciated.

~# grep sieve /var/log/syslog | nano temp.save

Nov 23 01:32:09 1 dovecot: lda(steve at degga.net): Warning: sieve: file 
storage: Active Sieve script symlink 
/var/mail/vmail/degga.net/steve/.dovecot.sieve is broken: Invalid 
scriptname (points to myfilter.svbin).

vmail at 1:/var/mail/vmail/degga.net/steve/mail$  ls -l -a
#redacted irrelevant stuff
lrwxrwxrwx  1 vmail vmail     14 Nov 23 02:43 .dovecot.sieve -> myfilter.sieve

vmail at 1:/var/mail/vmail$ dovecot -n
# 2.2.22 (fe789d2): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.13 (7b14904)
# OS: Linux 4.4.0-47-generic x86_64 Ubuntu 16.04.1 LTS ext4
auth_mechanisms = plain login
auth_verbose = yes
mail_home =/var/mail/vmail/%d/%n
mail_location = maildir:/var/mail/vmail/%d/%n/mail:LAYOUT=fs
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 index ihave duplicate mime foreverypart
extracttext
namespace inbox {
   inbox = yes
   location =
   mailbox Drafts {
     auto = subscribe
     special_use = \Drafts
   }
   mailbox Junk {
     auto = subscribe
     special_use = \Junk
   }
   mailbox Sent {
     auto = subscribe
     special_use = \Sent
   }
   mailbox "Sent Messages" {
     special_use = \Sent
   }
   mailbox Trash {
     auto = subscribe
     special_use = \Trash
   }
   prefix =
}
passdb {
   args = username_format=%u scheme=ssha512 /etc/dovecot/passwd.db
   driver = passwd-file
}
plugin {
   sieve = ~/.dovecot.sieve
   sieve_after = /var/mail/vmail/sieve-after
   sieve_before = /var/mail/vmail/sieve-before
   sieve_dir = ~/sieve
}
protocols = imap sieve
service auth {
   unix_listener /var/spool/postfix/private/dovecot-auth {
     group = postfix
     mode = 0660
     user = postfix
   }
}

# SSL information redacted here.

userdb {
   args = uid=vmail gid=vmail home=/var/mail/vmail/%d/%n
   driver = static
}
protocol lda {
   deliver_log_format = msgid=%m: %$
   mail_plugins = sieve
   postmaster_address =postmaster at degga.net
   quota_full_tempfail = yes
   rejection_reason = Your message to <%t> was automatically rejected:%n%
r
}
protocol imap {
   imap_client_workarounds = delay-newmail tb-extra-mailbox-sep
   mail_max_userip_connections = 10
}




More information about the dovecot mailing list