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
Guest
Registered: 2017-01-24
Posts: 47

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 [[email protected]]
  *** PHP Warning(2): imap_fetchheader(): Bad message number

Offline

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

eulogy
Guest
Registered: 2013-10-11
Posts: 104

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
Guest
Registered: 2017-01-24
Posts: 47

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
Guest
From: Moscow
Registered: 2016-01-30
Posts: 115

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.1.6 + Reports, OCS, Browser notifications, Behaviors, Forms

Offline

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

nageshreddyp
Guest
Registered: 2017-01-24
Posts: 47

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
Guest
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
Guest
From: Germany
Registered: 2010-03-05
Posts: 535

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.1.2 /Ubuntu 14.04.4 LTS
Apache/2.4.7 (Ubuntu) - PHP 5.5.9-1ubuntu4.16 - MySQL: 5.5.49-0ubuntu0.14.04.1

Offline

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

KKAdmin
Guest
From: Germany
Registered: 2010-03-05
Posts: 535

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.1.2 /Ubuntu 14.04.4 LTS
Apache/2.4.7 (Ubuntu) - PHP 5.5.9-1ubuntu4.16 - MySQL: 5.5.49-0ubuntu0.14.04.1

Offline

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

amitsharma_it
Guest
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
Guest
From: Mexico
Registered: 2009-06-26
Posts: 4

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