You are not logged in.
Pages: 1
First of all sorry by my english.
My version of the GLPI is the 0.72.1 and i try to use the notification function (Setup - Notifications - Setup) for send emails.
I use a local SMTP server (PostCast Server) installed on the same server of GLPI (Win2003 environment with XAMPP).
My configuration:
Use Email Follow-ups Yes
Administrator Email myadmin@xxxx.yyy
Administrator reply-to Email (if needed) myadmin@xxxx.yyy
Email Signature IT
Add a link to GLPI in emails Yes
Base URL used http://www.it.xxxx.yyy
Recalls Alarms on cartridges Never
Recalls Alarms on consumables Never
Alarms on expired licenses No
Use a SMTP server to send emails SMTP
SMTP Host MyIP
SMTP Login (optional) helpdesk@xxxx.yyy
SMTP Password (optional) xxxx
When i try the button "Test to send a email to the administrator" the GLPI always return the message "Failed to send email to administrator".
My SMTP server works fine (another application usually sent emails through it).
Where am I missing?
Offline
See your mail serveur log ?
+
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
Thanks for your attention. This is an excellent software.
The log does not show anything. I used the debug mode and no error message was displayed.
I have another application in PHP that sends e-mails normally, is possible that the error was caused by some setting in php.ini ?
My setup is correct?
Offline
You're using authentication for SMTP right?
My first step would be to use another app to send a testmail, directly to port 25 of MyIp and check that that username/pass can send emails (I know.. but start at the beginning... the PHP implementation of sending emails been around a long time.. so unlikely to be a programming bug).
Once you know 100% that that works the next step would be to try - if possible - turning off authentication on the server.
The SMTP server must surely have some logs?
Another thing you can try, is running wireshark on the server, and listen in on that IP/port and watch to see what happens within the SMTP protocol.
GLPI 0.83.91/CENTOS5 - OCS 1.01/Win2003
Offline
GLPI 0.83.91/CENTOS5 - OCS 1.01/Win2003
Offline
Thanks for the assistence.
The problem was solved.
I try explain with my poor english: the name of the SMTP server in php.ini must be exactly the same name of PostCast server.
The name of my PostCast server was the same name of the machine and the name of SMTP server in php.ini was "localhost".
I change the names and everything works fine now.
Offline
if you have successfully tested doing "SMTP test", please make sure the username and password is blank
Offline
Pages: 1