Initially it was into /usr/local/bin but I changed the location and owner to spamd:spamd thinking it was a user rights error. Now it’s back to root:root 0755. I can copy it back into /usr/local/sbin and have the same result.
I followed the documentation from spamassasin wiki to get this script. Is is something wrong with it ? Thank you ! On 11 Jan 2016, at 22:18, Reindl Harald <h.rei...@thelounge.net> wrote: > > > Am 11.01.2016 um 21:12 schrieb D CATALIN BADIRCA: >> Hi, >> >> I am using with Postfix 10.2-RELEASE-p7 with Postfix 3.0.3 and I am >> trying to configure Spamassassin into my system. >> >> After I create the spam filter.sh : >> >> #!/bin/bash >> *SENDMAIL*=/usr/local/sbin/sendmail >> *SPAMASSASSIN*=/usr/local/bin/spamc >> >> logger <<<"Spam filter piping to SpamAssassin, then to: $SENDMAIL $@" >> ${SPAMASSASSIN} | ${SENDMAIL}"$@" >> >> an 11 22:05:17 mx postfix/pipe[2112]: 80E5A1695FF9: >> to=<catalin.badi...@domain.com <mailto:catalin.badi...@domain.com>>, >> relay=spamfilter, delay=3908, delays=3907/0.04/0/0.47, dsn=4.3.0, >> status=deferred (temporary failure. Command output: pipe: fatal: >> pipe_command: execvp /home/spamd/spamfilter.sh: No such file or directory ) >> >> Has anyone seen this and can help me out with an idea ? > > * since when are such scripts placed in /home > * why using shell-scripts at all for such tasks > > only over my dead body i would pass possible amlware through shellscripts > that way > > milter exists > spamass-milter exists > > http://linux.die.net/man/1/spamass-milter >