Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

email setup fail test using 69 char lenght pass #3883

Closed
jmpolvera opened this issue Apr 19, 2018 · 2 comments
Closed

email setup fail test using 69 char lenght pass #3883

jmpolvera opened this issue Apr 19, 2018 · 2 comments

Comments

@jmpolvera
Copy link

jmpolvera commented Apr 19, 2018

  • Steps to reproduce (which actions have you made) :
    Environment:
    GLPI 9.2.2
    Filling out the email settigns and click in send Test: Setup -> Notifications ->Email followups configuration
    I am using standard API login and API pass provided by Sendgrid email service:
    Example of API passwor not working: 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
    Example of API login: rzA4aZ2s4XmUwK1TvzdyUQ

When I click in "Send a test email to the administrator" GLPI display's an error message and is not sending emails.
I realized that using API Key and API password from sendgrid the email test fails
but using plain login credentials from sendgrid email service email works fine.

I suppose that GLPI is not supporting the password lenght of 69 characters of Sendgrid APIs

  • Expected result :
    Support for 69 characters password lenght
    Example of API passwor not working: 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
    Example of API login: rzA4aZ2s4XmUwK1TvzdyUJ

I expect a send email test successful

  • Actual result :
    Email not send

Authentication error log in mail-debug.log
2 - SERVER -> CLIENT: 535 Authentication failed: Bad username / password
2018-04-18 23:46:18 [6@ip-172-XX-XX-XX]
1 - SMTP ERROR: Password command failed: 535 Authentication failed: Bad username / password
2018-04-18 23:46:18 [6@ip-172-XX-XX-XX]
3 - SMTP Error: Could not authenticate.2018-04-18 23:46:18 [6@ip-172-XX-XX-XX]
1 - CLIENT -> SERVER: QUIT

  • URL of the page :
    .../front/notificationmailingsetting.form.php

  • Your GLPI setup (you can find it in Setup > General menu, System tab) :
    [code]
    GLPI 9.2.2-git-aff731b-aff731b ( => /var/www/glpi)
    Installation mode: GIT


Operating system: Linux ip-172-XX-XX-XX 4.4.0-1054-aws #63-Ubuntu SMP Wed Mar 28 19:42:42 UTC 2018 x86_64
PHP 7.0.28-0ubuntu0.16.04.1 apache2handler (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, apcu,
calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, imap, intl, json, ldap,
libxml, mbstring, mcrypt, memcache, mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_sqlite, posix, pspell, readline, recode,
session, shmop, sockets, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter,
xsl, zip, zlib)
Setup: max_execution_time="600" memory_limit="128M" post_max_size="18M" safe_mode="" session.save_handler="files"
upload_max_filesize="20M"
Software: Apache ()
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
Server Software: (Ubuntu)
Server Version: 5.7.21-0ubuntu0.16.04.1
Server SQL Mode:
Parameters: glpiuser@localhost/glpidb
Host info: Localhost via UNIX socket

mysqli extension is installed
ctype extension is installed
fileinfo extension is installed
json extension is installed
mbstring extension is installed
zlib extension is installed
curl extension is installed
gd extension is installed
simplexml extension is installed
xml extension is installed
ldap extension is installed
imap extension is installed
Zend OPcache extension is installed
APCu extension is installed
xmlrpc extension is installed
OK/var/www/glpi/config : OK
OK/var/www/glpi/files : OK
OK/var/www/glpi/files/_dumps : OK
OK/var/www/glpi/files/_sessions : OK
OK/var/www/glpi/files/_cron : OK
OK/var/www/glpi/files/_graphs : OK
OK/var/www/glpi/files/_lock : OK
OK/var/www/glpi/files/_plugins : OK
OK/var/www/glpi/files/_tmp : OK
OK/var/www/glpi/files/_cache : OK
OK/var/www/glpi/files/_rss : OK
OK/var/www/glpi/files/_uploads : OK
OK/var/www/glpi/files/_pictures : OK
OK/var/www/glpi/files/_log : OK
Web access to files directory is protectedWeb access to files directory is protected : OK

Libraries:
htmLawed version 1.2.4 in (/var/www/glpi/lib/htmlawed)
phpCas version 1.3.5 in (/var/www/glpi/vendor/jasig/phpcas/source)
PHPMailer version 5.2.26 in (/var/www/glpi/vendor/phpmailer/phpmailer)
SimplePie version 1.5.1 in (/var/www/glpi/vendor/simplepie/simplepie/library)
TCPDF version 6.2.17 in (/var/www/glpi/vendor/tecnickcom/tcpdf)
michelf/php-markdown in (/var/www/glpi/vendor/michelf/php-markdown/Michelf)
true/punycode in (/var/www/glpi/vendor/true/punycode/src)
iacaml/autolink in (/var/www/glpi/vendor/iamcal/lib_autolink)
sabre/vobject in (/var/www/glpi/vendor/sabre/vobject/lib)

@trasher
Copy link
Contributor

trasher commented Apr 19, 2018

I suppose that GLPI is not supporting the password lenght of 69 characters of Sendgrid APIs

Do not agree. The password you give is properly stored as smtp_passwd in configuration; so it sounds like it work.
I wonder f this really GLPI related.

@jmpolvera
Copy link
Author

jmpolvera commented Apr 20, 2018

You are right.
I double checked with Sendgrid support and the solution was a change in the login name. The password of 69 chars passed the email test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants