1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Email piping in HESK
This guide explains how to set the HESK application to redirect mail directly in the ticketing system (mail piping).
Implementing email piping
Email piping can be used to directly send an email to a script which is on a hosting but this requires specific configuration.
Redirecting emails to the web server
Firstly an email address hosted with Infomaniak must be created, which will be dedicated to this use, and redirection of this to the address "user_ID@serveur_web" must be set up. The "user_ID" can be found by logging onto the hosting via SSH; this is the owner of the current directory (e.g. "uid12345"). The "serveur_web" is the address of the server on which the hosting is located (e.g. "h2web1").
It may be a good idea to also enable the redirection of spam to avoid potential problems.
Configuring the email piping
The email piping is set up with the help of a ".procmailrc" file located at the root of the hosting. If it does not exist, it can just be created
Here is an example of configuration:
The first line just shows the start of the rule. The second line requests that the email received is "piped" to the script for which the pathway is shown.
In the event of the hosting being moved to another server the redirection email address must be adapted for email piping to be able to work. This will also be the case for the pathway shown in the ".procmailrc" file if the full pathway was used instead of the environment variable "$HOME".