Postfix pipe to script error while parsing using php
Postfix pipe to script error while parsing using php
Today while configuring PHP to read emails using postfix i faced some issues and this was the maillog data i can see.
We can find maillog inside /var/log/ on linux systems.
Dec 23 19:07:18 SERVER_NAME local[11910]: fatal: execvp /etc/smrsh/email_parser.php: No such file or directory Dec 23 19:07:18 SERVER_NAME local[11912]: fatal: execvp /etc/smrsh/email_parser.php: No such file or directory Dev 23 19:07:18 SERVER_NAME postfix/local[11909]: 638059C1: to=</email_parser><email_parser @SERVER_NAME.com>, relay=local, delay=468, delays=468/0.01/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: local: fatal: execvp /etc/smrsh/email_parser.php: No such file or directory )
Why these errors are thrown in the logs?
This usually happens when you install PHP on a different location other than /usr/bin/php. To fix this link the php installed location to the bin path.
For example, if you have installed php in /usr/local/apache/php. Then you should create a symbolic link on /usr/bin/php to point it to /usr/local/apache/php/bin/php
This should resolve the issue.
Incoming search terms:
- insidecir (1)