Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-16847

AM email service failing with 'Start TLS' option

    XMLWordPrintable

    Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.0.0.7, 6.5.2.3, 5.5.2, 7.0.0, 6.5.3
    • 6.5.4, 7.1.0, 7.0.1
    • core
    • AM Sustaining Sprint 79
    • 1
    • No
    • No

      Description

      Bug description

      The AM email service is unable to connect to an SMTP server using the 'Start TLS' option.

      How to reproduce the issue

      Configure AM to enable Password Reset and in the email service use the Google smtp.gmail.com server for a test:

      Port: 587
      Mail Server Secure Connection: Start TLS 
      Expected behaviour
      Mail should send as expected and be received by the client
      
      Current behaviour - the following is seen in the OtherLogging debug log file in 7.0:
      Caused by: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. z9sm2339328wmg.46 - gsmtp        at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2358)
              at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1823)
              at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1300)
              at javax.mail.Transport.send0(Transport.java:255)
              at javax.mail.Transport.send(Transport.java:124)
              at com.iplanet.am.util.AMSendMail.postMail(AMSendMail.java:300)
              at org.forgerock.openam.services.email.MailServerImpl.sendEmail(MailServerImpl.java:221)
              at org.forgerock.openam.services.email.MailServerImpl.sendEmail(MailServerImpl.java:187)
              at org.forgerock.openam.services.MailService.sendEmail(MailService.java:168)
              ... 21 common frames omitted 

      Work around

      N/A

        Attachments

          Issue Links

            Activity

              People

              joe.starling Joe Starling
              andy.itter Andy Itter
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: