Cannot connect to SMTP host for notifications
-
I'm trying to setup Notifications in the Advanced settings, but logging shows the SMTP server cannot be contacted.
This is with a iCloud account as well as a Outlook.com accounts.Messages in the logs are as follows:
php-fpm[250]: /system_advanced_notifications.php: Could not send the message to address@me.com – Error: could not connect to the host "smtp.mail.me.com": ??
php-fpm[249]: /system_advanced_notifications.php: Could not send the message to address@me.com – Error: could not connect to the host "smtp-mail.outlook.com": ??
Both SMTP settings use port 587 and SSL/TLS. Using STARTTLS didn't matter.
Outbound NAT is the default settings. Never touched those.
Interface Source Source Port Destination Destination Port NAT Address NAT Port Static Port Description
WAN 127.0.0.0/8 * * * WAN address * NO Auto created rule - localhost to WANAnyone got an idea what I'm missing here?
Don't need it for anything special other then for version upgrades mainly, but would be nice to have it working. -
Some mail servers (Microsoft-related mostly it seems) need authentication mechanism "LOGIN" rather than "PLAIN".
PLAIN is hard-coded currently. I made a change to also support LOGIN with these 2 commits:
https://github.com/pfsense/pfsense/commit/c4249322d922901862719cc2e4c269351ed2c82c
https://github.com/pfsense/pfsense/commit/305856e8fb19495e0543e0d74216117aac1d4bd8Although they show 4 Jan 2015 (when I submitted them) I don't think they were actually committed until after 2.2-RELEASE.
You could try applying those changes, then select authentication mechanism "LOGIN" from the Notifications tab - maybe you will get some joy?
-
I will give these a go later today or tonight.
Thanks for the links. I will report back here on the results for both SMTP servers.
-
@weust:
I will give these a go later today or tonight.
Thanks for the links. I will report back here on the results for both SMTP servers.
Did you get this working?