You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-07-18 18:34:29

Maroas
Member
Registered: 2023-07-18
Posts: 8

Troubleshooting GLPI Mailgate Configuration for Automatic Actions

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

#2 2023-07-20 12:28:15

sofi102
Member
Registered: 2023-02-09
Posts: 17

Re: Troubleshooting GLPI Mailgate Configuration for Automatic Actions

Have the same issue after update...

Offline

#3 2023-07-20 15:18:03

Kaya84
Member
Registered: 2019-06-13
Posts: 217

Re: Troubleshooting GLPI Mailgate Configuration for Automatic Actions

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

#4 2023-07-26 16:33:32

Maroas
Member
Registered: 2023-07-18
Posts: 8

Re: Troubleshooting GLPI Mailgate Configuration for Automatic Actions

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

#5 2023-07-26 18:40:39

Maroas
Member
Registered: 2023-07-18
Posts: 8

Re: Troubleshooting GLPI Mailgate Configuration for Automatic Actions

"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

Board footer

Powered by FluxBB