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 2016-03-31 21:01:36

lamparolho
Member
Registered: 2016-03-31
Posts: 1

Can't save mailservers with novalidate-cert in 0.84.3 and 0.90.1

Hi,

I'm running two different versions of GLPI, just for testing purposes, and I'm having a hard time trying to connect to my local mail server, both in receivers and auth > mail servers. I always get the same message in my php-errors.log:

*** PHP Notice(8): Unknown: Certificate failure for 192.168.1.17: self signed certificate: /C=--/ST=SomeState/L=SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit/CN=localhost.localdomain/emailAddress=root@localhost.localdomain (errflg=2)
  Backtrace :
  :                                                 
2016-03-31 15:34:06 [2@brno]
  *** PHP Warning(2): imap_open(): Couldn't open stream {192.168.1.17:143/imap}INBOX
  Backtrace :
  :                                                 
  inc/auth.class.php:196                             imap_open()
  inc/authmail.class.php:263                         Auth->connection_imap()
  front/authmail.form.php:69                         AuthMail::testAuth()
2016-03-31 15:34:06 [2@brno]
  *** PHP Notice(8): Unknown: Certificate failure for 192.168.1.17: self signed certificate: /C=--/ST=SomeState/L=SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit/CN=localhost.localdomain/emailAddress=root@localhost.localdomain (errflg=2)
  Backtrace :
  :

Ok, looks like a simple message, setting the option "novalidate-cert" should do the job, right? But I'm currently unable to turn this setting on. I tried in both GLPI versions to set it and test the connection, then tried to set it, save the connection and test it, also tried to create a new connection from scratch, and it's like the setting can't be turned on. I save the change, the page reloads, the dropdown with this option comes back empty and it doesn't show up in my connection string.

The settings I'm using right now:
name: whatever
active: yes
Domain name: mydomain.com.br
Server: 192.168.1.17
Options: IMAP and everything else empty (except for no-validate-cert)
Inbox directory: INBOX
Port: 143

Am I doing something wrong? How can I "force" GLPI to try connecting without checking the certificate?

Thanks in advance, sorry for my broken english. big_smile

Offline

#2 2016-04-01 09:38:57

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

Re: Can't save mailservers with novalidate-cert in 0.84.3 and 0.90.1

name must be the name of the mail box (ex.: glpi@mydomain.com)
server: imap.mydomain.com
You don't have domain name in the collector configuration


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

#3 2017-02-27 15:34:39

esstampida
Member
Registered: 2017-02-16
Posts: 2

Re: Can't save mailservers with novalidate-cert in 0.84.3 and 0.90.1

Hello

I have the same problem, the mail server only has open port 143 without any kind of security. Is there any way to configure the GLPI extractor?

Offline

#4 2017-02-27 20:39:50

KKAdmin
Member
From: Germany
Registered: 2010-03-05
Posts: 959

Re: Can't save mailservers with novalidate-cert in 0.84.3 and 0.90.1

Please open new case, old have wrong configuration please post your versions and configuration


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

Offline

Board footer

Powered by FluxBB