Steven Mainor
2016-Nov-23 08:03 UTC
Active sieve script symbolic link doesn't update when changed.
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 }
Steffen Kaiser
2016-Nov-23 08:28 UTC
Active sieve script symbolic link doesn't update when changed.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 23 Nov 2016, Steven Mainor wrote:> 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).^^^ no mail here> > vmail at 1:/var/mail/vmail/degga.net/steve/mail$ ls -l -a^^^ mail here> #redacted irrelevant stuff > lrwxrwxrwx 1 vmail vmail 14 Nov 23 02:43 .dovecot.sieve -> > myfilter.sieveI guess, you changed the symlink at the wrong place. - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEVAwUBWDVTJ3z1H7kL/d9rAQJumwgAro6oLt0nS3MXpWqxsM3pLX2o3xXlTbxv jqq4il/y7+m1xm2SiHOKeDvYFMyhhl7G4rLoB3KcVsixidGcsVQtsiI7HiouD0bf Ds4AFiLyYLPv09bBYOJJ/HGvwt11MCgiC9hS3wrWtMsNEu3LGFoq2+n0kHLIG2Ey TcqzSpW19ohxUK0pMxVnPn1MAABJRxWsfmhrzNkUSuIaSfDggrMylkIxYgXB0ahX UlL6JzJjegpH6s3MxJEnhwpovQF3gRwcz1beFCKiukn+0DW/O5Ho4rx8X2XcybFo vAhmptTCq5ag12Q+mj7mfT6NugWM/ICWHG0MI3gZZ7IzKzGg8/8cSg==nfU8 -----END PGP SIGNATURE-----
Steven Mainor
2016-Nov-23 09:27 UTC
Active sieve script symbolic link doesn't update when changed.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Wow, that was the problem. I can't believe I overlooked that so many times. Thank you so much. I was ready to pull my hair out. On November 23, 2016 3:28:23 AM EST, Steffen Kaiser <skdovecot at smail.inf.fh-brs.de> wrote:>-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >On Wed, 23 Nov 2016, Steven Mainor wrote: > >> 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). > ^^^ no mail here > >> >> vmail at 1:/var/mail/vmail/degga.net/steve/mail$ ls -l -a > ^^^ mail here >> #redacted irrelevant stuff >> lrwxrwxrwx 1 vmail vmail 14 Nov 23 02:43 .dovecot.sieve -> >> myfilter.sieve > >I guess, you changed the symlink at the wrong place. > >- -- >Steffen Kaiser >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1 > >iQEVAwUBWDVTJ3z1H7kL/d9rAQJumwgAro6oLt0nS3MXpWqxsM3pLX2o3xXlTbxv >jqq4il/y7+m1xm2SiHOKeDvYFMyhhl7G4rLoB3KcVsixidGcsVQtsiI7HiouD0bf >Ds4AFiLyYLPv09bBYOJJ/HGvwt11MCgiC9hS3wrWtMsNEu3LGFoq2+n0kHLIG2Ey >TcqzSpW19ohxUK0pMxVnPn1MAABJRxWsfmhrzNkUSuIaSfDggrMylkIxYgXB0ahX >UlL6JzJjegpH6s3MxJEnhwpovQF3gRwcz1beFCKiukn+0DW/O5Ho4rx8X2XcybFo >vAhmptTCq5ag12Q+mj7mfT6NugWM/ICWHG0MI3gZZ7IzKzGg8/8cSg=>=nfU8 >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