Using mail services with GLPI
GLPI can use a mail server to automatically send emails to notify users that their tickets are being followed up. You can also allow users to create tickets by simply sending an email. This article will describe how to set these services up.
Google email account
Start by creating a dedicated email account for users to send their tickets to (e.g. This email address is being protected from spambots. You need JavaScript enabled to view it.). In this example I'm using Google Workspace.
- Log on to your newly created email account.
- If using Google, you will need to Allow less secure apps.
- Go to Settings, by clicking the
- Click See all settings.
- Select the Forwarding and POP/IMAP tab.
- Click the radio button to Enable IMAP.
You might want to create an additional mail account called This email address is being protected from spambots. You need JavaScript enabled to view it..
Receivers
GLPI allows users to send an email to a support address (e.g. This email address is being protected from spambots. You need JavaScript enabled to view it.) and for that email to automatically create a ticket.
- Go to Setup > Receivers.
- Click the
button, and enter the following details:
- Name: This email address is being protected from spambots. You need JavaScript enabled to view it.
- Server: imap.gmail.com
- Connection options: IMAP, SSL, NO-TLS, NO-VALIDATE-CERT.
- Port: 993
- Login: This email address is being protected from spambots. You need JavaScript enabled to view it.
- Password: xxxxxx
- Click + Add button.
Now you can test your settings.
- Send a test email to the This email address is being protected from spambots. You need JavaScript enabled to view it. address.
- Check to see the email in the inbox.
- Go to Setup > Receivers.
- Open your newly created account for editing.
- Select the Actions tab.
- Click the Get email tickets now button.
Your email should be collected and turned into a ticket.
Email notifications
You will typically want GLPI to followup via email, so that your users get automatic notifications.
- Go to Setup > Notifications.
- Enable the following options:
- Enable followup.
- Enable followups via email.
- You will now be able to click Email followups configuration.
- Add the following entries:
- Administrator email: your email address.
- Administrator name: your name
- From email: This email address is being protected from spambots. You need JavaScript enabled to view it.
- From name: Helpdesk
- Reply to address: This email address is being protected from spambots. You need JavaScript enabled to view it.
- Reply to name: Helpdesk
- No-Reply address: This email address is being protected from spambots. You need JavaScript enabled to view it.
- No-Reply name: Do not reply
- Way of sending emails: SMTP+SSL
- Check certificate: No
- SMTP host: smtp.gmail.com
- Port: 465
- SMTP login: This email address is being protected from spambots. You need JavaScript enabled to view it.
- SMTP password: xxxxx
- Click Save.
To check your configuration you can click Send a test email to the administrator.
Note that for Notifications and Receivers to work predictably, you will need to configure a Cron job.
Handling replies
Once your users start receiving automated emails they will likely want to post replies. By default any reply email from a user who doesn't have a GLPI account will be refused. The best solution here is to create a user account for them, and then assign any tickets to that user account.
Thanks for visiting,
Steven