You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by GitBox <gi...@apache.org> on 2021/02/05 16:45:32 UTC

[GitHub] [fineract] BLasan removed a comment on pull request #1597: Add condition to start TLS (FINERACT-1070)

BLasan removed a comment on pull request #1597:
URL: https://github.com/apache/fineract/pull/1597#issuecomment-774140979


   > > @awasum @francisguchie Default port and the host are 25 and smtp.gmail.com respectively. Is this correct? Gmail smtp server uses 587 & 465 ports to send email. Should we change these values accordingly?
   > 
   > @BLasan
   > originally, it was set as such , where fineract was ignoring the set port and i created an issue [here](https://issues.apache.org/jira/browse/FINERACT-1070)
   > 
   > Even if use sets the following, MifosX will not send emails
   > 1- Configure the server on which mifos is installed to be able to send Emails - One can do this by installing sSMTP on the server and testing email sending on the command line
   > 
   > 2- if using a gmail address only ports 465 and 587 will work because port 25 is by default disabled on google servers This includes very many other VPS / Mail servers
   > 
   > 3- Configure the port under the Email External Services Configuration
   > 
   > one will still get the error below
   > 
   > 03-Jul-2020 19:59:41.251 SEVERE [https-jsse-nio-443-exec-18]
   > com.sun.jersey.spi.container.ContainerResponse.mapMappableContainerException
   > The RuntimeException could not be mapped to a response, re-throwing to the HTTP container
   > 
   > org.apache.fineract.infrastructure.core.service.PlatformEmailSendException:
   > org.apache.commons.mail.EmailException:
   > Sending the email to the following server failed : smtp.gmail.com:25
   > at org.apache.fineract.infrastructure.core.service.GmailBackedPlatformEmailService.sendDefinedEmail(GmailBackedPlatformEmailService.java:81)
   
   Yes, those configurations are read from mysql database. You can runthe command and get the output of the configurations for smtp. Default port is 25. I think we need to change that. Or else we need to hard code the value for now. Can you try by changing the port number in the following lines?
   
   - https://github.com/apache/fineract/pull/1597/files#diff-ff180200f187360b5f3824c6656dcbb79f609f950ef0e90f25cf96df3c47ea96R87
   - https://github.com/apache/fineract/pull/1597/files#diff-ff180200f187360b5f3824c6656dcbb79f609f950ef0e90f25cf96df3c47ea96R95


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org