On Tue, 21 Oct 2008, mathiasadsl wrote:

Hi all,

I'm currently running a postfix server and spamassassin under Fedora Core 8.
Everyhting is OK but i'd like to redirect tagged [SPAM] mails to a mailbox.

I did the following:

#Edit /etc/postfix/main.cf
header_checks = regexp:/etc/postfix/header_checks

#I Created /etc/postfix/header_checks and added this line:
/^X-Spam-Status:[.*](Yes|YES)/ REDIRECT [EMAIL PROTECTED]

Why not just use the X-Spam-Flag header field:

/^x-spam-flag:\s+yes/ REDIRECT [EMAIL PROTECTED]

By default, Postfix pcre/regexp are case insensitive.

Unfortunately, nothing happened, the target user still receive the mail and
spam is not forwarded to the "garbadge" mail box.

What's wrong with my conf?

postfix-2.4.5-2.fc8
spamassassin-3.2.3-2.fc8
--
View this message in context: 
http://www.nabble.com/Need-Help-For-Redirecting-SPAM-to-a-mailbox-tp20088706p20088706.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


Reply via email to