I can't seem to get james3 to work with smtpserver for socketTLS on port
465.
when I execute this command it just seems to hang at the end and not
complete the send. any ideas? Am I not running the send command
properly? I have smtpserver.xml configured for socketTLS.
<bind>0.0.0.0:465</bind>
...
<tls socketTLS="true" startTLS="false">
<keystore>...ks file...</keystore>
<secret>...pw...</secret>
<provider>org.bouncycastle.jce.provider.BouncyCastleProvider</provider>
<!-- The algorithm is optional and only needs to be specified
when using something other
than the Sun JCE provider - You could use IbmX509 with IBM Java
runtime. -->
<!--algorithm>SunX509</algorithm-->
</tls>
# this from the smtpserver.log:
INFO 14:13:44,677 | james.smtpserver | Id='-927469453' User=''
Connection established from 127.0.0.1
# command...
/usr/bin/openssl s_client -quiet -connect localhost:465
depth=0 CN = mail.lepore.org
verify error:num=18:self signed certificate
verify return:1
depth=0 CN = mail.lepore.org
verify return:1
220 lic4u JAMES SMTP Server Server (JAMES SMTP Server ) ready
EHLO localhost
250-lic4u Hello localhost [127.0.0.1])
250-PIPELINING
250-ENHANCEDSTATUSCODES
250 8BITMIME
mail from:<ad...@lepore.org>
250 2.1.0 Sender <ad...@lepore.org> OK
rcpt to:<ad...@lepore.org>
250 2.1.5 Recipient <ad...@lepore.org> OK
data
354 Ok Send data ending with <CRLF>.<CRLF>
subject: this is a test on 2017-09-01 at 2:30pm
test body
.
----------
#tried using startTLS (didn't work either)
/usr/bin/openssl s_client -quiet -connect localhost:465
depth=0 CN = mail.lepore.org
verify error:num=18:self signed certificate
verify return:1
depth=0 CN = mail.lepore.org
verify return:1
220 lic4u JAMES SMTP Server Server (JAMES SMTP Server ) ready
EHLO localhost
250-lic4u Hello localhost [127.0.0.1])
250-PIPELINING
250-ENHANCEDSTATUSCODES
250 8BITMIME
STARTTLS
500 5.5.1 TLS already active RFC2487 5.2
mail from:<ad...@lepore.org>
250 2.1.0 Sender <ad...@lepore.org> OK
rcpt to:<ad...@lepore.org>
250 2.1.5 Recipient <ad...@lepore.org> OK
data
354 Ok Send data ending with <CRLF>.<CRLF>
subject: test from lic4u apache-james on 2017-09-01 at 2:17pm
test body
.
--
thanks,
Michael Lepore
michael.lepore.w...@gmail.com