Link to home
Create AccountLog in
Avatar of deanbrandt
deanbrandt

asked on

Help with configuration of SpamAssassin and Postfix

I am getting this error in maillog:

 "/usr/local/bin/spamfilter". Command output: /usr/local/bin/spamfilter:    line 2: /usr/bin/spamc: Permission denied /usr/local/bin/spamfilter: line    2: /usr/sbin/sendmail.postfix: Permission denied

/usr/local/bin/spamfilter looks like this:

#!/bin/bash
/usr/bin/spamc | /usr/sbin/sendmail -i "$@"
exit $?


This is on a Fedora system
ASKER CERTIFIED SOLUTION
Avatar of David Beveridge
David Beveridge
Flag of Australia image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of deanbrandt
deanbrandt

ASKER

Ok thanks, so all I need to do is place that code in master.cf and postfix reload?

The command in master.cf creates the transport.

Then you create entries in main.cf (eg content_filter) or an access list to route mail through it.

If not all, what mail do you want filtered by spamassassin?

Use content_filter command to filter all mail, but if you're going to do that, consider using amavisd.
http://dag.wieers.com/rpm/packages/amavisd-new/

eg
yum install amavisd-new