Re: [exim] global .forward file

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Jakob Hirsch
Date:  
À: Yan Seiner
CC: exim users
Sujet: 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