Configure the connection details and timeout for the SMTP server

When WSRR is installed a default WSRRMailService is configured that uses an SMTP protocol provider defined in WebSphere® Application Server.

About this task

To log on to the server you must have a valid SMTP server address and user credentials. An appropriate timeout value is required to avoid problems caused by the infinite default timeout value. To update this configuration:

Procedure

  1. Log on to your WebSphere Application Server administrative console in your Deployment Manager or stand-alone server.
  2. Navigate to Resources > Mail > Mail Providers > WSRR Mail Provider > Mail Sessions > WSRRMailSession
  3. Set the Server, Protocol, User, Password, and Return email address fields, in the Outgoing Mail Properties section.
  4. Optional: To set the time out, choose the WSRRMailSession that has the JNDI name mail/WSRRMailService. Click Custom properties in the Configuration tab to add a new property with the following values:
    Property Value
    Name mail.smtp.connectiontimeout
    Value A time out value, in milliseconds, to use when connecting to the smtp server, for example 5000, for 5 seconds.
    Description An optional descriptive comment.
    Type java.lang.Integer

    For details of other SMTP parameters that can be added as custom properties, see the related link.

  5. Click OK and save the new settings to the WebSphere Application Server master configuration.
  6. Restart the WebSphere Application Server to activate the Mail transport host setting.