You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Rashid Mahmood (Jira)" <se...@james.apache.org> on 2020/02/25 12:05:00 UTC

[jira] [Comment Edited] (JAMES-2980) James RemoteDelivery cannot send mails to 465 port

    [ https://issues.apache.org/jira/browse/JAMES-2980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17044378#comment-17044378 ] 

Rashid Mahmood edited comment on JAMES-2980 at 2/25/20 12:04 PM:
-----------------------------------------------------------------

we are facing also same problem. Our DNS Resolved Mail Server Hosts are all SSL Enabled and listening on port 465. So DNSHelper should either read port from Mailletcontainer configuration if it exists OR it should decide default port based on protocol SMPT/SMPTS. Instead of the following call in DNSHelper 
{code:java}
return new MXHostAddressIterator(dnsServer.findMXRecords(host).iterator(), dnsServer, USE_SEVERAL_IP);
{code}
it should be 
{code:java}
return new MXHostAddressIterator(dnsServer.findMXRecords(host).iterator(), [defaultPort or port from config] , dnsServer, USE_SEVERAL_IP);
{code}
 


was (Author: ramahmoo):
we are facing also same problem. Our DNS Resolved Mail Server Hosts are all SSL Enabled and listening on port 465. So DNSHelper should either read port from Mailletcontainer configuration if it exists OR it should decide default port based on protocol SMPT/SMPTS. Instead of the following call in DNSHelper 

 
{code:java}
return new MXHostAddressIterator(dnsServer.findMXRecords(host).iterator(), dnsServer, USE_SEVERAL_IP);
{code}
it should be

 

 
{code:java}
return new MXHostAddressIterator(dnsServer.findMXRecords(host).iterator(), [defaultPort or port from config] , dnsServer, USE_SEVERAL_IP);
{code}
 

> 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-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org