Email notifications: Support for SMTP with TLS

For Installatron Sales: sales@installatron.com
Post Reply
jas8522
Posts: 61
Joined: Sat Jul 24, 2010 4:25 pm

Email notifications: Support for SMTP with TLS

Post by jas8522 » Thu Sep 10, 2015 12:50 pm

Hey guys,

I'm looking to change the method that Installatron sends emails across all of our servers so that it no longer does through through PHP's mail function but rather via SMTP so that we can be sure all messages from Installatron appear to come from an authorized (SPF) server without having to regularly change the SPF record. The trouble is that our SMTP servers (and any that are actually well configured) do not allow unencrypted connections - StartTLS is required.

It would be great to have the mail function allow for StartTLS functionality whenever Installatron is configured to sending notification messages via SMTP.

Phil
Staff
Posts: 490
Joined: Tue Jun 19, 2007 6:06 am

Re: Email notifications: Support for SMTP with TLS

Post by Phil » Thu Sep 10, 2015 2:25 pm

Hello,

I don't see why this wouldn't be working. Try setting this up at Installatron Admin > Interface > Email, then report back with the output of /var/installatron/logs/mail_log if issues are encountered.

Thank you,
Phil
Phillip Stier
Installatron Co-Founder

jas8522
Posts: 61
Joined: Sat Jul 24, 2010 4:25 pm

Re: Email notifications: Support for SMTP with TLS

Post by jas8522 » Wed Sep 16, 2015 7:01 pm

Thanks Phil!

I configured accordingly then monitored the log when testing an outgoing email (backup notification). Ran the test twice:

2015-09-17T02:01:49+02:00 {EMAIL} "Backup Completed" false
2015-09-17T02:04:44+02:00 {EMAIL} "Backup Completed" false

The mail log on the server it's trying to connect to (which is actually localhost for this particular test, as can be seen with the IPv6 address) simply says:

Sep 16 21:04:44 server postfix/smtpd[3050]: connect from {SERVER HOSTNAME}[::1]
Sep 16 21:04:44 server postfix/smtpd[3050]: disconnect from {SERVER HOSTNAME}[::1]

Are there more details somewhere else other than simply "false" indicating why it failed?

Jordan

Post Reply