Configuring Edge SMTP Using SSL

Not applicable

Attempting to configure Edge's smtp configuration using SSL with 4.15.07.03. It appears that smtp portion is using a hardcoded value of 465 for the port. We ran the script ui-set.smtp.sh and entered the following information.

Script Prompt

Host: XXXXXXX

Port: 587

Use SSL: y

User/Pass: XXXXXX

apigee4/conf/ui

#mail.smtp.user=

#mail.smtp.pass=

mail.smtp.channel=ssl

mail.smtp.port=587

mail.smtp.tls="true"

UI - start.out log file

Caused by: javax.mail.MessagingException: Could not connect to SMTP host: XXXXXXX, port: 465;
  nested exception is:

We tried other configurations without SSL and it appears that these settings work as designed. We see the port number updated appropriately in the error messages.

1 1 318
1 REPLY 1

Not applicable

In case anyone hits this issue, I created a manual workaround to force traffic to 587 using iptables. Not the prettiest solution but it will work until a code fix is made available.

iptables -t nat -A OUTPUT -p tcp --dport 465 -j DNAT --to :587