• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Email piping Plesk 11

ElinusL

New Pleskian
I have Plesk 11.x for Linux.
We are trying to get email piping to work with Kayako Resolve 4.58.

Here is our setup:
Plesk 11, run PHP as FastCgi, MTA Postfix

main domain : ems-solutions.com.sg
sub-domain: support.ems-solutions.com.sg

I have chmod 755 from main folder all the way to the php script located at /var/www/vhosts/ems-solutions.com.sg/httpdocs/support/console/index.php
Followed every steps in Kayako Resolve, however the piping still not working.
Email does not get delivered or picked up by Kayako email parser script.
However, if I run the command as root, the email parser works fine.
postcat -q A5F751C15B0 | /var/www/vhosts/ems-solutions.com.sg/httpdocs/support/console/index.php

Please help, is there anything that we miss or not configured properly?

Here is the .qmail
cat /var/qmail/mailnames/ems-solutions.com.sg/billing/.qmail
|/usr/bin/php-cgi /var/www/vhosts/ems-solutions.com.sg/httpdocs/support/console/index.php

Log from /usr/local/psa/var/log/maillog

Feb 10 17:44:32 v11 postfix/pipe[29490]: A5F751C15B0: to=<billing@ems-solutions.com.sg>, relay=plesk_virtual, delay=0.38, delays=0.27/0/0/0.11, dsn=4.2.1, status=deferred (Message can not be delivered at this time )

Showing postfix queue as follows:
postqueue -p
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
A5F751C15B0 4492 Mon Feb 10 17:44:31 elinus@ems-solutions.com.sg
(Message can not be delivered at this time)
billing@ems-solutions.com.sg

-- 5 Kbytes in 1 Request.
 
1) You're trying to get it working with php-cgi, yet test manually by just executing a .php script. These may be different. Don't you need just php instead?
2) Make sure everything that you need to execute is accessible and executable by popuser.
3) Check that the .php script returns proper error codes. Deferral may mean that it does not.
 
1) when script changed from php-cgi to php, it shows different error.
Btw, under Hosting Settings, the PHP is set to run as FastCGI in Plesk account.

cat /var/qmail/mailnames/ems-solutions.com.sg/billing/.qmail
|/usr/bin/php /var/www/vhosts/ems-solutions.com.sg/httpdocs/support/console/index.php

The error now is:
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
A5F751C15B0 4492 Mon Feb 10 17:44:31 elinus@ems-solutions.com.sg
(temporary failure. Command output: Could not open input file: /var/www/vhosts/ems-solutions.com.sg/httpdocs/support/console/index.php 4.2.1 Message can not be delivered at this time)
billing@ems-solutions.com.sg


2) Yes, I have set the file to be executable by popuser
-rwxr-xr-x. 1 popuser popuser 953 Feb 10 22:19 /var/www/vhosts/ems-solutions.com.sg/httpdocs/support/console/index.php
 
Back
Top