SI: TLS Authentication in SMTP for Exchange

Description

in the SMTP settings there is no way to send TLS authentication for DNN to send email through exchange and other services that require TLS (Such as Amazons AWS) The workaround online is to setup IIS as an SMTP relay with no authentication required and accept mail only from the IP of the DNN server. It would be much simpler for clients if DNN could send the TLS when Exchange requests it.

QA Test Plan

None

Activity

Show:

Ken Grierson October 16, 2015 at 7:06 PM

Tested on Outlook.com as have no Office365.com account.
If HOST email in Host > Host Settings > Basic Settings > Host Details > Host Email is still host@change.me email will flow.
You will get a Delivery Status Notification (Failure)‏ in Outlook.com for the host@change.me
If you change host@change.me to a real Outlook.com email address then everything just works, without throwing any errors

Shaun Walker October 14, 2015 at 12:02 AM

Thank you very much Ben and Charles!! This enhancement will make SMTP configuration much more reliable.

Charles Nurse October 13, 2015 at 10:09 PM

Ben Zhong October 12, 2015 at 2:42 AM

Confirmed with Charles about what need change here:
Basically

If the host user specifies an SMTP UserName in the SMTP settings we should use that email address instead of the Host user’s email address for the Sender email.

For example in Mail.SendMail, if the senderAddress is the email address of the Host user then switch it Host.SMTPUserName if different.

For the second comment

Change the call

var emailMessage = new MailMessage(fromAddress, toAddress) { Sender = new MailAddress(senderAddress) };

to

var emailMessage = new MailMessage(fromAddress, toAddress) { Sender = new MailAddress(senderAddress, Host.HostTitle) };

Shaun Walker September 29, 2015 at 8:19 PM

I would also suggest that the system uses the Host Title field value as the default Display Name when sending email. Currently it is blank which results in these emails often being rejected as spam. This would not require the addition of any additional fields in the DB or UI, so that code changes would be minimal.

new MailAddress("SMTP Username", "Host Title");

( note that for Portal SMTP, you would want to use the Portal Name rather than Host Title ).

Complete

Details

Assignee

Reporter

Story Size

Triage

Includes Code Fix

No

Documentation Required

Trouble Ticket

Story Points

Components

Sprint

Fix versions

Affects versions

Priority

Created October 18, 2013 at 5:36 PM
Updated September 27, 2016 at 7:50 PM
Resolved October 13, 2015 at 10:09 PM