I currently have postfix piping into a PHP script to process the email via an alias.
catchall: |/var/www/vhosts/website/httpdocs/scripts/incoming_mail.php
However, I wish to use the DB config etc supplied in my CI project, so I need to provide a route such as:
catchall: |/var/www/vhosts/website/httpdocs/cli.php /incoming_mail
The desired outcome of this would be that I run the incoming_mail controller.
If I try the above the email is bounced with the following:
Action: failed
Status: 5.2.0
Diagnostic-Code: X-Postfix; cannot append message to file /incoming_mail:
cannot create file exclusively: Permission denied
Any help is greatly appreciated!