You are not logged in.
Recently, I installed GLPI on a Windows Server 2022 and completed all the necessary main configurations. I set up the recipient in the CONFIGURE->RECIPIENT menu, and everything is working correctly when executed manually.
However, when I reached the Automatic Actions section and configured the Mailgate to check for new emails and open a ticket based on the email content, I encountered issues. When I manually execute the AUTOMATIC ACTIONS->MAILGATE option and click on EXECUTE, it brings all unread emails to the SUPPORT->TICKETS tab. However, when I set it to run automatically every 1 minute, it doesn't execute properly.
Screenshot 1: prnt.sc/MWCWAo_-B1vE
It's important to note that manually, the process is functioning properly when I click on execute.
I have already tried configuring it through a script, but I was not successful using the command "C:\xampp\PHP\php.exe "C:\xampp\htdocs\glpi\front\cron.php" --force".
Offline
Have the same issue after update...
Offline
Did u configure the cron? ( Scheduled Task under Ms Windows)
follow what I already wrote here: https://forum.glpi-project.org/viewtopic.php?id=287383
Offline
It worked, I simply added the mailgate at the end.
The old execution script looked like this:
C:\xampp\PHP\php.exe "C:\xampp\htdocs\glpi\front\cron.php" -- force
and the new one became:
C:\xampp\PHP\php.exe "C:\xampp\htdocs\glpi\front\cron.php" -- force mailgate
ty Kaya84
Offline
"For future issues, follow the script lines that worked for me using XAMPP.
To force email retrieval = C:\xampp\PHP\php.exe "C:\xampp\htdocs\glpi\front\cron.php" -- force mailgate
To force sending notifications = C:\xampp\PHP\php.exe "C:\xampp\htdocs\glpi\front\cron.php" -- force queuednotification
Remember to go to configure > automatic actions
and change mailgate and queuednotification to CLI mode."
After that, just create a task scheduler on Windows every 5 minutes to run the .bat file containing the scripts.
Last edited by Maroas (2023-07-26 18:41:32)
Offline