Setting up email replies

The feature which allows users to reply to the email sent to them needs few steps to be configured correctly.

Setting it up on cPanel:

1- Open cPanel then click on "Mail forwarders" icon 

2- Then click on "Add Forwarder

3- Click on Advanced , then "Pipe to a program"

Then insert the following code, editing paths to whatever is correct on your server

/usr/local/bin/php -q /var/www/firehelp/artisan firehelp:mailpipe

* If you're using postfix, then first you need to setup your /etc/postfix/

1- Make sure that this line exists:
  recipient_delimiter = +


2- On the same file , add the following:

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases  

3- Edit /etc/aliases using your favorite editor ( vim ? or nano. We don't judge ) and paste the following After editing the paths and appropriate changes "| /usr/bin/php -q /var/www/firehelp/artisan firehelp:mailpipe"
* # Do not change "support" keyword

Reload services using
service postfix reload

Change the email domain , then on the system Head to "Settings" => General settings

Edit the domain to the same domain you specified on step 3 , and on Tickets set Allow Email replies to "Yes" 

Save, and test it.

On any other mail service

Configure any other mail service to pipe the email to :

/usr/local/bin/php -q /var/www/firehelp/artisan firehelp:mailpipe