Am 11.01.2013 17:07, schrieb Vitaly Tskhovrebov: > 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
0777 is a bad idea many unix-daemons even refuse to start BECAUSE permissions are way to wide open - aynother possibility is that your postfix is running in chroot which is a mistake that at least debian does as default and maybe ubuntu too however: to help you someone needs output of "postconf -n" and content of "master.cf", i bet there is no "n" in the chroot column
signature.asc
Description: OpenPGP digital signature