Kaleb Hosie: > 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 ) > > 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
The apache user needs search permission for all the directories in the /etc/postfix/Filter pathname. The apache user needs execute permissions for the file after #! on the first line of the script. The apache user needs search permission for all the directories in the file name after #! on the first line of the script. The apache user needs execute permission for the run-time linker whose pathname is specified in the file after #! on the first line of the script. The apache user needs search permission for all the directories in the pathname of the run-time linker whose pathname is specified in the file after #! on the first line of the script. And so on. Wietse