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 2012-07-09 18:32:23

nik
Member
Registered: 2012-07-09
Posts: 4

Mailgate not automatically getting emails.

I am running a freshly installed Ubuntu 12.04 server with a fresh GLPI 0.83.2 install. Everything is working except for an annoying problem with the mailgate service not automatically getting emails sent to the helpdesk email account on gmail.

If manually click on execute in Setup, Automatic Actions, mailgate or Setup, Receivers the emails are downloaded and the tickets are automatically created. The settings of the mailgate are as follows:

Run Frequency = 5 minutes
Status = Scheduled
Run Mode = GLPI
Run Period = 0 - 24
Number of days this action logs are stored = 30 Days
Number of email to retrieve = 400

I Also Tried to configure cron (I changed Run Mode from GLPI to CLI as well) to run the task as mentioned in other articles on the forum but nothing seems to work.

Offline

#2 2012-07-09 18:36:23

wawa
GLPI-DEV
From: Montpellier / France
Registered: 2006-07-03
Posts: 6,019
Website

Re: Mailgate not automatically getting emails.

does the unix cron tab calls the cron.php file ?

Offline

#3 2012-07-09 19:08:54

nik
Member
Registered: 2012-07-09
Posts: 4

Re: Mailgate not automatically getting emails.

my crontab is calling cron.php and crontask.php

Just checked in /var/log/syslog and I am getting the following error:


Jul  9 14:32:01 ocs-glpi CRON[27206]: (CRON) info (No MTA installed, discarding output)

Last edited by nik (2012-07-09 19:33:05)

Offline

#4 2012-07-09 19:20:19

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Mailgate not automatically getting emails.

> my crontab is calling cron.php
Not very usefull is task configured in GLPI run mode, should set as CLI

> and crontask.php
Absolutely useless.


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#5 2012-07-09 19:46:38

nik
Member
Registered: 2012-07-09
Posts: 4

Re: Mailgate not automatically getting emails.

The GLPI run Mode is set to CLI.

I have deleted the crontask.php line so I am left with the following lin in my crontab:

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

Last edited by nik (2012-07-09 19:46:59)

Offline

#6 2012-07-09 20:00:56

nik
Member
Registered: 2012-07-09
Posts: 4

Re: Mailgate not automatically getting emails.

Not sure what happened but I deleted the line from crontab and added it again and when I rebooted cron the mailgate worked automatically.

Thanks for your help

Offline

#7 2012-07-09 20:06:04

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Mailgate not automatically getting emails.

Perfect, I close.


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

Board footer

Powered by FluxBB