• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Unable to pipe email to php after upgrading to plesk 12

hessodreamy

New Pleskian
Since upgrading from plesk 11.0.9 to 12.0.18 the other day I have been unable to pipe email content to php.

I know it's not a supported Plesk feature, but when I want email for a particular mailbox to be passed to a php script, I edit the file:
/var/qmail/mailnames/{domain}/{mailbox}/.qmail
and add the line:
| php /some/php/file.php

(I also set the file as immutable to prevent plesk from overwriting it)

However, since upgrading to plesk 12 this no longer works. Furthermore, the mail doesn't get processed and just stays in the local queue, as if the whole file (including instructions on mail directory, and forwarding) is ignored.

I suspect it's a permissions issue, as I can pipe to a shell script just fine, but can't call the desired php command within that shell script.

Although not a supported feature, do any plesk users here have any suggestions to get this behaviour to work? I have functionality that depends on it.
 
Back
Top