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 2008-01-04 13:07:43

spheron
Member
Registered: 2007-08-02
Posts: 32

Mail Gateway "Connectin failed"

Hello @all,

we using here the new GLPI V0.70 and it look and feels really great. Good work dudes... :-)

The feature to get the tickets per email is very interesting for us. But it didn't work here. We use an Cyrus IMAP Server here with no SSL, no certificates, no TLS or anything else. I configured the server name (tried IP and name), protocol (IMAP, any other field are emtpy), user and password. The mail and  port field i left blank.

Every time i tried to connect to our IMAP GLPI says 'Verbindung fehlgeschlagen' = connection failed.

Entering values in the port and email adress field changed nothing... :-(

I read in the forum, that i must re-type the password everytime i changed values. I did so, but still: connection failed.

Are there any log-files i can check (tried debug mode and login in files enabled, but there are no usefull information for me)???  What PHP Modules must be installed to use the Mail Gateway?

I tried to reach our IMAP Server per telnet and it works. So the error must be at the side of PHP or so...


Thanks for help (and for the great soft ;-) )


Marco

Offline

#2 2008-01-04 13:52:33

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Mail Gateway "Connectin failed"

Try to use "nocert"  in your mailgate configuration in GLPI


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#3 2008-01-04 14:02:13

spheron
Member
Registered: 2007-08-02
Posts: 32

Re: Mail Gateway "Connectin failed"

Trying:

Protokoll
IMAP  <Empty>   NO-VALIDATE-CERT   <Empty>
email  <Empty>
port    <Empty>
user          <username>
password  <password>


Results in the same error: connection failed   :-)

Are there any logs i can take a look ???


Greets
Marco

Offline

#4 2008-01-04 16:18:45

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Mail Gateway "Connectin failed"

All log are in /files

Active debug mode and trace file.

What is your "Resulting connection parameter ?"


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#5 2008-01-04 18:19:29

applebeck25
Member
Registered: 2008-01-04
Posts: 7

Re: Mail Gateway "Connectin failed"

I am also experiencing this problem. We are currently testing GLPI and have setup a new Gmail account to use as a test with the Mail Gateway function. We are able to check the Gmail account using POP and IMAP from outlook. However are receiving the Connection Failed message when using the Get Tickets Now Option. Current Settings are as follows:

GLPI version 0.7

Server: imap.gmail.com
Connection Options: IMAP SSL <blank> <blank>
Email: <account address>
Port: 993

Resulting connection Parameter: {imap.gmail.com:993/ssl}<account address>

Username: <username>
Password: <Password>

Is there a setting we must adjust?

Offline

#6 2008-01-04 18:40:09

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Mail Gateway "Connectin failed"

add novalidate-cert


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#7 2008-01-04 20:06:27

applebeck25
Member
Registered: 2008-01-04
Posts: 7

Re: Mail Gateway "Connectin failed"

I added the no validate-cert option and still receive connection failed. Any other things I might try?

Thanks

Offline

#8 2008-01-04 20:22:20

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Mail Gateway "Connectin failed"

{imap.gmail.com:993/imap/ssl} should work

Do you have imap extansion  compiled with you PHP ?


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#9 2008-01-04 20:26:06

applebeck25
Member
Registered: 2008-01-04
Posts: 7

Re: Mail Gateway "Connectin failed"

Yes we do, I also double checked using phpinfo to make sure this was the case.

Offline

#10 2008-01-04 20:27:15

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Mail Gateway "Connectin failed"

What do you see in your apache log ? or error log ?


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#11 2008-01-04 20:33:28

applebeck25
Member
Registered: 2008-01-04
Posts: 7

Re: Mail Gateway "Connectin failed"

No error messages come in the Apache error logs below is the information from the Apache access log is there another log I should look in?

From Apache access log:

128.163.44.___- - [04/Jan/2008:13:29:01 -0500] "POST /ocsinventory HTTP/1.1" 200 204
128.163.163.___- - [04/Jan/2008:13:29:10 -0500] "POST /ocsinventory HTTP/1.1" 200 96
128.163.163.___- - [04/Jan/2008:13:29:10 -0500] "POST /ocsinventory HTTP/1.1" 200 88
128.163.44.___- - [04/Jan/2008:13:29:11 -0500] "POST /ocsinventory HTTP/1.1" 200 96
128.163.44.___ - - [04/Jan/2008:13:29:11 -0500] "POST /ocsinventory HTTP/1.1" 200 88
128.163.57.___ - - [04/Jan/2008:13:29:18 -0500] "POST /glpi/front/mailgate.form.php HTTP/1.1" 200 821
128.163.57.___ - - [04/Jan/2008:13:29:18 -0500] "GET /glpi/front/mailgate.form.php?ID=1 HTTP/1.1" 200 46309

Last edited by applebeck25 (2008-01-04 20:36:31)

Offline

#12 2008-01-05 00:54:54

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Mail Gateway "Connectin failed"

I create a count in gmail to test With this parameters :

for pop  it's ok  -> {pop.gmail.com:995/pop/ssl/novalidate-cert}

and for imap it's ok -> {imap.gmail.com:993/imap/ssl/novalidate-cert}


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#13 2008-01-05 02:44:11

applebeck25
Member
Registered: 2008-01-04
Posts: 7

Re: Mail Gateway "Connectin failed"

I have also turned off Windows Firewall and still no luck. Are there any other settings on the server which is running GLPI I should verify?

Again thank you for you help.

Offline

#14 2008-01-05 05:37:13

applebeck25
Member
Registered: 2008-01-04
Posts: 7

Re: Mail Gateway "Connectin failed"

JMD and MoYo thanks for you help! I was able to locate the problem and resolve the issue.

There is a bug in PHP versions which are earlier then 5.2.2 which causes the command imap_open not to be able make connections of the SSL type. Once I updated PHP from the version I had, 5.2.0, to the most current version 5.2.5 the issue appears to be resolved. Below are the links which I used to find this information.

http://bugs.php.net/bug.php?id=29036 <---- Best
http://bugs.php.net/bug.php?id=36496&edit=1

Offline

#15 2008-01-05 13:16:44

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Mail Gateway "Connectin failed"

thanks for the information.


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#16 2008-01-05 15:21:00

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Mail Gateway "Connectin failed"

Allright I close this thread.


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

Board footer

Powered by FluxBB