[exim] Moving Spam to own folder

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Jan Suchanek
日付:  
To: exim-users
題目: [exim] Moving Spam to own folder
Hello,

I am using an exim SMTP server with SpamAssassin. SpamAssassin does it
work quite good so I want to move all message with a SPAM tag
(*****SPAM*****) to an special folder. I tied following:


router:

delspam:
condition = "${if match {$h_subject:}{^\*\*\*\*\*SPAM\*\*\*\*.*} {0}{1}}"
driver = accept
transport = rmspam
no_more


transport:

rmspam:
driver = appendfile
file = /var/log/exim/spam/${local_part}_spam


the condition in the router returns:

"failed to expand condition "${if match {$h_subject:}{^*****SPAM****.*}
{0}{1}}" for delspam router: regular expression error in
"^*****SPAM****.*": nothing to repeat at offset 1

What is wrong here?

The other question is: I am writing the SPAM Mails in a file but the
normal delivery works with lmtp. Is there a way to manipulate the
localpart so I can send the SPAM to an special Mail-Account?

Thank you!

Regards, Jan


--
Jan Suchanek