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 2022-06-02 09:01:13

rcastillo
Member
Registered: 2022-06-02
Posts: 47

[SOLVED] - GLPI 10.0.0 - Receiver Issue / Send Email to Create Ticket

I have looked around for a setup configuration to create tickets via email.

Configured - receiver, but still doesn't work and errors out. I have looked all over the place, but have not found a solution with the error/authentication.

Go to Setup / Receivers / + ADD

Name = help@vista.com
Active = YES
Server = smtp.gmail.com
Connection Options = IMAP / SSL / / /
Port = 465
Connection String = {smtp.gmail.com:465/imap/ssl}
Login = help@vista.com
Password = xxxxx
Accepted Mail Archieve =
Refused Mail Archieve Folder =
Maximum Size of Each File Imported by the mails receiver = 2 MB
Use mail date, instead of collect one = NO
Use Reply-To as requester (when available) = NO
Add CC Users as an observer = NO
Comments =

Last edited by rcastillo (2022-06-14 22:52:04)

Offline

#2 2022-06-02 10:14:57

rcastillo
Member
Registered: 2022-06-02
Posts: 47

Re: [SOLVED] - GLPI 10.0.0 - Receiver Issue / Send Email to Create Ticket

Error:

An error occurred trying to connect to collector. 
Host doesn't allow connection.

Last edited by rcastillo (2022-06-02 10:16:07)

Offline

#3 2022-06-02 15:59:34

dhsahay
Member
From: Delhi, India
Registered: 2022-06-02
Posts: 3

Re: [SOLVED] - GLPI 10.0.0 - Receiver Issue / Send Email to Create Ticket

You have entered SMTP settings by mistake. Please use the following IMAP settings instead:

Name = help@vista.com
Active = YES
Server = imap.gmail.com
Connection Options = IMAP / SSL / / /
Incoming Mail Folder = Inbox
Port = 993
Connection String = {imap.gmail.com:993/imap/ssl}Inbox
Login = help@vista.com
Password = xxxxx

It should work now.

Offline

#4 2022-06-03 22:49:07

rcastillo
Member
Registered: 2022-06-02
Posts: 47

Re: [SOLVED] - GLPI 10.0.0 - Receiver Issue / Send Email to Create Ticket

You are correct!  We can close the case now. Wish GLPI members have example setting setups.  This will help many out.

* Also - make sure that Gmail Email Account being used has IMAP enabled.

Settings [Rotary Button]
- See All Settings
- Forwarding and POP/IMAP
- IMAP Access: Enable IMAP

Thank you!

Offline

#5 2022-06-04 00:22:17

rcastillo
Member
Registered: 2022-06-02
Posts: 47

Re: [SOLVED] - GLPI 10.0.0 - Receiver Issue / Send Email to Create Ticket

Wait ~

Actually - it works when tested..... but for some reason its not creating the ticket via email.

**UNLESS I press the BUTTON <Get Email Tickets Now> manually... hmm..

Offline

#6 2022-06-06 05:11:12

dmuth23
Member
Registered: 2022-06-06
Posts: 7

Re: [SOLVED] - GLPI 10.0.0 - Receiver Issue / Send Email to Create Ticket

rcastillo wrote:

Wait ~

Actually - it works when tested..... but for some reason its not creating the ticket via email.

**UNLESS I press the BUTTON <Get Email Tickets Now> manually... hmm..

This sounds like something to do with the Rules for assigning a ticket via a mail collector or possibly an entity issue.

Offline

#7 2022-06-07 16:51:55

dhsahay
Member
From: Delhi, India
Registered: 2022-06-02
Posts: 3

Re: [SOLVED] - GLPI 10.0.0 - Receiver Issue / Send Email to Create Ticket

I am facing the same issue. It always works when I manually press the button <Get Email Tickets Now>. However, it never happens automatically.

I looked up some old forums regarding this and this is what I found:

In Setup --> Automatic Actions --> we need to configure Mailgate as below:

Run Fequency = 1 minute
Status = Scheduled
Run Mode = GLPI
Run Period = 0 --> 24
Number of days this action logs are stored = 30
Number of Emails to Retrieve = 10

Then also it does not work.

So, as per certain threads I looked up on GLPI forum, some cron setting need to be updated by using command "crontab -e" and changing Run Mode to "CLI". Since these threads are for older GLPI versions not sure how to make it work on latest GLPI version 10.0.0.1.

Any help in this regard to resolve this shall be highly appreciated. Thanks.

Last edited by dhsahay (2022-06-07 17:24:19)

Offline

#8 2022-06-10 16:19:22

grenona
Member
From: Canada
Registered: 2021-08-11
Posts: 48

Re: [SOLVED] - GLPI 10.0.0 - Receiver Issue / Send Email to Create Ticket

Since may 30 2022 you must use Apps password authentification in gmail account (need to setup) , Apps les apps is block now
lifewire.com/get-a-password-to-access-gmail-by-pop-imap-2-1171882

Offline

#9 2022-06-12 18:28:59

rcastillo
Member
Registered: 2022-06-02
Posts: 47

Re: [SOLVED] - GLPI 10.0.0 - Receiver Issue / Send Email to Create Ticket

Well, the apps-password is working, but doesn't do nothing with receiver-emails. Google does see it getting used.  Sent an email, but still no ticket produced automatically.

Your app passwords
Name
Created
Last used
GLPI_Helpdesk
9:20 AM
9:22 AM

Last edited by rcastillo (2022-06-13 17:28:21)

Offline

#10 2022-06-12 18:32:17

rcastillo
Member
Registered: 2022-06-02
Posts: 47

Re: [SOLVED] - GLPI 10.0.0 - Receiver Issue / Send Email to Create Ticket

Yeah GLPI mode is buggy, we need the CLI / cron job for mailgate [execute] for sure.  Again I pressed <Execute Button> on Mailgate and the email/ticket was produced.

Please gives us the cron job command for mailgate execute.

Last edited by rcastillo (2022-06-13 17:28:54)

Offline

#11 2022-06-14 17:35:58

rcastillo
Member
Registered: 2022-06-02
Posts: 47

Re: [SOLVED] - GLPI 10.0.0 - Receiver Issue / Send Email to Create Ticket

Does anybody know this answer?

Offline

#12 2022-06-14 22:18:09

rcastillo
Member
Registered: 2022-06-02
Posts: 47

Re: [SOLVED] - GLPI 10.0.0 - Receiver Issue / Send Email to Create Ticket

I have fixed the issue!  It was a bug to change "run frequency" on mailgate:

Run Frequency = 5 minutes
Status = Scheduled
Run Mode = CLI

#

My cron-job on server:

* * * * * apache /usr/bin/php /var/www/html/glpi/front/cron.php &>/dev/null


I can close this case now.  happy ~

Offline

Board footer

Powered by FluxBB