Error config SMTP of EdgeUI in private cloud

han-zhang
Participant IV

Hi,

We have a need to change our smtp configuration for our EdgeUI.

The new smtp server requires TLS1.2.

We followed the steps in

https://docs.apigee.com/private-cloud/v4.19.01/configuring-edge-smtp-server

Here's our configuration file:

SKIP_SMTP=n
SMTPHOST=smtp.mycompany.com
SMTPSSL=y
SMTPPORT=587      # If no SSL, use a different port, such as 25.
SMTPMAILFROM="noreplyapigee <noreplyapigee@mycompany.com>"

However we got below errors:

Caused by: javax.mail.MessagingException: Could not connect to SMTP host: smtp.mycompany.com, port: 587
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1972) ~[javax.mail.mail-1.4.5.jar:1.4.5]
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642) ~[javax.mail.mail-1.4.5.jar:1.4.5]
at javax.mail.Service.connect(Service.java:317) ~[javax.mail.mail-1.4.5.jar:1.4.5]
at javax.mail.Service.connect(Service.java:176) ~[javax.mail.mail-1.4.5.jar:1.4.5]
at javax.mail.Service.connect(Service.java:125) ~[javax.mail.mail-1.4.5.jar:1.4.5]
at javax.mail.Transport.send0(Transport.java:194) ~[javax.mail.mail-1.4.5.jar:1.4.5]
at javax.mail.Transport.send(Transport.java:124) ~[javax.mail.mail-1.4.5.jar:1.4.5]
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1400) ~[org.apache.commons.commons-email-1.3.3.jar:1.3.3]
... 19 common frames omitted
Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:710) ~[na:1.8.0_252]
at sun.security.ssl.InputRecord.read(InputRecord.java:527) ~[na:
0 4 362
4 REPLIES 4

Is your SMTP server configured to expect STARTTLS on port 587?

Yes, it expects STARTTLS, TLS 1.2

Do a tcpdump while performing above task and review packet captures.You may find insights.

Hi han-zhang

Did you solve this issue?

Could you share your edge configuration?