On Fri, Jan 11, 2013 at 11:07:47AM -0500, Vitaly Tskhovrebov wrote: > 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
Was that "/etc/aliases"? Details do matter. Is /etc/aliases owned by root? > email: "|/path/to/script 2> /path/to/log" Perhaps a simpler solution would be to make a system user, "email", and give it a .forward file containing this: |/home/email/script 2> /home/email/log > I'm getting permission denied errors while it tries to open log for > write. I disabled AppArmor, switched shell for postfix user to Um... you are making a baseless (and wrong!) assumption here, that the "postfix" user is running this command. > 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? First understand who IS running the command: http://www.postfix.org/postconf.5.html#default_privs http://www.postfix.org/local.8.html http://www.postfix.org/aliases.5.html > 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 -- http://rob0.nodns4.us/ -- system administration and consulting Offlist GMX mail is seen only if "/dev/rob0" is in the Subject: