Hi!

Here's my problem.
I have successfully configured SpamAssassin+Postfix as a spam filter.
I have 10 domains that are filtered throught this server. Every spam
message that is detected by the system is tagged by adding **** SPAM
DETECTED **** on subject.

Now I have to add another domain to my filtered_domains list. But for
this domain I want all the tagged spam message to be delivered to a
single account.

In my main.cf file I have these directives

content_filter=filter
smtpd_recipient_restrictions =
         check_recipient_access hash:/etc/postfix/filtered_domains
         permit_mynetworks
         reject_unauth_destination



and on my master.cf file:

filter  unix    -       n       n       -       -       pipe
       flags=Rq        user=filter    
argv=/usr/local/anomy/spamfilter.sh ${sender} ${recipient}


127.0.0.1:10027 inet n - n - 100 smtpd -o content_filter= -o
myhostname=gundam -o mynetworks=127.0.0.0/8 -o
smtpd_client_restrictions= -o smtpd_helo_restrictions= -o
smtpd_sender_restrictions= -o
smtpd_recipient_restrictions=permit_mynetworks,reject -o
header_checks= -o body_checks=


The first one (filter) is the script that permit the filter process
through spamassassin, and the second one (127.0.0.1:10027) is
necessarly to prevent the message looping (just because there are no
user defined on this system, i just filter all message for the
filtered_domains list then forward them to the respective mail server,
using the transport file).


Adding the following option to the /etc/postfix/main.cf file:

       header_checks = regexp:/etc/postfix/regexp_header

and creating the /etc/postfix/regexp_header file adding this line to
it:

       /^X-Spam-Flag: YES/     REDIRECT [EMAIL PROTECTED]


does not fit my request. Doing this all the tagged message (for all
the filtered_domains) will be redirected to the selected account and
that's not what I need.

Thanks for help


Davide De Boni

Email: [EMAIL PROTECTED]

e.Dexter S.P.A.
C.so Risorgimento 5
28823 Ghiffa (VB)
ITALIA
Tel +39.0323.407733
Fax +39.0323.53558

Reply via email to