magicdude4eva / port25-bouncehandler

Port25 PowerMTA bounce handler for Interspire and MailWizz
MIT License
73 stars 42 forks source link

Problem with pmta-config #1

Closed Colls closed 8 years ago

Colls commented 8 years ago

Hello. Manual bounce-processing works perfectly but I have an error Error activating configuration: Error running " /usr/bin/php /opt/pmta/bouncehandler/bouncehandler.php": not executable while trying to add this to my pmta-config <acct-file | /usr/bin/php /opt/pmta/bouncehandler/bouncehandler.php> records b record-fields b timeQueued,bounceCat,vmta,orig,rcpt,srcMta,dlvSourceIp,jobId,dsnStatus,dsnMta,dsnDiag </acct-file> Can you help with that? (permissions of bouncehandler-folder 755 root root, also tried 755 pmta pmta)

magicdude4eva commented 8 years ago

Hi there,

ensure that the folder with the scripts have the correct ownership and execute permissions:

chown -R pmta:pmta /opt/pmta/bouncehandler/
chmod a+x /opt/pmta/bouncehandler/bouncehandler.php

Since Port25 runs as user "pmta" the bouncehandler folder needs to have the same ownership. I hope that helps.

Colls commented 8 years ago

The problem wasn't in permissions. It was in unnessessary space in pmta-config after "|" <acct-file | /usr/bin/php /opt/pmta/bouncehandler/bouncehandler.php> - leads to error described above <acct-file |/usr/bin/php /opt/pmta/bouncehandler/bouncehandler.php> - right choice :)

magicdude4eva commented 8 years ago

Tks - I fixed the typo in the README