Re: [exim] moving spam to a different folder

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Marcin Krol
日付:  
To: alexis
CC: exim-users
題目: Re: [exim] moving spam to a different folder
alexis napisał(a):
> So what i want to to is to move out the marked spam to a different
> folder reachable by imap and leave the inbox that read's the pop3
> clients with the non marked email.
>

You could use user filters and a redirect filter:

domain_filter:
driver = redirect
allow_filter
no_check_local_user
condition = "${if exists{/etc/virtual/${domain}/filter}{yes}{no}}"
user = "mail"
file = /etc/virtual/${domain}/filter
directory_transport = address_file
pipe_transport = virtual_address_pipe
retry_use_local_part
no_verify


Transport:

virtual_address_pipe:
driver = pipe
group = nobody
return_output
user = "${lookup{$domain}lsearch* {/etc/virtual/domainowners}{$value}}"


In user filter use smth like:


if  $h_X-Spam-Status: contains "Yes,"
then
    save /home/someuser/Maildir/.INBOX.spam/new/ 660
    finish
endif



This works fine on my hosts.



--
Dział Techniczny
Marcin Król

Domeny, Hosting, Kolokacja, Certyfikaty SSL, Monitoring serwerów ...
------------------------------------------------------------------
DOMENY.PL sp. z o.o. ul. Wielicka 50, 30-552 Kraków, Poland
tel. +48(12)296 3663, info: +48 501 DOMENY
fax. +48(12)296 3664, +48(22)3 987 365
e-mail: pomoc@???, www: http://www.Domeny.pl
------------------------------------------------------------------
Komunikator online/ Live Chat:
http://live2.domeny.pl/request_email.php?l=phplive&x=1&deptid=2