Good morning everyone.

Well, im having a heck of a time trying to get spamd to work with my postifx mail relay box.
I have installed SA correctly and started up spamd with the flags that I need.


However, im having a hard time trying to configure postfix to work correctly with spamd.

I read that you need to add a line to both the main.cf as well as add a entry to master.cf as well.

For instance, I added the following to main.cf:

content_filter=spamfilter:

and in master.cf I added:

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

127.0.0.1:10027 inet n - n - 100 smtpd

    -o content_filter=
    -o myhostname=blowfish.courtesymortgage.com
    -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=

I also was using a script I found on a web page that contained the following:

INSPECT_DIR=/var/spam
SENDMAIL=/usr/sbin/sendmail
SPAMASSASSIN=/usr/bin/spamc
EX_TEMPFAIL=75
EX_UNAVAILABLE=69
cd $INSPECT_DIR || { echo $INSPECT_DIR does not exist; exit $EX_TEMPFAIL; }
trap "rm -f in.$$; rm -f out.$$" 0 1 2 3 15
cat | $SPAMASSASSIN -f > out.$$ #|| # { echo Message content rejected; exit $EX_UNAVAILABLE; }
$SENDMAIL "$@" < out.$$
exit $?


But this script causes a mail loop.

Anyone have any suggestions or can help me out to correct my problem?

I do appreciate it.

Cheers,

Jason



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to