Configure incoming email pipe for tickets

End-users and staff users can open and reply to support tickets using the web interface or by sending email messages to the support department’s email address.

For incoming email messages - from end-users and from staff users - to be recorded in a support, ticket the following configuration is required. These steps have been tested on Ubuntu 22.04, with locally installed Postfix mail server. The commands may differ slightly on other Linux distributions or versions.

Note

This page refers to INCOMING email messages, that is, email messages received by Fleio and recorded in the ticketing system. For OUTGOING email messages, in other words, emails sent by Fleio, see Email Settings.

Install postfix, choose “Internet site” when asked and fill in as “System mail name” the FQDN (Fully Qualified Domain Name), e.g. “mydomain.com”. Note that you need the corresponding MX DNS record of this FQDN to point to the public IP address of the machine where Fleio is installed.

sudo apt install postfix
systemctl enable postfix

Make sure the support department is created and let’s say with support@mydomain.com email address.

Impersonate the fleio` user end edit the following file:

sudo -i -u fleio
cd /home/fleio
nano .aliases

add the following content to file /home/fleio/.aliases:

support: | "docker exec -i fleio-incomingmail-1 /var/webapps/fleio/scripts/incoming_pipe"

Note

On some systems, the email address you are configuring for a support department may already exist in /etc/aliases. For example “support” is already configured in /etc/aliases on CentOS 8. If this is the case, remove it from /etc/aliases

while still in the /home/fleio/ directory, run:

postalias /home/fleio/.aliases
# exit "fleio" user impersonation
exit

as root, edit file /etc/postfix/main.cf. On the alias_maps line, add the new alias file (just the part starting with the comma is newly added):

alias_maps = hash:/etc/aliases, hash:/home/fleio/.aliases

and restart postfix:

systemctl restart postfix

At this point email sent to support@mydomain.com should automatically open a support ticket. Email notifications are also sent when a support ticket is opened or when a reply is added. For outgoing email settings see Email Settings.