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 2015-01-14 18:40:29

derrick@work
Member
Registered: 2011-07-18
Posts: 16

Mailgate not running automatically

OS: Ubuntu 14.04.1
GLPI Version: 0.85

On GLPI I have setup mailgate with:

Run freq.: 5 Minutes
Run mode: CLI
Run period: 0 ->24
Emails to retrieve: 10

I also found and tried theses steps here http://kevinjmorse.ca/articles/setting- … ntu-server

But it's still not running automatically.


Operating System : Ubuntu Linux 14.04.1 | Kernel and CPU : Linux 3.13.0-55-generic on x86_64 | Processor : Intel(R) Xeon(R) CPU E5405 @ 2.00GHz, 1 cores | RAM : 1024 MB | Apache : Version 2.4.7 | MySQL : Version 5.5.46 | PHP : Version 5.5.9-1 | GLPI : Version 0.90

Offline

#2 2015-01-15 12:01:07

giorginho69
Member
Registered: 2014-12-22
Posts: 9

Re: Mailgate not running automatically

Hi ,

Can you try this ?

I use this configuration :

Crontab -e

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

Offline

#3 2015-01-15 21:21:38

derrick@work
Member
Registered: 2011-07-18
Posts: 16

Re: Mailgate not running automatically

Thanks for the suggestion. I gave it a shot. Still not working though.


Operating System : Ubuntu Linux 14.04.1 | Kernel and CPU : Linux 3.13.0-55-generic on x86_64 | Processor : Intel(R) Xeon(R) CPU E5405 @ 2.00GHz, 1 cores | RAM : 1024 MB | Apache : Version 2.4.7 | MySQL : Version 5.5.46 | PHP : Version 5.5.9-1 | GLPI : Version 0.90

Offline

#4 2015-01-23 11:14:31

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Mailgate not running automatically

How have you define your mailcollector ?


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#5 2015-01-23 15:40:17

derrick@work
Member
Registered: 2011-07-18
Posts: 16

Re: Mailgate not running automatically

Yllen, what do you mean by that? Sorry I'm not sure I understand. But I should of mentioned that I do get e-mails when I press the Get email tickets now button under Home>Setup>Receivers>Actions.

Also after trying giorginho69's suggestion I got an e-mail saying:

The following automatic actions are in error. They require intervention.


mailgate : Retrieve email (Mails receivers)


Operating System : Ubuntu Linux 14.04.1 | Kernel and CPU : Linux 3.13.0-55-generic on x86_64 | Processor : Intel(R) Xeon(R) CPU E5405 @ 2.00GHz, 1 cores | RAM : 1024 MB | Apache : Version 2.4.7 | MySQL : Version 5.5.46 | PHP : Version 5.5.9-1 | GLPI : Version 0.90

Offline

#6 2015-01-23 19:40:46

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Mailgate not running automatically

Clic on the cross near Scheduling


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#7 2015-01-23 22:57:47

derrick@work
Member
Registered: 2011-07-18
Posts: 16

Re: Mailgate not running automatically

yllen, I don't know where to look for that.


Operating System : Ubuntu Linux 14.04.1 | Kernel and CPU : Linux 3.13.0-55-generic on x86_64 | Processor : Intel(R) Xeon(R) CPU E5405 @ 2.00GHz, 1 cores | RAM : 1024 MB | Apache : Version 2.4.7 | MySQL : Version 5.5.46 | PHP : Version 5.5.9-1 | GLPI : Version 0.90

Offline

#8 2015-01-28 12:39:55

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Mailgate not running automatically

And your automatic action Mailcollector, you have next run : Running. Clic on the cross near Running


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#9 2015-11-15 15:58:48

derrick@work
Member
Registered: 2011-07-18
Posts: 16

Re: Mailgate not running automatically

I still haven't figured out how to get this running. I'm using GLPI 0.90 on Ubuntu 14.04.1 below is what I see in the logs.

cron.log

Can't get DB lock
2015-11-14 20:56:01 [@SERVER]
External #1: Nothing to launch
2015-11-14 20:56:36 [32@SERVER]
Internal #1: Launch queuedmail
2015-11-14 20:57:01 [@SERVER]
External #1: Nothing to launch
2015-11-14 20:58:01 [@SERVER]
External #1: Launch mailgate
2015-11-14 20:59:02 [@SERVER]
External #1: Nothing to launch


Operating System : Ubuntu Linux 14.04.1 | Kernel and CPU : Linux 3.13.0-55-generic on x86_64 | Processor : Intel(R) Xeon(R) CPU E5405 @ 2.00GHz, 1 cores | RAM : 1024 MB | Apache : Version 2.4.7 | MySQL : Version 5.5.46 | PHP : Version 5.5.9-1 | GLPI : Version 0.90

Offline

#10 2015-11-25 17:55:17

derrick@work
Member
Registered: 2011-07-18
Posts: 16

Re: Mailgate not running automatically

I got this to work after finding this post: http://forum.glpi-project.org/viewtopic.php?id=34063

kja wrote:

hi!

i think that i found solution:)

when you set job as CLI you must edit php.ini in /etc/php5/cli  not in /etc/php5/apache2 (/etc/php5/apache2 is only for GLPI mode job! )

in CLI folder php.ini doesn't contain extension=imap.so  the only thing that you must to do is add
extension=imap.so in your php.ini  under /etc/php5/cli


Regards!
kja


Operating System : Ubuntu Linux 14.04.1 | Kernel and CPU : Linux 3.13.0-55-generic on x86_64 | Processor : Intel(R) Xeon(R) CPU E5405 @ 2.00GHz, 1 cores | RAM : 1024 MB | Apache : Version 2.4.7 | MySQL : Version 5.5.46 | PHP : Version 5.5.9-1 | GLPI : Version 0.90

Offline

Board footer

Powered by FluxBB