Installation


Upgrades


DTC-Xen Installation


DTC-Xen / Dom0 Howtos

DTC-Xen / DomU Howtos

FAQ


DTC Howtos


Manuals


Features


Roadmap


Devel docs


Wiki - i18n


Wiki - Meta


User Mail Filter Rules Setup

DTC has Sieve support in the mail stack.

Sieve is a server side scripting language for email filter management. This means that your users can filter messages as they hit the mail server without having to set up email rules on their own client software.

Thunderbird has a plugin for editing the mail rules.

Your user should edit the 'custom' rule set.

Below is an example.

At present DTC doesn't ship with Sieve support for Roundcube installed.

See: https://github.com/JohnDoh/Roundcube-Plugin-SieveRules-Managesieve(approve sites)

https://www.rosehosting.com/blog/how-to-set-up-server-side-email-filtering-with-dovecot-sieve-and-roundcube-on-a-centos-6-vps/(approve sites)

https://rtcamp.com/tutorials/mail/server/sieve-filtering/(approve sites)

I'm currently working on getting it into the dev git for Wheezy.

Info on Sieve syntax can be found here:

http://wiki2.dovecot.org/Pigeonhole/Sieve/Examples(approve sites) https://en.wikipedia.org/wiki/Sieve_%28mail_filtering_language%29#Example(approve sites)

DTC Setup on Wheezy

Debugging:

   #Add this to /etc/dovecot/dovecot.conf to cause dovecot to write more detailed logging information to the logs.
   mail_debug=yes

Set up debugging in the conf file

   #This will follow errors in the system log.
   tail -f /var/log/sieve.log

   #This will follow info in the individual users mail box.
   tail -f /var/www/sites/bowenvale/bowenvale.co.nz/Mailboxs/dig/.dovecot.sieve.log

Note: There is a bug in versions prior to V0.38.7 R1 which means that custom.sieve doesn't work.

As at DTC version V0.38.6 R1 it appers that the Thunderbird plug in will edit the rules on the server but they don't run. Errors are being presented:

   Sep 08 08:36:54 lda(dig@bowenvale.co.nz): Error: sieve: failed to open script /var/www/sites/bowenvale/bowenvale.co.nz/Mailboxs/dig/.dovecot.sieve (view user logfile /var/www/sites/bowenvale/bowenvale.co.nz/Mailboxs/dig/.dovecot.sieve.log for more information)

   sieve: info: started log at Sep 08 01:28:15.
   main script: line 6: error: included personal script 'custom.sieve' does not exist.
   main script: error: validation failed.

DiG - 8 Sept 2015

Editing this page means accepting its license.

Page last modified on September 09, 2015, at 03:17 AM EST