Configuring Email monitoring on OSTicket - lmkelly/Autoguard GitHub Wiki
Sample config
Other Steps
Enable imap in google
Settings > Forwarding and POP/IMAP > Enable IMAP
Disable SELinux
- sudo nano /etc/selinux/config
- Change to disabled
- Reboot
Allow IMAP through the firewall
sudo firewall-cmd --add-port 993/tcp --permanent
sudo firewall-cmd --reload
Allow access from less secure apps
Manage your google account > Security > Less secure app access (on)
Enable email fetching through osticket general email settings (plus cronjob)
Create cronjob
sudo chmod + /var/www/osTicket/apload/api/cron.php
sudo crontab -e -u www-data
- Enter the following at the bottom of the line
* * * * * php /var/www/osTicket/upload/api/cron.php /dev/null 2>&1