On 2011-09-10 01:02, Kaleb Hosie wrote:
I'm attempting to setup postfix to direct incoming email to a perl script which
will in effect scan the email with SpamAssassin and scan for viruses however
when I added the configuration to my master.cf file, I'm getting an error.
The mail log reads as so:
Sep 9 18:50:22 localhost postfix/pipe[2960]: 9F2349ABB01:
to=<em...@domain.com>, relay=postfixfilter, delay=7441,
delays=7441/0.08/0/0.65, dsn=4.3.0, status=deferred (temporary failure. Command
output: pipe: fatal: pipe_command: execvp /etc/postfix/Filter: Permission denied )
Did you verify this in principle ?
# su -lc /etc/postfix/Filter apache
I don't understand this error because the permission on the script file is fine:
-rwxr-xr-x 1 root root 14289 Sep 9 16:32 /etc/postfix/Filter
Oh, it is a script ?
So, is it valid ? Does it execute by itself ?
I've made the following changes to my master.cf file:
smtp inet n - n - - smtpd
-o content_filter=postfixfilter:
postfixfilter unix - n n - - pipe
flags=Rq user=apache argv=/etc/postfix/Filter -s ${sender} -r ${recipient}
Any help is greatly appreciated.
Kaleb
--
J.