Re: [exim] exim and sieve filters

Top Page
Delete this message
Reply to this message
Author: Roel Schroeven
Date:  
To: exim-users
Subject: Re: [exim] exim and sieve filters
Mark de Vries schreef:
> Could be that you need to have dovecot deliver the message in order for
> it to apply its sieve filter. Probably meaning you have to use a pipe
> transport in exim in combination with a local delivery agent from
> dovecot to deliver the messages.
>


I solved my problem the easy/lazy way: I use the LDA from dovecot via a
pipe command in .forward: I put

| "/usr/lib/dovecot/deliver"


in .forward of the account I need it for (that's the location of deliver
on Debian; it's different on other systems).
I also created .dovecot.sieve containing

# CMUsieve (dovecot LDA)

require ["imapflags", "fileinto" ];

  # Dump messages that SpamAssassin considers spam to Junk folder
  if header :contains "x-spam-score" "++++" {
    fileinto "Junk";
  }


  else {
    # Add label "to do"
    addflag "$Label4";
    keep;
  }


in the home dir of that account. Works like a charm. I like it that
dovecot lets me use mail folder names as IMAP-clients see them, as
opposed to the real names in the filesystem as exim requires me to do
(AFAIK).



--
The saddest aspect of life right now is that science gathers knowledge
faster than society gathers wisdom.
-- Isaac Asimov

Roel Schroeven