Hi all I'm having a spot of bother trying to get sieve to use the extraheaders extension on ISPconfig3.2.10p1 When I create custom rules in Mailbox->Custom Rules, it creates a sieve file in /var/vmail/<domain>/<user>/.ispconfig-before.sieve which has an automatically generated require line of: require ["body", "copy", "date", "envelope", "fileinto", "imap4flags", "mailbox", "regex", "reject", "relational", "subaddress", "vacation", "variables"]; I need this require line to include "editheader" but don't know how to make it do so. I have also manually edited /etc/dovecot/conf.d/90-sieve.conf to add the line sieve_extensions = +editheader but it doesn't seem to be having an effect as even if I manually change the opening line in /var/vmail/<domain>/<user>/.ispconfig-before.sieve to include "editheader", I get the following error message in the log: .ispconfig-before: line 5: require command: unknown Sieve capability `editheader' Has anyone mastered this that can help out please? Thanks in advance, James
Edit the sieve file template and add your module there. Code: cp /usr/local/ispconfig/server/conf/sieve_filter.master /usr/local/ispconfig/server/conf-custom/sieve_filter.master nano /usr/local/ispconfig/server/conf-custom/sieve_filter.master[code] This will be used for newly generated sieve files then when you add or edit rules in ISPConfig then. [QUOTE="James Webster, post: 447198, member: 171138"]I need this require line to include "editheader" but don't know how to make it do so. I have also manually edited /etc/dovecot/conf.d/90-sieve.conf to add the line sieve_extensions = +editheader[/QUOTE] This file is not used on ISPConfig systems. [QUOTE="James Webster, post: 447198, member: 171138"]but it doesn't seem to be having an effect as even if I manually change the opening line in /var/vmail/<domain>/<user>/.ispconfig-before.sieve to include "editheader", I get the following error message in the log: .ispconfig-before: line 5: require command: unknown Sieve capability `editheader'[/QUOTE] Do not manually edit any files in /var/vmail manually, they are auto generated and managed by ISPConfig.
Thanks till, that worked a treat! For anyone else trying to do this, I also edited /etc/dovecot/dovecot.conf to add the line sieve_global_extensions = +editheader to the plugins section for sieve and placed a copy of the file in /usr/local/ispconfig/server/conf-custom/install/dovecot_custom.conf.master to make sure it survives updates and everything now works perfectly.
No need to copy the whole file, it's better to just put the relevant settings in there. See https://forum.howtoforge.com/threads/new-handling-for-custom-postfix-and-dovecot-config.86559/