You are not logged in.
Pages: 1
I've been trying to setup a receiver from an email address on my server and I just couldn't get it to work.
So I also tried to get a gmail email address to work as a receiver, and that doesn't work either.
I've check everything I can think of. I have no idea what it can be.
Perhaps I'm miss understanding what a "receiver" is, I'm guessing when the email address I give gets an email, then a ticket is automatically created. When I send an email to the given address I should get a ticket,
I've tried all sorts of combinations of things and nothing works.
Is there some other configuration I need to do elsewhere to get this to work?
I've seen something called "fusioninventory" I haven't installed that do I need that for this to work?
I'm guessing I don't need to add anything to the firewall, or do I?
Name (Email address): Contact@address.com
Connection errors 1
Active: Yes
Server: imap.strato.de
Connection options
Incoming mail folder (optional, often INBOX): INBOX
Port (optional): 993
Connection string {imap.strato.de:993/imap}INBOX
Login: Contact@address.com
Use Kerberos authentication: No
Accepted mail archive folder (optional): <blank>
Refused mail archive folder (optional): <blank>
Maximum size of each file imported by the mails receiver: 5
Use mail date, instead of collect one: yes
Use Reply-To as requester (when available): no
Name (Email address): my test email@gmail.com
Active: Yes
Server: imap.gmail.com
Connection options imap SSL no-tls no-validate-cert DEBUG
Incoming mail folder (optional, often INBOX): INBOX
Port (optional): 993
Connection string {imap.gamil.com:993/imap/ssl/novalidate-cert/notls/debug}INBOX
Login: my test email@gmail.com
Use Kerberos authentication No
Accepted mail archive folder (optional): <blank>
Refused mail archive folder (optional): <blank>
Maximum size of each file imported by the mails receiver: 5
Use mail date, instead of collect one: Yes
Use Reply-To as requester (when available): No
Offline
It just doesn't work.
Whatever I set the configuration to it will not detect when I receive an email and want a ticket to be created.
And the error message doesn't help, it just tells me there is an error without any clue as to what to look at. It could be anything.
Offline
Try to use port 995.
Try to make crontab file in terminal if you use linux. (directories change to your installation dir)
crontab -e:
* * * * * /usr/bin/php /var/www/html/front/cron.php &>/dev/null
00 * * * * /etc/scripts/glpi_user_sync.sh &>/dev/null
Offline
Try to use port 995.
Try to make crontab file in terminal if you use linux. (directories change to your installation dir)crontab -e:
* * * * * /usr/bin/php /var/www/html/front/cron.php &>/dev/null
00 * * * * /etc/scripts/glpi_user_sync.sh &>/dev/null
What is the content of "/etc/scripts/glpi_user_sync.sh" ?
Offline
In 9.5.1, there is a bug related to unknown certificate. The "no-validate-cert" is not taken into account.
There is a fix (not easy) in github or you could wait for 9.5.2 release.
Offline
I also couldn't make it work.
About Server
GLPI 9.5.1 ( => /path/public_html)
Installation mode: TARBALL
Server
Operating system: Linux domain.ro 4.4.0-186-generic #216-Ubuntu SMP Wed Jul 1 05:34:05 UTC 2020 x86_64
PHP 7.4.9 cgi-fcgi (Core, FFI, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apc, apcu, bz2, calendar, cgi-fcgi, ctype,
curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, imap, intl, json, ldap, libxml, mbstring,
mcrypt, mysqli, mysqlnd, openssl, pcntl, pcre, pdo_mysql, posix, readline, session, shmop, sockets, sodium, standard, sysvmsg,
sysvsem, sysvshm, tokenizer, 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 (Apache Server at testglpi.hqsolutions.ro Port 80)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0
Server Software: (Ubuntu)
Server Version: 5.7.31-0ubuntu0.16.04.1
Server SQL Mode:
Parameters: name@samedomain.ro@localhost/testglpi
Host info: Localhost via UNIX socket
PHP version is at least 7.2.0 - Perfect!PHP version is at least 7.2.0 - Perfect!
Sessions support is available - Perfect!Sessions support is available - Perfect!
Allocated memory > 64 Mio - Perfect!Allocated memory > 64 Mio - Perfect!
mysqli extension is installedmysqli extension is installed
ctype extension is installedctype extension is installed
fileinfo extension is installedfileinfo extension is installed
json extension is installedjson extension is installed
mbstring extension is installedmbstring extension is installed
iconv extension is installediconv extension is installed
zlib extension is installedzlib extension is installed
curl extension is installedcurl extension is installed
gd extension is installedgd extension is installed
simplexml extension is installedsimplexml extension is installed
intl extension is installedintl extension is installed
ldap extension is installedldap extension is installed
apcu extension is installedapcu extension is installed
Zend OPcache extension is installedZend OPcache extension is installed
xmlrpc extension is installedxmlrpc extension is installed
CAS extension is installedCAS extension is installed
exif extension is installedexif extension is installed
zip extension is installedzip extension is installed
bz2 extension is installedbz2 extension is installed
sodium extension is installedsodium extension is installed
Database version seems correct (5.7.31) - Perfect!Database version seems correct (5.7.31) - Perfect!
Timezones seems not loaded, see [http](:)'/'/glpi-install.readthedocs.io/en/latest/timezones.html.Timezones seems not loaded, see [http](:)'/'/glpi-install.readthedocs.io/en/latest/timezones.html.
The log file has been created successfully.The log file has been created successfully.
Write access to /path/public_html/config has been validated.Write access to /path/public_html/config has been validated.
Write access to /path/public_html/files has been validated.Write access to /path/public_html/files has been validated.
Write access to /path/public_html/files/_dumps has been validated.Write access to /path/public_html/files/_dumps has been validated.
Write access to /path/public_html/files/_sessions has been validated.Write access to /path/public_html/files/_sessions has been validated.
Write access to /path/public_html/files/_cron has been validated.Write access to /path/public_html/files/_cron has been validated.
Write access to /path/public_html/files/_graphs has been validated.Write access to /path/public_html/files/_graphs has been validated.
Write access to /path/public_html/files/_lock has been validated.Write access to /path/public_html/files/_lock has been validated.
Write access to /path/public_html/files/_plugins has been validated.Write access to /path/public_html/files/_plugins has been validated.
Write access to /path/public_html/files/_tmp has been validated.Write access to /path/public_html/files/_tmp has been validated.
Write access to /path/public_html/files/_cache has been validated.Write access to /path/public_html/files/_cache has been validated.
Write access to /path/public_html/files/_rss has been validated.Write access to /path/public_html/files/_rss has been validated.
Write access to /path/public_html/files/_uploads has been validated.Write access to /path/public_html/files/_uploads has been validated.
Write access to /path/public_html/files/_pictures has been validated.Write access to /path/public_html/files/_pictures has been validated.
Write access to /path/public_html/marketplace has been validated.Write access to /path/public_html/marketplace has been validated.
Web access to the files directory should not be allowed but this cannot be checked automatically on this instance. Make sure access to error log file (/files/_log/php-errors.log) is forbidden; otherwise review .htaccess file and web server configuration.Web access to the files directory should not be allowed but this cannot be checked automatically on this instance.
Make sure access to error log file (/files/_log/php-errors.log) is forbidden; otherwise review .htaccess file and web server configuration.
GLPI constants
GLPI_ROOT: /path/public_html
GLPI_CONFIG_DIR: /path/public_html/config
GLPI_VAR_DIR: /path/public_html/files
GLPI_MARKETPLACE_DIR: /path/public_html/marketplace
GLPI_USE_CSRF_CHECK: 1
GLPI_CSRF_EXPIRES: 7200
GLPI_CSRF_MAX_TOKENS: 100
GLPI_TELEMETRY_URI: [http](:)'/'/telemetry.glpi-project.org
GLPI_INSTALL_MODE: TARBALL
GLPI_NETWORK_MAIL: glpi@teclib.com
GLPI_NETWORK_SERVICES: [http](:)'/'/services.glpi-network.com
GLPI_MARKETPLACE_PRERELEASES:
GLPI_USER_AGENT_EXTRA_COMMENTS:
GLPI_AJAX_DASHBOARD: 1
GLPI_CALDAV_IMPORT_STATE: 0
GLPI_DEMO_MODE: 0
GLPI_FORCE_EMPTY_SQL_MODE: 1
GLPI_DOC_DIR: /path/public_html/files
GLPI_CACHE_DIR: /path/public_html/files/_cache
GLPI_CRON_DIR: /path/public_html/files/_cron
GLPI_DUMP_DIR: /path/public_html/files/_dumps
GLPI_GRAPH_DIR: /path/public_html/files/_graphs
GLPI_LOCAL_I18N_DIR: /path/public_html/files/_locales
GLPI_LOCK_DIR: /path/public_html/files/_lock
GLPI_LOG_DIR: /path/public_html/files/_log
GLPI_PICTURE_DIR: /path/public_html/files/_pictures
GLPI_PLUGIN_DOC_DIR: /path/public_html/files/_plugins
GLPI_RSS_DIR: /path/public_html/files/_rss
GLPI_SESSION_DIR: /path/public_html/files/_sessions
GLPI_TMP_DIR: /path/public_html/files/_tmp
GLPI_UPLOAD_DIR: /path/public_html/files/_uploads
GLPI_NETWORK_REGISTRATION_API_URL: [http](:)'/'/services.glpi-network.com/api/registration/
GLPI_MARKETPLACE_PLUGINS_API_URI: [http](:)'/'/services.glpi-network.com/api/glpi-plugins/
GLPI_I18N_DIR: /path/public_html/locales
GLPI_VERSION: 9.5.1
GLPI_SCHEMA_VERSION: 9.5.0
GLPI_MIN_PHP: 7.2.0
GLPI_YEAR: 2020
Libraries
htmlawed/htmlawed version 1.2.5 in (/path/public_html/vendor/htmlawed/htmlawed)
phpmailer/phpmailer version 6.1.6 in (/path/public_html/vendor/phpmailer/phpmailer/src)
simplepie/simplepie version 1.5.5 in (/path/public_html/vendor/simplepie/simplepie/library)
tecnickcom/tcpdf version 6.3.5 in (/path/public_html/vendor/tecnickcom/tcpdf)
michelf/php-markdown in (/path/public_html/vendor/michelf/php-markdown/Michelf)
true/punycode in (/path/public_html/vendor/true/punycode/src)
iamcal/lib_autolink in (/path/public_html/vendor/iamcal/lib_autolink)
sabre/dav in (/path/public_html/vendor/sabre/dav/lib/DAV)
sabre/http in (/path/public_html/vendor/sabre/http/lib)
sabre/uri in (/path/public_html/vendor/sabre/uri/lib)
sabre/vobject in (/path/public_html/vendor/sabre/vobject/lib)
laminas/laminas-cache in (/path/public_html/vendor/laminas/laminas-cache/src)
laminas/laminas-i18n in (/path/public_html/vendor/laminas/laminas-i18n/src)
laminas/laminas-serializer in (/path/public_html/vendor/laminas/laminas-serializer/src)
monolog/monolog in (/path/public_html/vendor/monolog/monolog/src/Monolog)
sebastian/diff in (/path/public_html/vendor/sebastian/diff/src)
elvanto/litemoji in (/path/public_html/vendor/elvanto/litemoji/src)
symfony/console in (/path/public_html/vendor/symfony/console)
scssphp/scssphp in (/path/public_html/vendor/scssphp/scssphp/src)
laminas/laminas-mail in (/path/public_html/vendor/laminas/laminas-mail/src/Protocol)
laminas/laminas-mime in (/path/public_html/vendor/laminas/laminas-mime/src)
rlanvin/php-rrule in (/path/public_html/vendor/rlanvin/php-rrule/src)
blueimp/jquery-file-upload in (/path/public_html/vendor/blueimp/jquery-file-upload/server/php)
ramsey/uuid in (/path/public_html/vendor/ramsey/uuid/src)
psr/log in (/path/public_html/vendor/psr/log/Psr/Log)
psr/simple-cache in (/path/public_html/vendor/psr/simple-cache/src)
mexitek/phpcolors in (/path/public_html/vendor/mexitek/phpcolors/src/Mexitek/PHPColors)
guzzlehttp/guzzle in (/path/public_html/vendor/guzzlehttp/guzzle/src)
wapmorgan/unified-archive in (/path/public_html/vendor/wapmorgan/unified-archive/src)
paragonie/sodium_compat in (/path/public_html/vendor/paragonie/sodium_compat/src)
phpCas version 1.3.3 in (/usr/share/php)
SQL replicas
Not active
Notifications
Way of sending emails: PHP
Mails receivers
Mail server & GLPI are on the same machine.
Name: 'name@gmail.com' Active: Yes
Server: '{imap.gmail.com:993/imap/ssl/validate-cert/notls/norsh/secure/debug}INBOX' Login: 'name@gmail.com'
Password: Yes
Name: 'name@samedomain.ro' Active: Yes
Server: '{localhost:993/imap/ssl/notls/debug}' Login: 'name@samedomain.ro' Password: Yes
Name: 'name2@gmail.com' Active: Yes
Server: '{imap.gmail.com:993/imap/ssl/validate-cert/notls/norsh/secure/debug}INBOX' Login: 'name2@gmail.com' Password:
Yes
Plugins list
barcode Name: Barcode Version: 2.5.0 State: Enabled
datainjection Name: Data injection Version: 2.8.0 State: Enabled
databases Name: Databases Version: 2.3.0 State: Enabled
uninstall Name: Item's Lifecycle (uninstall) Version: 2.7.0 State: Enabled
treeview Name: Tree view Version: 1.9.0 State: Enabled
typology Name: Typologies Version: 3.0.0 State: Enabled
useditemsexport Name: Used items export Version: 2.4.0 State: Enabled
With the same information, from Thunderbird works. Also works getting email from PowerShell.
From some old documentation I found that TLS field is mandatory:
Source: [http](:)'/'/wiki.glpi-project.org/doku.php?id=fr:config:exchange
The TLS must be filled in TLS or NON-TLS but must not be left blank.
Even so, doesn't work.
{localhost:993/imap/ssl/notls/debug}
[2020-09-09 13:04:20] glpiphplog.ERROR: MailCollector::displayFoldersList() in /path/public_html/inc/mailcollector.class.php line 379
An error occured trying to connect to collector. cannot connect to host ; error = fsockopen(): unable to connect to ssl://localhost:993 (Unknown error) (errno = 0 )
#0 /path/public_html/vendor/laminas/laminas-mail/src/Storage/Imap.php(216): Laminas\Mail\Protocol\Imap->connect()
#1 /path/public_html/inc/toolbox.class.php(2324): Laminas\Mail\Storage\Imap->__construct()
#2 /path/public_html/inc/mailcollector.class.php(1309): Toolbox::getMailServerStorageInstance()
#3 /path/public_html/inc/mailcollector.class.php(373): MailCollector->connect()
#4 /path/public_html/ajax/mailcollector.php(74): MailCollector->displayFoldersList()
#5 {main} {"user":"6@some.server"}
Also testing doesn't work.
GLPI > Setup > Authentication > Mail servers > Test
[2020-09-09 12:39:02] glpiphplog.WARNING: Test logger
[2020-09-09 13:02:13] glpiphplog.DEBUG: Html::compileScss() in /path/public_html/inc/html.class.php line 7394
css/palettes/dark.scss is new, loading {"user":"6@someserver.com"}
[2020-09-09 13:04:20] glpiphplog.ERROR: MailCollector::displayFoldersList() in /path/public_html/inc/mailcollector.class.php line 379
An error occured trying to connect to collector. cannot connect to host ; error = fsockopen(): unable to connect to ssl://localhost:993 (Unknown error) (errno = 0 )
#0 /path/public_html/vendor/laminas/laminas-mail/src/Storage/Imap.php(216): Laminas\Mail\Protocol\Imap->connect()
#1 /path/public_html/inc/toolbox.class.php(2324): Laminas\Mail\Storage\Imap->__construct()
#2 /path/public_html/inc/mailcollector.class.php(1309): Toolbox::getMailServerStorageInstance()
#3 /path/public_html/inc/mailcollector.class.php(373): MailCollector->connect()
#4 /path/public_html/ajax/mailcollector.php(74): MailCollector->displayFoldersList()
#5 {main} {"user":"6@someserver.com"}
Virtualmin Apache Error Log: /var/log/virtualmin/testglpi.hqsolutions.ro_error_log
[Tue Sep 08 16:41:16.600099 2020] [authz_core:error] [pid 63366] [client 89.110.154.170:55165] AH01630: client denied by server configuration: /home/abcsolutions/domains/domain.ro/public_html/files/_log/php-errors.log
[Tue Sep 08 17:43:22.800634 2020] [fcgid:warn] [pid 10918] [client 89.110.154.170:57094] mod_fcgid: read data timeout in 31 seconds, referer: [http](:)'/'/domain.ro/front/mailcollector.form.php?id=1
[Tue Sep 08 17:43:22.800688 2020] [core:error] [pid 10918] [client 89.110.154.170:57094] End of script output before headers: mailcollector.php, referer: [http](:)'/'/domain.ro/front/mailcollector.form.php?id=1
[Tue Sep 08 17:43:30.713677 2020] [fcgid:warn] [pid 4655] [client 89.110.154.170:57099] mod_fcgid: read data timeout in 31 seconds, referer: [http](:)'/'/domain.ro/front/mailcollector.form.php?id=1
[Tue Sep 08 17:43:30.713760 2020] [core:error] [pid 4655] [client 89.110.154.170:57099] End of script output before headers: mailcollector.php, referer: [http](:)'/'/domain.ro/front/mailcollector.form.php?id=1
[Tue Sep 08 17:43:38.468984 2020] [fcgid:warn] [pid 10898] [client 89.110.154.170:57110] mod_fcgid: read data timeout in 31 seconds, referer: [http](:)'/'/domain.ro/front/mailcollector.form.php?id=1
[Tue Sep 08 17:43:38.469050 2020] [core:error] [pid 10898] [client 89.110.154.170:57110] End of script output before headers: mailcollector.php, referer: [http](:)'/'/domain.ro/front/mailcollector.form.php?id=1
[Tue Sep 08 17:43:47.100827 2020] [fcgid:warn] [pid 10903] [client 89.110.154.170:57115] mod_fcgid: read data timeout in 31 seconds, referer: [http](:)'/'/domain.ro/front/mailcollector.form.php?id=1
[Tue Sep 08 17:43:47.101140 2020] [core:error] [pid 10903] [client 89.110.154.170:57115] End of script output before headers: mailcollector.php, referer: [http](:)'/'/domain.ro/front/mailcollector.form.php?id=1
[Wed Sep 09 12:23:43.158604 2020] [core:error] [pid 129198] [client 89.110.154.170:55143] End of script output before headers: locale.php, referer: [http](:)'/'/domain.ro/front/mailcollector.form.php?id=4
[Wed Sep 09 12:23:43.158621 2020] [core:error] [pid 3628] [client 89.110.154.170:55144] End of script output before headers: locale.php, referer: [http](:)'/'/domain.ro/front/mailcollector.form.php?id=4
[Wed Sep 09 12:39:02.267678 2020] [fcgid:warn] [pid 20452] [client 89.110.154.170:62601] mod_fcgid: stderr: PHP Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /usr/share/php/CAS/Autoload.php on line 99, referer: [http](:)'/'/domain.ro/front/config.form.php
The email address is VALID.
Invalid email address
An error occured trying to connect to collector.
cannot connect to host ; error = fsockopen(): unable to connect to domain.ro:993 (Connection timed out) (errno = 0 )
Invalid email address
An error occured trying to connect to collector.
cannot connect to host ; error = fsockopen(): unable to connect to ssl://domain.ro:993 (Connection timed out) (errno = 0 )
Offline
Pages: 1