Notification: cannot connect SMTP-Host
-
Hi,
i want to use the notification feature but after configuring the SMTP settings, i am not able to sent a test notification. I get this error message in the system log:
php-fpm[22385]: /system_advanced_notifications.php: Could not send the message to support@mydomain.com -- Error: could not connect to the host "mail.mydomain.com": ??
But i can ping this hostname from within the pfSense.
I use Port 587 like i do in all other mail clients. Tried other security settings, but they did not works as well.
Is the notification thing working for someone?
-
Try ticking 'Enable STARTTLS' in your SMTP settings. What happens then?
-
You don't test mailservers with ping.
-
test a mailserver from pfSEnse.
SSH into pfSense first - and then:telnet mail.mydomain.com 25
or
telnet mail.mydomain.com 587
Be nice and talk to it.
Note that many ISP block the '25' port to any destination EXCEPT their own mail servers.
-
An example of telnetting into a mailserver with different codes that might be shown by some mailservers, could also be tried from a lan side machine
https://technet.microsoft.com/en-us/library/aa995718%28v=exchg.65%29.aspx
https://www.port25.com/how-to-check-an-smtp-connection-with-a-manual-telnet-session-2/As its likely going to be coming from pfsense itself, you might need to create/allow a rule from ThisFirewall to your email server destination on which ever interface your mail server resides on. I only say this because you can see some things like DNS lookups in the fw logs and these are allowed by default, but mail server comms may possibly not be enabled/allowed by default on some/all interfaces from the firewall.