Re: [exim] global .forward file

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Jakob Hirsch
日付:  
To: Yan Seiner
CC: exim users
題目: 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