feat(core): Support smtps and STARTTLS for SMTP

Support uri schemes for SMTP, enabling STARTTLS and SMTPS for SMTP
connections.

The new format for configuration value SMTPServer supports passing a
URI scheme (either smtp:// or smtps://). To support old configurations,
if no scheme is given, smtp:// is assumed.

Fixes #31
This commit is contained in:
Nicolas Höft
2020-05-10 19:41:36 +02:00
parent 7ef507bdb4
commit 589cfaa2f4
5 changed files with 30 additions and 28 deletions

View File

@@ -26,7 +26,7 @@
//SOGoTrashFolderName = Trash;
//SOGoIMAPServer = "localhost";
//SOGoSieveServer = "sieve://127.0.0.1:4190";
//SOGoSMTPServer = 127.0.0.1;
//SOGoSMTPServer = "smtp://127.0.0.1";
//SOGoMailDomain = acme.com;
//SOGoMailingMechanism = smtp;
//SOGoForceExternalLoginWithEmail = NO;