Commons Net
  1. Commons Net
  2. NET-356

[SMTP] [Solution] The SMTP client does not support SSL/TLS connections

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: SMTP
    • Labels:
      None

      Description

      The SMTPClient class does not support automatic SSL negotiation when connecting to the SMTPS port and it does not support TLS negotiation when connecting to the standard SMTP port.

      1. SMTP-SSL-TLS.zip
        4 kB
        Bogdan Drozdowski

        Activity

        Hide
        Bogdan Drozdowski added a comment -

        The ZIP file contains 2 classes in the org/apache/commons/net/smtp directory/package. These classes are borrowed from the FTP package and extend the SMTPClient with on-connection and on-demand SSL/TLS negotiation. Tested with sendmail. You may put these in another package, of course. If these are accepted, the AuthenticatingSMTPClient from NET-353 (if also accepted), and perhaps any other added classes, should be made a subclass of SMTPSClient instead of SMTPClient.

        Show
        Bogdan Drozdowski added a comment - The ZIP file contains 2 classes in the org/apache/commons/net/smtp directory/package. These classes are borrowed from the FTP package and extend the SMTPClient with on-connection and on-demand SSL/TLS negotiation. Tested with sendmail. You may put these in another package, of course. If these are accepted, the AuthenticatingSMTPClient from NET-353 (if also accepted), and perhaps any other added classes, should be made a subclass of SMTPSClient instead of SMTPClient.
        Hide
        Sebb added a comment -

        Thanks, committed with minor changes (unused imports/variables)

        Show
        Sebb added a comment - Thanks, committed with minor changes (unused imports/variables)

          People

          • Assignee:
            Unassigned
            Reporter:
            Bogdan Drozdowski
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development