Trying to route email to a script.
/etc/aliases
cat /etc/postfix/aliases
#fax
sendfax: |/home/sendfax/fax/test-fax.cmd
cat /home/sendfax/fax/test-fax.cmd
#!/bin/sh
cat - > output
I've opened up all the permissions:
ls -l /home/sendfax
total 8
drwxrwxrwx 2 sendfax sendfax 4096 Apr 6 15:08 fax
drwx------ 5 sendfax sendfax 4096 Apr 5 20:25 Maildir
ls -l /home/sendfax/fax
total 4
-rwxrwxrwx 1 sendfax sendfax 25 Apr 6 15:08 test-fax.cmd
but I still get "permission denied":
postfix/qmgr[25027]: EE71EAE0DFB: from=<sendfax@localhost.hiddenbrook>,
size=573, nrcpt=1 (queue active)
local[25464]: fatal: execvp /home/sendfax/fax/test-fax.cmd: Permission
denied
postfix/local[25463]: EE71EAE0DFB: to=<sendfax@[10.10.11.180]>,
relay=local, delay=477, delays=477/0.03/0/0.04, dsn=4.3.0,
status=deferred (temporary failure. Command output: local: fatal: execvp
/home/sendfax/fax/test-fax.cmd: Permission denied )
Any help appreciated.
sean