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 2017-02-21 19:59:20

nageshreddyp
Member
Registered: 2017-01-24
Posts: 54

MailGate is not running automatically

Hi Friends,

Mailgate in automatic actions is not creating any tickets unless I collect the manually from the receiver.

I have scheduled the task in windows to run every 5 minutes.

Below is the message that I am getting in PHPerrors.


MailCollector::cronMailgate()
  inc\crontask.class.php:832                         call_user_func()
  front\crontask.form.php:50                         CronTask::launch()
2017-02-21 21:48:31 [9@GLPIDEV]
  *** PHP Warning(2): imap_fetchheader(): Bad message number

Offline

#2 2017-02-21 22:14:36

eulogy
Member
Registered: 2013-10-11
Posts: 118

Re: MailGate is not running automatically

In Automatic Actions -> mailgate, what's the status?
Running?
CLI or GLPI mode?

Last edited by eulogy (2017-02-21 22:20:56)

Offline

#3 2017-02-22 03:55:29

nageshreddyp
Member
Registered: 2017-01-24
Posts: 54

Re: MailGate is not running automatically

1) Status is enabled. .


2) Tried both options
     A) CLI ...Scheduled a job in Windows to run cron.php and crontask.form.php
     B) GLPI and scheduled to run every 5 minutes.

Both of the above modes I haven't got any ticket automatically.

I need to go to the receivers and click on the action manually to get the tickets from the Inbox.

Offline

#4 2017-02-22 09:05:29

freewood
Member
From: Moscow
Registered: 2016-01-30
Posts: 116

Re: MailGate is not running automatically

Does this job have time in "Last run", maybe it's freezed after unsuccesseful run? In this case try to press "Execute" near the "Last run" field. If it's will successeful, then you have problem with mail server.


Debian Stretch + nginx 1.10.3 + php7.0-fpm
GLPI v9.3.1 + Reports, Behaviors, Forms

Offline

#5 2017-02-22 14:08:13

nageshreddyp
Member
Registered: 2017-01-24
Posts: 54

Re: MailGate is not running automatically

Yes it has time in Last Run. So it is not freezed and no need to run execute against the Last run.

Last run 2017-02-22 15:05
Next Run (2017-02-22 15:06) Execute.

Do you still say that it is because of mail server issue.

I am using below in receiver configuration.

{imap.gmail.com:993/imap/ssl/novalidate-cert/notls/debug}INBOX


I am still having the issue as I need to click the get mails every time.

Am using the same mail id even for the notifications also but the relay server is different. Mails are delayed.


What you suggest to  1) use same SMTP  and email  for both the notification and receivers or different email ID's

Offline

#6 2017-03-07 06:24:52

imransaifilohar
Member
Registered: 2017-03-03
Posts: 1

Re: MailGate is not running automatically

Hi,

I am facing the same issue anybody can help me?

Thanks
Imran Saif

Offline

#7 2017-04-28 16:37:58

KKAdmin
Member
From: Germany
Registered: 2010-03-05
Posts: 959

Re: MailGate is not running automatically

Also windows system ? which version of glpi ?


You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.3.3

Offline

#8 2017-04-28 21:10:52

KKAdmin
Member
From: Germany
Registered: 2010-03-05
Posts: 959

Re: MailGate is not running automatically

ubuntu 16.10
{imap.gmail.com:993/imap/ssl/validate-cert/notls}
(google pls activate imap on google website in the accounts)
no problems


You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.3.3

Offline

#9 2017-05-01 15:39:15

amitsharma_it
Member
Registered: 2017-04-15
Posts: 1

Re: MailGate is not running automatically

i have the same issue and i just update the crontab -e

*/1 * * * * /usr/bin/php5 /var/www/glpi/front/cron.php --force mailgate

Offline

#10 2017-05-19 03:18:24

mnemosine
Member
From: Mexico
Registered: 2009-06-26
Posts: 5

Re: MailGate is not running automatically

please run this on CLI

*/1 * * * * /usr/bin/php5 /var/www/glpi/front/cron.php

put the result

Offline

Board footer

Powered by FluxBB