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 2013-03-28 16:21:03

RainerZufall
Member
Registered: 2013-03-22
Posts: 66

Automatic job mailgate

Hey there,

I've read a lot of posts and manual pages, if available, but I just can't figure out, how the automatic job 'mailgate' works.

Everything is set up so far, mail-gateway is tested succesfully (connection works, raised mails: 0).

So, does the email of the user need to have a special subject or marker or format or senderadress or whatever, that makes mailgate pick up the mail and create a corresponding ticket? Or should it by default pick up every mail, that is in the configured mailbox?

By now this is a question of understanding, rather than a technical one. I hope that someone here can push me into the right direction. smile

Thanks for that and happy easter in advance!


using GLPI 0.83.7 on Windows Server 2003 SP2

Offline

#2 2013-03-28 19:15:22

danh
Member
From: Chicago, USA
Registered: 2012-03-08
Posts: 546
Website

Re: Automatic job mailgate

If it is setup properly, then it'll pick up all mail sent to that mailbox.

Have you turned on the mailgate action?
Setup/Automatic Actions/mailgate


Thanks,
Dan

Offline

#3 2013-04-02 09:03:55

RainerZufall
Member
Registered: 2013-03-22
Posts: 66

Re: Automatic job mailgate

Yes, the mailgate action is turned on, but it doesn't start automatically, as it should. When I start it manually, no mails are picked up. I tried both modes, GLPI and CLI.

I'm using GLPI 0.83.7 on Windows Server 2003 SP2


using GLPI 0.83.7 on Windows Server 2003 SP2

Offline

#4 2013-04-03 10:33:42

RainerZufall
Member
Registered: 2013-03-22
Posts: 66

Re: Automatic job mailgate

For whatever reason the job started once this morning. But it should execute every 10 minutes. Any ideas where to look or what to check, anybody?

Your help is much appreciated!

Last edited by RainerZufall (2013-04-03 10:34:03)


using GLPI 0.83.7 on Windows Server 2003 SP2

Offline

#5 2013-04-03 11:25:38

davideso
Member
Registered: 2013-01-24
Posts: 14

Re: Automatic job mailgate

Hi,

I had this problem some time ago and someone in the forum helped me, i hope I can help you this time.

Check in the mailgate Automatic action if the Run mode is selected on GLPI, if it's on CLI change it to GLPI.
That should do the trick.

Offline

#6 2013-04-03 11:39:03

RainerZufall
Member
Registered: 2013-03-22
Posts: 66

Re: Automatic job mailgate

Hi, thanks for your hint! I tried both modes, no difference.

If I understood it correctly, you use the GLPI mode for executing the jobs via GLPI itself and use the CLI mode, if you use scheduled/cron tasks via the server, GLPI runs on.


using GLPI 0.83.7 on Windows Server 2003 SP2

Offline

#7 2013-04-04 16:11:05

RainerZufall
Member
Registered: 2013-03-22
Posts: 66

Re: Automatic job mailgate

This is the protocol of the automatic job mailgate:

2013-04-04 15:22    1.075s    0    Job fertig, nichts zu tun
2013-04-04 13:32    1.372s    0    Job fertig, nichts zu tun
2013-04-04 12:05    1.657s    0    Job fertig, nichts zu tun

As said before it should execute every 10 minutes. But it does not. And when it does, no mails are picked up.

Is there a logfile with further infos, maybe? Any other suggestions?


using GLPI 0.83.7 on Windows Server 2003 SP2

Offline

#8 2013-04-04 16:59:14

buwuwu
Member
Registered: 2012-05-09
Posts: 14

Re: Automatic job mailgate

in our case the job ins't also executed as much as it should. it should run every 5 minutes but does only about every 15 minutes.
did you test another mail box?
maybe the /glpi-location/files/_log/php-errors.log could be intressting for you

Offline

#9 2013-04-04 17:27:04

danh
Member
From: Chicago, USA
Registered: 2012-03-08
Posts: 546
Website

Re: Automatic job mailgate

Can you post your GLPI configuration?


Thanks,
Dan

Offline

#10 2013-04-04 18:38:42

sferrell615
Member
From: Baltimore, MD
Registered: 2013-01-29
Posts: 50

Re: Automatic job mailgate

1st part: ignoring mailgate completely, if you go to setup > receivers > 'receiver' > enter your password and select update, then select "get email tickets now".  if this doesn't work then you have something setup incorrectly with your receiver (hostname, username, password, connection type, etc.). 

2nd part: do you want GLPI to automatically pull tickets from your email server?  if yes, set mailgate to CLI.  if you are OK with GLPI pulling tickets only when someone is in GLPI (refreshing web pages, etc.) then set mailgate to GLPI. 
if you set mailgate to CLI then you will need to make sure that your cron is setup correctly.  if you need help setting up your cron let us know.  it should read something like "*/1 * * * * /usr/bin/php5 'DIRECTORY'/glpi/front/cron.php &> /dev/null" (where 'DIRECTORY' is where 'glpi' is located) so that your server is checking GLPI's cron.php once every minute.  to verify that your server is checking GLPI's cron.php look in 'DIRECTORY'/glpi/files/_log/cron.log.  (again, if you have mailgate set to CLI) since you have mailgate "run frequency" set to 10 minutes then you should see "launching mailgate" every 10 minutes.


you've got to start somewhere!
linux kernel version 2.6.27-17-server i686; ubuntu 8.10; apache 2.2.9; php 5.2.6-2ubuntu4.6 with suhosin-patch 0.9.6.2; mysql version 14.2 distrib 5.0.67; glpi 0.83.7

Offline

#11 2013-04-05 11:59:55

RainerZufall
Member
Registered: 2013-03-22
Posts: 66

Re: Automatic job mailgate

Thanks for your replies!

Another mailbox doesn't work either.

This is the config:

 
GLPI  0.83.7 (/glpi => C:/Programme/ocs/xampp/htdocs/GLPI)

Server
 
Operating system : Windows NT VMADMINSERVER 5.2 build 3790 (Windows Server 2003 Standard Edition Service Pack 2) i586
PHP 5.3.5 (Core, PDO, PDO_ODBC, Phar, Reflection, SPL, SQLite, SimpleXML, apache2handler, bcmath, bz2, calendar, com_dotnet,
    ctype, date, dom, ereg, exif, filter, ftp, gd, gettext, hash, iconv, imap, json, ldap, libxml, mbstring, mcrypt, mhash, ming,
    mysql, mysqli, mysqlnd, odbc, openssl, pcre, pdo_mysql, pdo_sqlite, session, soap, sockets, sqlite3, standard, tokenizer, wddx,
    xml, xmlreader, xmlrpc, xmlwriter, zip, zlib)
Setup: memory_limit="128M" max_execution_time="30" safe_mode="" session.save_handler="files" post_max_size="8M"
    upload_max_filesize="128M" 
Software: Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1 (Apache/2.2.17 (Win32)
    mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1 Server at vmadminserver.labnet.de Port 1234)
    Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.14
MySQL: 5.5.8 (root@localhost/glpi)

../config : OK
../files : OK
../files/_dumps : OK
../files/_sessions : OK
../files/_cron : OK
../files/_cache/ : OK
../files/_graphs : OK
../files/_log : OK

LDAP directories
 
Server: 'nt-pdc.labnet.de', Port (default=389): '389', Basedn: 'DC=Labnet,DC=de', Connection filter:
        '(&(objectClass=user)(objectCategory=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))', rootdn (for non anonymous
        binds): 'CN=backup,OU=IT,DC=Labnet,DC=de', Use TLS: '0'

Mysql replicate
 
Active : No

Notifications / Mails Receiver
 
Way of sending emails: SMTP (mail.labnet.de)
Mails Receiver
    Name:"itservice@endokrinologikum.com"   Server:{mail.labnet.de} Login:"backup" Password:Yes Active:Yes

OCS Inventory NG
 
Host for the OCSNG database : 'localhost', Connection to OCSNG database successful, Use the OCSNG software dictionary : 1

Plugins list
 
    ticketmail       Name:Envoi de mail (ticket)         Version :3.0.5      Status :Enabled
    addressing       Name:IP Adressierung                Version :2.0.1      Status :Enabled
    massocsimport    Name:OCS import                     Version :1.6.1      Status :Enabled
    pdf              Name:PDF-Ausgabe                    Version :0.83.3     Status :Enabled
    reports          Name:Reports                        Version :1.6.1      Status :Enabled

@sferrell:

1: by manually starting it, it says: connection works, raised mails: 0

2: I will try the task scheduler, because glpi runs on windows

Last edited by RainerZufall (2013-04-05 12:24:48)


using GLPI 0.83.7 on Windows Server 2003 SP2

Offline

#12 2013-04-05 16:23:16

RainerZufall
Member
Registered: 2013-03-22
Posts: 66

Re: Automatic job mailgate

1. Ok, mails are picked up now. There has been an DNS issue with the mail server. ->solved

2. Another question that came up with this: The mails being sent to the mailbox are picked up and became tickets. The original mail was then deleted automatically, about which my boss is not so happy (for whatever reason...). Can this be disabled somewhere?

3. The sheduled tasks throw an error like: "No installed debugger has Just-In-Time-Debugging enabled." I have no idea what that means in connection to starting a php script, but maybe google knows. Any hints from your side are welcome, too. wink Would be great...


using GLPI 0.83.7 on Windows Server 2003 SP2

Offline

#13 2013-04-05 16:45:47

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

Re: Automatic job mailgate

2. No. If you don't delete the mail, it will be imported as new ticket

3. you can see error in debug mode (in your settings)
    Errors are listed in glpi/files/_log
   For error on scheduled tasks, give us php-errof.log and sql_error.log


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

#14 2013-04-10 11:04:46

RainerZufall
Member
Registered: 2013-03-22
Posts: 66

Re: Automatic job mailgate

yllen wrote:

2. No. If you don't delete the mail, it will be imported as new ticket

3. you can see error in debug mode (in your settings)
    Errors are listed in glpi/files/_log
   For error on scheduled tasks, give us php-errof.log and sql_error.log

2. yes, that makes sense!

3. will take a look on the errors asap

Thank you!


using GLPI 0.83.7 on Windows Server 2003 SP2

Offline

Board footer

Powered by FluxBB