It's all about the answers!

Ask a question

smtp settings for CLM and Notes Cloud

Lorenzo . (34311) | asked Jan 21 '16, 11:15 a.m.
Does anyone know if it is possible to use seems to send smtp email from CLM
The server seesm to expect a ceftificate from the client server.

We get an error

javax.mail.MessagingException: Exception reading response;
  nested exception is: Connection reset

debug output


[12/23/15 9:32:23:977 CET] 000000bf SystemOut     O DEBUG: setDebug:
JavaMail version 1.3.2
[12/23/15 9:32:46:668 CET] 000000c0 SystemOut     O DEBUG:
getProvider() returning
Microsystems, Inc]
[12/23/15 9:32:46:669 CET] 000000c0 SystemOut     O DEBUG SMTP: useEhlo
true, useAuth true
[12/23/15 9:32:46:669 CET] 000000c0 SystemOut     O DEBUG SMTP: trying
to connect to host "", port 465, isSSL false
[12/23/15 9:32:56:752 CET] 000000c0 SystemOut     O DEBUG SMTP:
exception reading response: Connection reset

The issue is the same with STARTTLS true or false (the JTS server is restarted in order to make sure that it is taken
into account)

Does anyone knows if this server be used as a smtp server?
Has this been done before?

I got confirmation that server port 25 is fully working with the CLM email setup but it is restricted to the customer domain email addresses and the Notes support recommend to use to send emails.

Thanks for you help

One answer

permanent link
Donald Nong (14.5k414) | answered Jan 21 '16, 11:30 p.m.
The reason is that the protocol is not STARTTLS, but rather SMTPS (SMTP wrapped in SSL - it's probably easier to understand this way). The port 465 is the tell-tale sign. The difference between the two is: with STARTTLS, the client and server will make an insecure connection first, then the client will send a "start tls" signal to promote the connection to a secure one; with SMTPS, the connection is secure when it is established, just as other SSL connections (there will be handshake, certificate exchange and so on).

CLM only supports STARTTLS, not SMTPS.

To work around this, you can set up a relay, so that it will communicate with CLM using SMTP or STARTTLS (port 25), and communicate with the intended SMTP server using SMTPS (465).

Depending on the choice of the mail server, you may need extra steps to handling the SSL bit. For example, Postfix does not support SMTPS natively and you may need to use stunnel to take care of SSL.

I actually did this experiment yesterday and I could use GMail (port 465) to send CLM notification emails.

Lorenzo . commented Jan 22 '16, 2:50 a.m.

Thanks very much for your explanations Donald.

Your answer

Register or to post your answer.