Dovecot pigeonhole help sought

Tom Talpey tom at talpey.com
Sun Jul 27 18:29:44 UTC 2014


On 7/27/2014 1:16 PM, Pascal Volk wrote:
> On 07/27/2014 05:08 PM, Timothy Murphy wrote:
>> I'm running postfix + dovecot + dovecot-pigeonhole
>> on my CentOS-7 home server.
>> I would like spam to finish up in ~/Maildir/.Spam/ .
>> Spam is being marked, but is not separated -
>> it ends up with all the other email in ~/Maildir/cur/ .
>> Evidently there is some step I have omitted to take.
>>
>> I give the output of "sudo doveconf -n" below.
>> The file ~/.dovecot.sieve reads:
>> ------------------------------
>> # Sieve Filter
>>
>> require ["fileinto","regex","envelope","vacation"];
>>
>> if header :contains "X-Spam-Flag" "YES" {
>>          fileinto "/home/tim/Maildir/.Spam/";
>                      ^^^^^^^^^^^^^^^^^^^
>> }
>> ------------------------------
>
> Check the example in Dovecot wiki again:
> http://wiki2.dovecot.org/Pigeonhole/Sieve/Examples#Direct_filtering_using_message_header
>
> It uses: fileinto "Spam";

I believe you may need a "stop;" directive after the fileinto.
Later rules can move the message again, otherwise.

Other possibility is that .Spam/ doesn't exist. Enabling
autocreate can help if so, or just create it manually.

>
>>
>> When I run "sudo systemctl restart dovecot"
>> I see the line
>>    Jul 27 18:54:23 alfred dovecot: master: Dovecot v2.2.10 starting up
>>      for imap, pop3, lmtp, sieve (core dumps disabled)
>> in /var/log/maillog
>>
>
> You can enable 'mail_debug=yes" and Dovecot will log some interesting
> information, for example about your fileinto "/full/path/to/.maildir".
>
>
> Regards,
> Pascal
>



More information about the dovecot mailing list