Hi there,

Not sure if this is the best place for this question but seeing how WD members have been so great with resolving my previous issues, I thought I'd try my luck.

I'm running Postfix on an Ubuntu server and everything is working fine, except for this.

In my /etc/aliases file, I have the following set:
Code:
<user>: <user>, "|/usr/local/bin/mailing/<user>.sh"
When I try sending mail to <user> through Gmail, I get the following error in Gmail:

Code:
<<user>@<mydomain>>: Command died with status 2:
    "/usr/local/bin/mailing/<user>.sh". Command output:
    /usr/local/bin/mailing/<user>.sh: 4: cannot create log: Permission denied
The mail still gets through to the user's inbox but I'm guessing there are some permission issues preventing execution of the script. The script simply contains:

Code:
!#/bin/bash
touch tmp
Thanks in advance,
Ash