Problem with sieve_before

Robert Moskowitz rgm at htt-consult.com
Tue Mar 21 15:47:18 EET 2017



On 03/21/2017 09:30 AM, Ger Hooton Scoil Chroí Íosa Blarney wrote:
>
> Hi Yassine,
> That did not work, is there a way to see is the script is been run?

Perhaps it is an SELinux permissions problem?  Try setenforce 0 to see?

> ----------------original message-----------------
> From:chaouche yacine [yacinechaouche at yahoo.com ]
> To:Ger Hooton Scoil Chroí Íosa Blarney [ghooton at scins.ie ], 
> dovecot at dovecot.org Date:Tue, 21 Mar 2017 13:06:14 +0000 (UTC)
> -------------------------------------------------
>
>
>> Hi Ger,
>>
>> sieve_before should be a path to sieve script file, not to a directory.
>> in your configuration, you set sieve_before to 
>> /var/lib/dovecot/sieve/before which is a directory.
>>
>> what you need to do is figure out which sieve script you'd like to 
>> execute and its path rather.
>> If you think that default2.sieve is the right script then set 
>> sieve_before to /var/lib/dovecot/sieve/before/default2.sieve
>>
>> -- Yassine.
>>
>>
>>
>>
>> On Tuesday, March 21, 2017 12:56 PM, Ger Hooton Scoil Chroí Íosa 
>> Blarney wrote:
>>
>>
>>
>>
>>
>>> Hi All,
>>> [...]
>>
>>> plugin {
>>> [...]
>>>
>>>
>>> sieve_before = /var/lib/dovecot/sieve/before
>>> .................................
>>>
>>> In /var/lib/dovecot/sieve/before I have :
>>>
>>> drwxrwxrwx 3 mail mail 4096 Mar 20 23:47 ..
>>>
>>> -rw-rw-rw- 1 root root 195 Mar 21 09:57 default2.svbin
>>>
>>> -rwxrwxrwx 1 mail mail 157 Mar 21 11:12 default2.sieve
>>>
>>> default2.sieve is as follows:
>>>
>>> require ["fileinto"];
>>>
>>> if allof (header :matches "subject" "*JUNK*") {
>>>
>>> fileinto "INBOX.Junk";
>>>
>>> }
>>
>
> __________________________________________________
>
> Please consider the environment before printing this email.
> Ger Hooton
> Systems Administrator
> Scoil Chroí Íosa Blarney.
> Blarney.
> Co. Cork
>



More information about the dovecot mailing list