IBM Support

How to Extend SMTP Timeout for API Connect

Troubleshooting


Problem

By default there is a 10 second timeout configured for the SMTP server used by API Connect.  

In cases when the mail server is slower to respond, the timeout triggers invalidating the invitation.  The mail might still deliver to the recipient, but the invitation link is broken due to the timeout.

Symptom

When the mail is sent, you might see a notification like

“A Server Error occurred Error sending mail message using server named Name-of-the-mail-server (Name of the mail server) with host example.mailserver.com and port nn (timeout) 400”

Similar logs also appear in the apim pod log:

For example

2020-10-15T07:31:22.448Z bhendi:error [transaction ID] Error in POST post:/api/consumer-orgs/:org/:catalog/:consumerorg/member-invitations (member_invitation.js:create)  - status : 400  - message: Error sending mail message using server named Name-of-the-mail-server (Name of the mail server) with host example.mailserver.com and port nn (Timeout).  - stack : Error: Error sending mail message using server named Name-of-the-mail-server (Name of the mail server) with host example.mailserver.com and port nn (Timeout).  ...  - errors : undefined: {   "status": 400,   "message": [     "Error sending mail message using server named Name-of-the-mail-server (Name of the mail server) with host example.mailserver.com and port nn (Timeout)."   ]


After you click the Activation link for an invitation that timed out, you might see a notification message like: 'Invitation not accepted Not found 400'.

Document Location

Worldwide

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSMNED","label":"IBM API Connect"},"Component":"","Platform":[{"code":"PF009","label":"Firmware"}],"Version":"2018.4.1.x","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
02 March 2020

UID

ibm15222541