Webhooks exception javax mail MessagingException

Document ID : KB000097804
Last Modified Date : 15/06/2018
Show Technical Document Details
Issue:
We're getting the following exception when trying to set up webhooks, do you have more documentation on what is required of the SMTP server?

26/Apr/2018 14:20:54,603-[ERROR] WatchdogMasterThread: 
javax.mail.MessagingException: Could not connect to SMTP host: smtpa.service.group, port: 25, response: 554
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1960) ~[javax.mail-1.4.5.jar:1.4.5]
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:642) ~[javax.mail-1.4.5.jar:1.4.5]
    at javax.mail.Service.connect(Service.java:295) ~[javax.mail-1.4.5.jar:1.4.5]
    at javax.mail.Service.connect(Service.java:176) ~[javax.mail-1.4.5.jar:1.4.5]
    at javax.mail.Service.connect(Service.java:125) ~[javax.mail-1.4.5.jar:1.4.5]
    at javax.mail.Transport.send0(Transport.java:194) ~[javax.mail-1.4.5.jar:1.4.5]
    at javax.mail.Transport.send(Transport.java:124) ~[javax.mail-1.4.5.jar:1.4.5]
    at com.ca.mf.webhook.messages.EmailSender.sendEmail(EmailSender.java:134) ~[MFWebhookServer.jar:?]
    at com.ca.mf.webhook.messages.EmailSender.sendEmail(EmailSender.java:158) ~[MFWebhookServer.jar:?]
    at com.ca.mf.webhook.watchdog.runnables.WatchdogMasterThread.handleConfigurationExecutionProblem(WatchdogMasterThread.java:208) [WatchdogMasterThread.class:?]
    at com.ca.mf.webhook.watchdog.runnables.WatchdogMasterThread.processConfiguration(WatchdogMasterThread.java:157) [WatchdogMasterThread.class:?]
    at com.ca.mf.webhook.watchdog.runnables.WatchdogMasterThread.run(WatchdogMasterThread.java:110) [WatchdogMasterThread.class:?]
    at java.lang.Thread.run(Thread.java:785) [?:?]
Environment:
CA ALC 3.x
Resolution:
It seems to be a problem on routing…. 
Please try to run a simply telnet command on port 25 from the console of the server where we want to setup the Webhook.

Like : telnet smtpa.service.group 25 

For more information : https://docops.ca.com/ca-alc/3-0/en/mainframe-webhook-server#MainframeWebhookServer-ModifytheMainframeWebhookServerMonitoringandReportingSettings 

But for mail settings only the field about SMTP server can be filled and it assume that the default port 25 is reachable.