Remote email piping can be used when wanting to use email piping, but the email account exists on a different server to the SupportPro installation. For example, your email server may be separate to your web server, where remote email piping would be useful.
remote_pipe_handler (no extension) and edit line 19, replacing the example URL with the URL to your system URL followed by 'remote_pipe'.
$pipeUrl = 'http://www.domain.com/support/remote_pipe';
To use 'Consume All Email' edit line 22, replacing null with a valid department email address. If you need to specify multiple consume all addresses, then we recommend to create multiple copies of the remote_pipe_handler file and set different $intended addresses:
$intended = null;
Upload this file to the server with the email accounts on it.php" in SSH. Once you locate the PHP executable, make sure to include that in the Remote Email Piping command. So, if PHP is located at /usr/bin/php, you would write, for example:
| /usr/bin/php -q /var/www/support/remote_pipe_handler
php -q is the PHP command to execute a PHP script from the command line.If you receive a bounce email containing an error that states local delivery failed when sending an email to your piped address then the forwarder entry is not correct and the message is not being sent to the pipe script.
pipe to |/var/www/remote_pipe_handler generated by [email protected] local delivery failed
To correct this, first ensure the remote_pipe_handler file permissions are set to chmod 755.
remote_pipe_handler file as described above and upload to a known location inside the public_html folder, in our example we're uploading to public_html/folder/remote_pipe_handler.remote_pipe_handler file to CHMOD 755.public_html/folder/remote_pipe_handler, then click Add Forwarder.
Article Number: 165
Author: May 17, 2024
Last Updated: Sep 27, 2024
Online URL: https://docs.supportpro.vn/article/remote-email-piping-165.html