I am trying to create an email pipe so i can use osTicket on my server.
Ive tried putting it in
and restarted postfix and its not working. There is a firstname.lastname@example.org
email setup so I assume any mail thats sent to it is still ending up in the inbox rather than getting piped.
What is the correct way to do this?
I also did a bit of searching on here and had ago at doing it with aliases. Im not sure if this will work since the script needs to know which email address it was sent to. It uses things like
to attach things to ticket 33423 as far as i can gather.
web38_support: | php -q /var/www/web38/web/support/automail.php
to /etc/aliases and ran sudo newaliases
if i send an email to email@example.com
i now get it bounced back
<-firstname.lastname@example.org> (expanded from <email@example.com>): unknown user:
<firstname.lastname@example.org> (expanded from <email@example.com>):
cannot append message to file /var/www/web38/web/support/automail.php:
cannot open file: Permission denied
also if i chmod or chown the file to root and 777 etc i get
cannot append message to file /var/www/web38/web/support/automail.php: file
I have also tried
web38_support: "|php -q /var/www/web38/web/support/automail.php"
web38_support: root, "| php -q /var/www/web38/web/support/automail.php"
with either the same error or no error atall (still doesnt work)