Author |
|
Alex Shloma Newbie
Joined: 22 August 2014
Online Status: Offline Posts: 22
|
Posted: 28 August 2015 at 3:31am | IP Logged
|
|
|
Hi,
Need help regarding forcing SSL/TLS during message delivery.
Scenario
There are no SMTP servers specified - messages are delivered using MX record lookup (several DNS server are specified). Component is used in multi-thread mode (MaxThreadCount = -1). Messages are sent by adding JOBS.
Task
I need to force SSL/TLS connection.
Thanks,
Alex Shloma
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 28 August 2015 at 5:14am | IP Logged
|
|
|
Hi Alex,
There were no settings which allowed for doing that in direct send mode. However, developers have just updated the DLL and now it provides a way for doing so:
Code:
mailer.DirectSendDefaults.EnableStartTls = true;
..
mailer.Send |
|
|
where mailer is Smtp instance. Note that it will only work if specific SMTP server has SSL/TLS support.
You can download DLL update here. Hope this helps!
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 28 August 2015 at 6:21am | IP Logged
|
|
|
Note that if the specific MX server doesn't support STARTTLS, sending will still work but the communication channel won't be encrypted.
Regards,
Alex
|
Back to Top |
|
|
Alex Shloma Newbie
Joined: 22 August 2014
Online Status: Offline Posts: 22
|
Posted: 02 September 2015 at 8:06am | IP Logged
|
|
|
Downloaded installer of 9.0.4.472 from here.
No EnableStartTls property found.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 02 September 2015 at 8:07am | IP Logged
|
|
|
It's not in the installer, you need to download the latest DLL using the link we posted in the previous message.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
Alex Shloma Newbie
Joined: 22 August 2014
Online Status: Offline Posts: 22
|
Posted: 02 September 2015 at 8:11am | IP Logged
|
|
|
Sorry, have not seen that you provided a link.
A few question about that new version.
Was it fully QAed?
Is it official release?
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 02 September 2015 at 8:14am | IP Logged
|
|
|
It's still a beta version, but it shouldn't have any substantial differences compared to the latest release of the product installer.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
mlts Newbie
Joined: 12 November 2014
Online Status: Offline Posts: 15
|
Posted: 18 January 2016 at 4:53am | IP Logged
|
|
|
Hello,
It's something I've been looking for as well. (secure connection for direct mailing).
Good to see it being implemented :).
I do have a question though. In our case we want to send mails only with SSL/TSL. If mail cannot be send securily we want to cancel sending. Is that possible?
If cancelling is not an option then at least some sort of logging that would tell us after the email is sent about which method was used, so we could log that and prevent sending to domains not supporting secure conetions in the future.
Thanks.
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 18 January 2016 at 6:56am | IP Logged
|
|
|
Hi,
EnableStartTls property is fully supported in v10 (incl. the installer0.
Direct send is complicated because the message can have multiple recipients belonging to different MX servers. If the message is addressed to user1@ssl.com and user2@nossl.com, the message will be partially delivered in this case. But if you send to a single recipient only, this makes things easier. For instance, you can subscribe to MessageRecipientSubmitted event and check Smtp.IsSslConnection there. If it's false, you can claim the error and abort connection (so that message body will never go through).
Regards,
Alex
|
Back to Top |
|
|