Passing incoming mail through script
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:
When I try sending mail to <user> through Gmail, I get the following error in Gmail:
<user>: <user>, "|/usr/local/bin/mailing/<user>.sh"
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:
<<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
Thanks in advance,