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 2018-09-03 20:21:55

aprieto
Member
Registered: 2013-08-06
Posts: 11

Problem With Receiver and GMAIL

Hi,

I set email notifications as follow:

FluxBB bbcode test

It works,

But when I set Receiver as follow:

FluxBB bbcode test

And try to get mails tickets, it fail and crash the web session.

I put the GLPI in debug mode but don't get any aditional logs different from this:

[2018-08-29 14:53:45] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in /var/www/html/soporte/inc/toolbox.class.php line 657
  *** PHP Warning(2): imap_open(): Couldn't open stream {imap.gmail.com:993/imap/ssl/validate-cert/notls/debug}
  Backtrace :
  :                                                 
  inc/mailcollector.class.php:1107                   imap_open()
  inc/mailcollector.class.php:515                    MailCollector->connect()
  inc/mailcollector.class.php:1658                   MailCollector->collect()
  :                                                  MailCollector::cronMailgate()
  inc/crontask.class.php:836                         call_user_func()
  front/cron.php:61                                  CronTask::launch()
  {"user":"@rigel.gtssa.co","mem_usage":"0.446\", 3.22Mio)"}

I tried with all options for Stream but nothing works,

Can you help me Please.

Thanks a lot.

Offline

#2 2018-09-04 06:55:11

Robikom
Member
Registered: 2018-08-03
Posts: 1

Re: Problem With Receiver and GMAIL

Hi;

I had a similar issue a year ago.
The frist thing you can try is to fill our the "Incoming mail folder box".
The other thing was : Gmail worked with flags on emails. I had to deactived these flags.

Offline

#3 2018-09-04 20:21:12

aprieto
Member
Registered: 2013-08-06
Posts: 11

Re: Problem With Receiver and GMAIL

Robikom wrote:

Hi;

I had a similar issue a year ago.
The frist thing you can try is to fill our the "Incoming mail folder box".
The other thing was : Gmail worked with flags on emails. I had to deactived these flags.

Hi Robikom,

Thanks for you message,

I try fill the "incoming mail folder box" with INBOX, and desactived the Flags for IMAP in the gmail account configuration but I get the same behaivor.

Thing most weird for me is that the session crash after we click in "get email tickets", I need to close the navegator and reopen the glpi portal.

Any other Idea?

Offline

#4 2018-09-06 16:38:15

aprieto
Member
Registered: 2013-08-06
Posts: 11

Re: Problem With Receiver and GMAIL

Any idea?

Thanks

Offline

#5 2018-09-07 08:24:28

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

Re: Problem With Receiver and GMAIL

Special gmail security is disabled ? You don't have mfa or something else activated ?
(Microsoft called this modern authentication.)


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

#6 2018-09-10 15:42:26

aprieto
Member
Registered: 2013-08-06
Posts: 11

Re: Problem With Receiver and GMAIL

KKAdmin wrote:

Special gmail security is disabled ? You don't have mfa or something else activated ?
(Microsoft called this modern authentication.)

Hi,

I disabled the less security apps protection and dont have MFA activated, but  It does not work.

Thanks

Offline

#7 2018-09-10 20:24:46

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

Re: Problem With Receiver and GMAIL

If you have debug mode on you should have a "/var/www/glpi/files/_log/mail-debug.log" or something mail*.
We need the output of this files.


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

#8 2018-09-10 21:00:11

aprieto
Member
Registered: 2013-08-06
Posts: 11

Re: Problem With Receiver and GMAIL

KKAdmin wrote:

If you have debug mode on you should have a "/var/www/glpi/files/_log/mail-debug.log" or something mail*.
We need the output of this files.

Hi,

I ran a test in debug mode but I dont get any extra log file in that folder, and in the mail.log only get:

2018-08-28 22:48:01 [2@rigel.gtssa.co]
Un correo electrónico para soportetecnico@gtscolombia.com fue añadido a la cola: [GLPI] Errores del Receptor
2018-08-28 22:56:24 [2@rigel.gtssa.co]
Se ha enviado un correo electrónico a soportetecnico@gtscolombia.com: [GLPI] Errores del Receptor


It look like debug mode does not working. This is a clean installation.

Thanks a lot

Offline

#9 2018-09-10 22:00:19

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

Re: Problem With Receiver and GMAIL

oh sorry my mistake mail-debug.log mail* are for smtp the sending mail.

Did you check your local firewall or network firewall to allow this service ?

You can try the optional mailbox inbox. Type there "INBOX" (or the folder name of your inbox)

I got this, of course to real mailbox only fun name and password

root@glpidev:/var/www/glpi/files/_log# cat php-errors.log
2018-09-10 21:53:42 [2@glpidev]
  *** PHP Warning(2): imap_open(): Couldn't open stream {imap.gmail.com:993/imap/ssl/validate-cert/notls}
  Backtrace :
  :
  inc/mailcollector.class.php:1109                   imap_open()
  inc/mailcollector.class.php:519                    MailCollector->connect()
  front/mailcollector.form.php:81                    MailCollector->collect()
2018-09-10 21:53:44 [2@glpidev]
  *** PHP Warning(2): imap_open(): Couldn't open stream {imap.gmail.com:993/imap/ssl/validate-cert/notls}
  Backtrace :
  :
  inc/mailcollector.class.php:1109                   imap_open()
  inc/mailcollector.class.php:519                    MailCollector->connect()
  front/mailcollector.form.php:81                    MailCollector->collect()
2018-09-10 21:53:44 [2@glpidev]
  *** PHP Notice(8): Unknown: Can not authenticate to IMAP server: [AUTHENTICATIONFAILED] Invalid credentials (Failure) (errflg=2)
  Backtrace :
  :
2018-09-10 21:53:44 [2@glpidev]
  *** PHP Notice(8): Unknown: [AUTHENTICATIONFAILED] Invalid credentials (Failure) (errflg=1)
  Backtrace :
  :
2018-09-10 21:53:44 [2@glpidev]
  *** PHP Notice(8): Unknown: Too many login failures (errflg=2)
  Backtrace :
  :


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

#10 2018-09-11 15:59:33

aprieto
Member
Registered: 2013-08-06
Posts: 11

Re: Problem With Receiver and GMAIL

KKAdmin wrote:

oh sorry my mistake mail-debug.log mail* are for smtp the sending mail.

Did you check your local firewall or network firewall to allow this service ?

You can try the optional mailbox inbox. Type there "INBOX" (or the folder name of your inbox)

I got this, of course to real mailbox only fun name and password

root@glpidev:/var/www/glpi/files/_log# cat php-errors.log
2018-09-10 21:53:42 [2@glpidev]
  *** PHP Warning(2): imap_open(): Couldn't open stream {imap.gmail.com:993/imap/ssl/validate-cert/notls}
  Backtrace :
  :
  inc/mailcollector.class.php:1109                   imap_open()
  inc/mailcollector.class.php:519                    MailCollector->connect()
  front/mailcollector.form.php:81                    MailCollector->collect()
2018-09-10 21:53:44 [2@glpidev]
  *** PHP Warning(2): imap_open(): Couldn't open stream {imap.gmail.com:993/imap/ssl/validate-cert/notls}
  Backtrace :
  :
  inc/mailcollector.class.php:1109                   imap_open()
  inc/mailcollector.class.php:519                    MailCollector->connect()
  front/mailcollector.form.php:81                    MailCollector->collect()
2018-09-10 21:53:44 [2@glpidev]
  *** PHP Notice(8): Unknown: Can not authenticate to IMAP server: [AUTHENTICATIONFAILED] Invalid credentials (Failure) (errflg=2)
  Backtrace :
  :
2018-09-10 21:53:44 [2@glpidev]
  *** PHP Notice(8): Unknown: [AUTHENTICATIONFAILED] Invalid credentials (Failure) (errflg=1)
  Backtrace :
  :
2018-09-10 21:53:44 [2@glpidev]
  *** PHP Notice(8): Unknown: Too many login failures (errflg=2)
  Backtrace :
  :


I try with that change and get this:

[2018-09-11 13:57:11] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in /var/www/html/soporte/inc/toolbox.class.php line 657
  *** PHP Warning(2): imap_open(): Couldn't open stream {imap.gmail.com:993/imap/ssl/validate-cert/notls}INBOX
  Backtrace :
  :                                                 
  inc/mailcollector.class.php:1107                   imap_open()
  inc/mailcollector.class.php:515                    MailCollector->connect()
  front/mailcollector.form.php:77                    MailCollector->collect()
  {"user":"2@rigel.gtssa.co","mem_usage":"0.720\", 3.43Mio)"}

I dont know why I cant get PHP Notice logs that you have, It would be very usefull. I run this test in debug mode

Offline

#11 2018-09-11 16:40:37

aprieto
Member
Registered: 2013-08-06
Posts: 11

Re: Problem With Receiver and GMAIL

I toke a packet capture in order to be sure about my firewall rules and I notice the following:

- My rules work, I can see packets from Gmail to my Glpi Server.

- The last packet before reset  packet is mark as "encryted Alert"

Do It make sense for you?

Offline

#12 2018-09-11 22:05:29

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

Re: Problem With Receiver and GMAIL

Can you tell us your os version ?
And your GLPI setup (you can find it in Setup > General menu, System tab) :

I don't know the snapshot from my dev system with running gmail config. I will make new config the next 10 days and will post the result here. If it work in my case.
at the moment I cannot help you with this encryted alert


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

#13 2018-09-17 18:12:54

aprieto
Member
Registered: 2013-08-06
Posts: 11

Re: Problem With Receiver and GMAIL

KKAdmin wrote:

Can you tell us your os version ?
And your GLPI setup (you can find it in Setup > General menu, System tab) :

I don't know the snapshot from my dev system with running gmail config. I will make new config the next 10 days and will post the result here. If it work in my case.
at the moment I cannot help you with this encryted alert

Hi,

Those are my parameters:

Operating system: Linux rigel.gtssa.co 3.10.0-693.2.2.el7.x86_64 #1 SMP Tue Sep 12 22:26:13 UTC 2017 x86_64
PHP 5.6.31 apache2handler (Core, PDO, Phar, Reflection, SPL, SQLite, SimpleXML, Zend OPcache, apache2handler, apc, apcu, bz2,
    calendar, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, igbinary, imap, json, ldap,
    libxml, mbstring, mcrypt, memcache, memcached, mhash, mongo, msgpack, mysql, mysqli, mysqlnd, openssl, pcre, pdo_mysql,
    pdo_pgsql, pdo_sqlite, pgsql, posix, session, shmop, sockets, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx,
    xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib)
Setup: max_execution_time="30" memory_limit="128M" post_max_size="8M" safe_mode="" session.save_handler="files"
    upload_max_filesize="2M"
Software: Apache/2.4.6 (CentOS) PHP/5.6.31 ()
    Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0
Server Software: MariaDB Server, wsrep_25.23.rc3fc46e
    Server Version: 10.0.36-MariaDB-wsrep
    Server SQL Mode:

Thanks a lot,

Offline

#14 2018-09-17 20:17:13

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

Re: Problem With Receiver and GMAIL

GPLPI Version missing wink


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

#15 2018-09-17 21:15:18

aprieto
Member
Registered: 2013-08-06
Posts: 11

Re: Problem With Receiver and GMAIL

KKAdmin wrote:

GPLPI Version missing wink


Today I uploaded to 9.3.1 but the problem still occur.

Offline

#16 2018-09-24 18:31:27

aprieto
Member
Registered: 2013-08-06
Posts: 11

Re: Problem With Receiver and GMAIL

KKAdmin wrote:

Can you tell us your os version ?
And your GLPI setup (you can find it in Setup > General menu, System tab) :

I don't know the snapshot from my dev system with running gmail config. I will make new config the next 10 days and will post the result here. If it work in my case.
at the moment I cannot help you with this encryted alert


Hi,

Do you have any update?

Thanks a lot,

Offline

#17 2021-07-13 11:43:28

ntfl
Member
Registered: 2021-07-13
Posts: 2

Re: Problem With Receiver and GMAIL

Добрый день, похожая проблема, подскажите где хранятся логи и что может быть не так

Good afternoon, a similar problem, tell me where the logs are stored and what might be wrong

Тест BBcode

Last edited by ntfl (2021-07-13 11:49:35)

Offline

#18 2021-08-11 12:10:15

gonevid
Member
Registered: 2021-08-11
Posts: 1

Re: Problem With Receiver and GMAIL

When mail is delivered over the internet, the sender receives confirmation only from the very first "hop" in the delivery. If there is a problem with a subsequent server, you are only notified after a long period of retries, and even then only in certain situations.

So with respect to GMail, unless you are doing a straight GMail to GMail send, deliver may have failed at dozens of intervening servers with no notice to you at all.

Offline

Board footer

Powered by FluxBB