Configure the Mail Transport Connector

The mail transport connector makes it possible to use IFS Applications using SMTP and POP3 or IMAP protocol. 
With an ordinary email client, a user can create an email message in any format and send it to the IFS Connect configured mailbox. 
The Mail Sender makes it possible to send mail in different formats using SMTP protocol.

Contents

Mail Sender specific parameters

Additional parameters are specified on Routing Address for Destination Type Mail.

Usage of DEFAULT_MAIL_SENDER and OVERRIDE_MAIL_SENDER parameters

The From field is normally on form "Name <local-part@domain>". How the two parts of the From field, i.e. the 'name' part and the 'mail address' part are combined depends on the following:

Note: In a Mail Event Action flow the sender specification on the incoming message is set to the 'From User' if it is set . If not the logged in user will be set to the sender specification on the incoming message.

Mail Server and SSL

If the SMTP connection is secured by SSL / TLS, choose correct SECURITY_PROTOCOL and specify user name and password.
Certificates:
If any third party mail servers that requires SSL is being used you probably do not need to care about the certificate, but in case the certificate is not trusted, the mail reader will not be able to establish a connection to the mail server. To mark a certificate as trusted you need to get hold of the actual certificate and import it to the keystore using the keytool command.
Trust a certificate:
This guide assumes you already have obtained a copy of the certificate from a safe source. There are ways to obtain the certificate by other means but this is not recommended and beyond the scope of this guide.

  1. To trust a certificate you need to use the keytool command supplied with the JDK. You will need to locate the JDK used during runtime by your application server.
    You can choose to create a new truststore or use the cacerts that comes with the java installation.
    Example:
    <java_home>/bin/keytool -import -alias <certificate-alias> -file <certificate.cer> -keystore <truststore> -storepass <thePassword>
    Where:
    -alias: Is the alias of the mail certificate (can be whatever you wish but use a descriptive name)
    -file: The certificate file
    -keystore: The keystore you want to put it in. If you choose to use a new truststore you do not need to give the -storepass argument. If you do, however, this will be the password for the new truststore. If you rather use cacerts storepass it is located in <java_home>/jre/lib/security.
    -storePass: Is the password to the truststore. (The default password for cacerts is 'changeit' or 'changeme' depending on the platform.)
  2. The keytool command will print out the certificate information including the fingerprint and ask you to verify it. You should verify this fingerprint by comparing it with the original certificate before adding it to the truststore. You can check the fingerprint of a certificate using the -printcert command.
    Example:
    keytool -printcert -file <certificate>
    If the fingerprint is OK, add it and you should see a confirmation that the certificate has been added successfully.

 

Mail Reader specific parameters

WARNING: You should not use your own mail account for the mail reader. You will  get errors that result in a large number of replies to many people who may have sent you mail. It is recommended that you set up a separate mail account to be used only for the mail reader connector. 

Note: OAuth support for mail reader is added after UPD19 (165088) with Auth methods AuthorizationCode and ClientCredentials

Note: If AuthorizationCode and ClientCredentials auth methods are used, valid access and refresh tokens should be used to authenticate and read mails.For that you should configure the relevant permissions to read mails for the account in your third party email server which supports OAuth.

Note: OAuth for mail reader is not supported with POP3 mail protocol (due to an incompatibility issue with Middleware Server) and only IMAP protocol is supported.

 

How to create new instances of the Mail Connector

It's possible to create new instances of the Mail Reader Transport Connector provided that they should poll distinct mailboxes (Only one Mail Reader can poll a mailbox).

Instructions for how to create a new connector instance.