hi

use a filter as amavisd-new for example.
Spamassassin give a score and amavisd-new with this score reject or accept a message


in amavisd.conf  (file configuration) :

$sa_tag2_level_deflt = 5; (score)
$sa_kill_level_deflt = $sa_tag2_level_deflt;
$final_spam_destiny       = D_DISCARD;

if a message score is equal or  > 5   message is discard

regards

Yoda Woda a écrit :
Here my scenario: I have postfix and spamassassin installed in a gateway machine. Postfix accepts incoming messages, pipes them to spamassassin for scoring, which then pipes them back to postfix to be relayed to another machine. This work fine for us What I am trying to do now is to have spamassassin reject a message (say if the score is above 5) before it is re-injected back to postfix for relay. How can I accomplish this. Here is my master.cf: #smtp inet n - n - - smtpd
smtp inet n - n - - smtpd -o content_filter=spam
spam unix - n n - - pipe user=spamd argv=/usr/bin/spamc -f -e /usr/sbin/sendmail.postfix -oi -f ${sender} ${recipient}
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes -o smtpd_etrn_restrictions=reject
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
#tlsmgr fifo - - n 300 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
#local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


--
*LEVEAU Stanislas**
*Rectorat de Caen
SIAC
168, rue Caponière
B.P. 6184
14061 CAEN Cedex
        /

Service Informatique de l'académie de Caen
Département Systèmes & Réseaux/


Tel : 02.31.30.17.86



Reply via email to