You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Bernd Waibel <BW...@intarsys.de> on 2016/10/24 07:10:44 UTC

AW: Remote delivery via SSL [unsigned]

Hi Rudi,

I think it is the same question as here:
http://www.mail-archive.com/server-dev@james.apache.org/msg48897.html

Port 465 is only for directly configured connections.
The SMTP Standard always uses Port 25 (and may use STARTTLS as described).

Best regards
Bernd Waibel
-----Ursprüngliche Nachricht-----
Von: James List [mailto:james-list@olmeca.nl] 
Gesendet: Sonntag, 23. Oktober 2016 21:07
An: server-user@james.apache.org
Betreff: Remote delivery via SSL

Hi, I’m trying to setup James to only use SSL when connecting to other SMTP servers. To this end I have added the following configuration to the mailetconfiguration of the RemoteDelivery mailet.


          <sslEnable>true</sslEnable>
	  <mail.smtp.port>465</mail.smtp.port>
          <mail.debug>true</mail.debug>
          <mail.smtp.socketFactory.class>javax.net.ssl.SSLSocketFactory</mail.smtp.socketFactory.class>

But when attempting remote delivery the server uses port 25. I am puzzled. Any clues anyone?
(PS. my server has an SSL certificate installed).

INFO  00:09:08,197 | james.mailetcontext | Attempting delivery of Mail1476623937182-626a1d36-e920-47be-88ee-2c7c8ece79ad-to-me.com <http://mail1476623937182-626a1d36-e920-47be-88ee-2c7c8ece79ad-to-me.com/> to host mx5.mail.icloud.com <http://mx5.mail.icloud.com/>. at 17.172.34.68 from rudi@yplein.nl <ma...@yplein.nl> for addresses [olmeca@me.com <ma...@me.com>]
ERROR 00:10:08,256 | james.mailetcontext | Could not connect to SMTP host: 17.172.34.68, port: 25
java.net.SocketTimeoutException: connect timed out


Rudi

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org