Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET SMTP

 AfterLogic Forum : MailBee.NET SMTP
Subject Topic: How to request SSL/TLS multi-thread mode Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Alex Shloma
Newbie
Newbie


Joined: 22 August 2014
Online Status: Offline
Posts: 22
Posted: 28 August 2015 at 3:31am | IP Logged Quote Alex Shloma

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 View Alex Shloma's Profile Search for other posts by Alex Shloma
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 28 August 2015 at 5:14am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 28 August 2015 at 6:21am | IP Logged Quote Alex

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 View Alex's Profile Search for other posts by Alex
 
Alex Shloma
Newbie
Newbie


Joined: 22 August 2014
Online Status: Offline
Posts: 22
Posted: 02 September 2015 at 8:06am | IP Logged Quote Alex Shloma

Downloaded installer of 9.0.4.472 from here.

No EnableStartTls property found.
Back to Top View Alex Shloma's Profile Search for other posts by Alex Shloma
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 02 September 2015 at 8:07am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
Alex Shloma
Newbie
Newbie


Joined: 22 August 2014
Online Status: Offline
Posts: 22
Posted: 02 September 2015 at 8:11am | IP Logged Quote Alex Shloma

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 View Alex Shloma's Profile Search for other posts by Alex Shloma
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 02 September 2015 at 8:14am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
mlts
Newbie
Newbie


Joined: 12 November 2014
Online Status: Offline
Posts: 15
Posted: 18 January 2016 at 4:53am | IP Logged Quote mlts

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 View mlts's Profile Search for other posts by mlts
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 18 January 2016 at 6:56am | IP Logged Quote Alex

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 View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide