?
avatar andrepereiradasilva
andrepereiradasilva
18 Apr 2015

I think the SMTP protocol configuration in a little confusing.

For what i understand, it says:

  • "SSL" for SMTPS (SMTP with SSL or TLS protocol)
  • "TLS" for SMTP with StartTLS

So maybe they should be:
COM_CONFIG_FIELD_VALUE_SSL = "SSL/TLS"
and
COM_CONFIG_FIELD_VALUE_TLS = "StartTLS"

Like, for instance, the e-mail account configuration in Mozilla Thunderbird: None; StartTLS; SSL/TLS

avatar andrepereiradasilva andrepereiradasilva - open - 18 Apr 2015
avatar brianteeman
brianteeman - comment - 22 Apr 2015

Would need to check the code to see what we are doing but this is a useful reference document explaining the different protocols available and the common naming problem

https://www.fastmail.com/help/technical/ssltlsstarttls.html


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6798.

avatar andrepereiradasilva
andrepereiradasilva - comment - 23 Apr 2015

Yes, that exacly the problem i described.

For instance having an SMTP mail server with:

  • port 25: SMTP + StartTLS Extension) + Auth
  • port 465: SMTPS + Auth
  • port 587: SMTP + StartTLS Extension + Auth

And only supporting TLS 1.0+ protocols. No SSL protocol support.

When configuring joomla:

  • port 25 or 587 works on Joomla "TLS" option, so i think is really SMTP+StartTLS (SMTP + StartTLS extension)
  • port 465 works on Joomla "SSL" option, so i think is really SMTPS (SMTP over SSL/TLS)

For joomla user configuration pourposes the security protocol (SSL or TLS) implemented by the SMTP mail server is not relevant. Presuming every thing else is ok, if the user server supports the same security protocol and ciphers of the smtp mail server it will be ok.
For that pourpose, is more relevant if it uses SMTP or SMTP+StartTLS or SMTPS and in witch port.

More info:

Also i think Joomla uses PHPMailer class with this code
See https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/mail/mail.php#L468

It also seems PHPMailer uses "ssl://" for SMTPS and no prefix for SMTP+StartTLS.
See https://github.com/joomla/joomla-cms/blob/staging/libraries/vendor/phpmailer/phpmailer/class.phpmailer.php#L1312
And the StartTLS part https://github.com/joomla/joomla-cms/blob/staging/libraries/vendor/phpmailer/phpmailer/class.phpmailer.php#L1334
and
https://github.com/joomla/joomla-cms/blob/staging/libraries/vendor/phpmailer/phpmailer/class.smtp.php#L315

avatar zero-24 zero-24 - change - 29 Apr 2015
Category Language & Strings
avatar andrepereiradasilva
andrepereiradasilva - comment - 22 Nov 2015

Closed. PR

avatar andrepereiradasilva andrepereiradasilva - change - 22 Nov 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-11-22 10:24:10
Closed_By andrepereiradasilva
avatar andrepereiradasilva andrepereiradasilva - close - 22 Nov 2015

Add a Comment

Login with GitHub to post a comment