Postfix and Spamassassin
I'm hoping someone can provide me with some insight into why Spamassassin isn't working for me with Postfix. I am running a Postfix mail server on RedHat 9 with no problems, and wanted to get Spamassassin set up as well. I found a couple of good tutorials online about how to set it up, and it seemed easy enough. Install and setup go ok, and I have added all the information to the master.cf file and created a basic filter script. However, when I reload Postfix, my CPU usage spikes up to 100%. I can still log in from other machines and check mail, but sending anything results in a "Mail Delivery System" error, saying that the service was unavailable. Which service, I don't know.
If I remove the additions to the master.cf file, everything works fine again. The lines I've added are as follows (identations don't show up, but they are there):
smtp inet n - n - - smtpd <-- this was already there
-o content_filter=filter: <-- this was added by me and is indented
filter unix - n n - - pipe
user=spamfilter argv=/usr/local/bin/spamfilter.sh -f ${sender} -- ${recipient}
The spamfilter.sh script is also set up with proper rights... I can post that as well. I have checked multiple sites for reference, and they all have basically the same thing, so I'm not sure what else I need to do. Does anyone have any suggestions on what I can do to get this working?
TIA
|