1

Topic: 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

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

Re: MailGate is not running automatically

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

3

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.

4

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.3

5

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

6

Re: MailGate is not running automatically

Hi,

I am facing the same issue anybody can help me?

Thanks
Imran Saif

7

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

8

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

9

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

10

Re: MailGate is not running automatically

please run this on CLI

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

put the result