Setting Outbound Email Configuration with Office 365 account

cancel
Showing results for 
Search instead for 
Did you mean: 
shubham_rana
Member II

Setting Outbound Email Configuration with Office 365 account

Hello, 

I am trying to set up an outbound email service for a password reset for users but I am getting the following error

" org.springframework.mail.MailSendException: Mail server connection failed; nested exception is com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.example.com, 25; timeout -1; nested exception is: java.net.UnknownHostException: smtp.example.com. Failed messages: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.example.com, 25; timeout -1;"

I am following the following reference to set up the configuration.

https://github.com/Alfresco/acs-deployment/blob/master/helm/alfresco-content-services/README.md

Here is the configuration that I am using.

mail:
     host: "smtp.office365.com"
     port: "587"
     username: "xxxxxx@domain.com"
     password: "xxxxxxx"
     protocol: "smtp"
     smtp:
            timeout: 30000
            auth: true
            starttls:
                       enable: true

 

Not sure what am I missing.

 

 

1 Reply
abhinavmishra14
Advanced

Re: Setting Outbound Email Configuration with Office 365 account

The error is clear, it says it can not connect to smtp server listening to port 25.

org.springframework.mail.MailSendException: Mail server connection failed; 
nested exception is com.sun.mail.util.MailConnectException:
Couldn't connect to host, port: smtp.example.com, 25;

You need to configure a valid smtp server which is open to serve requests from your ACS server. Set the appropriate values in config

~Abhinav
(ACSCE, AWS SAA-C02, GAIQ)