Re: [exim] global .forward file

Top Page
Delete this message
Reply to this message
Author: Jakob Hirsch
Date:  
To: Yan Seiner
CC: exim users
Subject: Re: [exim] global .forward file
Yan Seiner wrote:

> What I really need is a simple filter that does this:
>
> if $h_X-DSPAM-Result: is "Spam" then save mail/Junk
>
> for all virtual users. The only other complication is that the above is
> for mbox files; I want to use maildir, but I think the idea is the


That's a transport setting ("maildir_format"), not a router setting.

> same. I need to be able to put any suspected spam into the spambox, for
> all users, without a .forward file for each user.


Use the "data" option of the redirect router like the spec says:

data = #Exim filter\n\
        if $h_to: contains Exim then save $home/mail/exim endif