[ https://issues.apache.org/jira/browse/JAMES-2980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17047474#comment-17047474 ]
Trần Tiến Đức edited comment on JAMES-2980 at 2/28/20 11:06 AM: ---------------------------------------------------------------- Hello [~ramahmoo], Thank you for your suggestion! I'm taking it under consideration. It requires us to: - Update James code base to read the configuration(port, protocol) from mailetcontainer.xml - Having a way to use the default port associating with each protocol. Even better, the component should guess for other possible ports if there is a failure while trying to connect to the remote Server. About the second point, from my search, there's no official way to detect the protocol (smtp:// or smtps://) and the port via MX records when doing Lookup(). We have to retry in both cases to guess the proper port/protocol to use. The first point seems to be more straight forward to handle. Are you willing to contribute an improvement? was (Author: trantienduchn): Hello [~ramahmoo], Thank you for your suggestion! I'm taking it under consideration. It requires us to: - Update James code base to read the configuration from mailetcontainer.xml - Having a way to use the default port associating with each protocol. Even better, the component should guess for other possible ports if there is a failure while trying to connect to the remote Server. > James RemoteDelivery cannot send mails to 465 port > -------------------------------------------------- > > Key: JAMES-2980 > URL: https://issues.apache.org/jira/browse/JAMES-2980 > Project: James Server > Issue Type: Bug > Reporter: Trần Tiến Đức > Priority: Major > > an user had reported he was using a different configurations about the > RemoteDelivery to forward emails to a remote SMTP server opn 465 port: > {code:java} > <mailet match="All" class="RemoteDelivery"> > <outgoingQueue>outgoing</outgoingQueue> > <mail.smtp.ssl.enable>true</mail.smtp.ssl.enable> > <mail.smtp.port>465</mail.smtp.port> > <mail.smtp.localhost>127.0.0.1</mail.smtp.localhost> > <delayTime>3 * 3 seconds</delayTime> > <maxRetries>3</maxRetries> > <maxDnsProblemRetries>0</maxDnsProblemRetries> > <deliveryThreads>10</deliveryThreads> > <sendpartial>true</sendpartial> > <bounceProcessor>bounces</bounceProcessor> > <debug>true</debug> > </mailet> > {code} > {code:java} > <mailet match="All" class="RemoteDelivery"> > <outgoingQueue>outgoing</outgoingQueue> > <mail.smtp.ssl.enable>true</mail.smtp.ssl.enable> > > <mail.smtp.ssl.checkserveridentity>true</mail.smtp.ssl.checkserveridentity> > <mail.smtp.ssl.trust>*</mail.smtp.ssl.trust> > <delayTime>3 * 3 seconds</delayTime> > <maxRetries>3</maxRetries> > <maxDnsProblemRetries>0</maxDnsProblemRetries> > <deliveryThreads>10</deliveryThreads> > <sendpartial>true</sendpartial> > <bounceProcessor>bounces</bounceProcessor> > <debug>true</debug> > </mailet> > {code} > non above works, with an error message > {code:java} > 16:57:59.585 [DEBUG] o.a.j.t.m.r.d.MailDelivrer - Couldn't connect to host, > port: <Domain im trsing to send to>, 25; timeout 60000 > | java.net.ConnectException: Connection refused (Connection refused) > {code} > > > See https://gitter.im/apache/james-project?at=5dc4408610bd4128a1d88797 -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org