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
"/usr/local/bin/spamfilter
/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
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
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
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
ASKER