Skip to content
CWPControl Web PanelWiki

Postfix pipe email to whmcs ticket

Updated

Easy instructions for email pipe to whmcs ticket
We recommend to skip these instructions and do it from the user panel Mail Forwarders -> Alias-Pipe

– you need to have an email account created in cwp for these instructions to work.

In the configuration examples we will use username: testuser and email account space@test.com, don’t forget that you need to change it.

*** This are now old instructions and you should use User Panel to create alias-pipe.

Edit File /etc/postfix/master.cf and add this at end of the file

whmcspipe unix - n n - - pipe 
  flags=Rq user=testuser argv=/usr/local/bin/php -q /home/testuser/public_html/crons/pipe.php -f ${sender} -- ${recipient}

Don’t forget to replace the username and path with your actual path.

Edit File /etc/postfix/transport and add this at end of the file

space@test.com whmcspipe:

If you need to have multiple pipe scripts, you can add it as a new entry and replace the name whmcspipe to whmcspipe1 and so on…

once you are done, reload your new configuration:

postmap /etc/postfix/transport
service postfix restart