Hello.

I have ubuntu 12.04 running postfix 2.9.1-4.

I wrote a script to work with incoming emails to one of the address.
Updated /etc/alias with something like
email: "|/path/to/script 2> /path/to/log"

I'm getting permission denied errors while it tries to open log for write.
I disabled AppArmor, switched shell for postfix user to bash, even did
chmod -R 777 /path - now you understand how desperate am I. But looks like
postfix won't write anywhere except it's home directory.

What do I do to fix the issue?

Excerpt from log:
Command died with status 2:
    "/path/to/script 2>>/path/to/log". Command output:
    sh: 1: cannot create /path/to/log: Permission denied

Reply via email to