Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMTP problem #70

Open
gddblo opened this issue Mar 29, 2021 · 7 comments
Open

SMTP problem #70

gddblo opened this issue Mar 29, 2021 · 7 comments

Comments

@gddblo
Copy link

gddblo commented Mar 29, 2021

Hello, I have successfully installed Alfresco Docker Community and am trying to activate email notifications but without success.
I modified the "docker-compose.yml" file by entering the credentials for sending with an external server as follows:

                -Dmail.host=mail.gardauno-xxxxxxxxxx.it
                -Dmail.port=465
                -Dmail.username=xxxxxxx.gardauno-xxxxxxxxxx.it
                -Dmail.password=xxxxxxxxxx
                -Dmail.protocol=smtp
                -Dmail.smtps.starttls.enable=true
                -Dmail.smtps.auth=true

In the "alfresco.log" logs we read the following:

[org.alfresco.repo.action.executer.MailActionExecuter] [mailAsyncAction1] Failed to send email to [admin] : org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketTimeoutException: Read timed out. Failed messages: javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketTimeoutException: Read timed out; message exceptions (1) are:Failed message 1: javax.mail.MessagingException: Exception reading response; nested exception is: java.net.SocketTimeoutException: Read timed out

There is no other indication as to why the submission failed.

Anyone have an idea how to fix this?

Thank you all

@aborroy
Copy link
Contributor

aborroy commented Mar 29, 2021

You may try increasing connection timeout using following settings:

mail.smtps.connectiontimeout

@gddblo
Copy link
Author

gddblo commented Mar 29, 2021

Thakyou Angel!
but...
I tried with "-Dmail.smtps.connectiontimeout=3600" but not work...
I change "-Dmail.smtps.starttls.enable=true" in "false" but not work...

sob!

@iohann95
Copy link

iohann95 commented Jan 24, 2022

You are using:

-Dmail.protocol=smtp

But you are also using

-Dmail.smtps.starttls.enable=true
-Dmail.smtps.auth=true

Try changing from smtps to smtp.

@faran-qasim
Copy link

Hello are you able to get it working @gddblo

@antoniorv75
Copy link

This example works for me:
-Dmail.host=smtp.gmail.com
-Dmail.port=465
[email protected]
-Dmail.password=
-Dmail.protocol=smtps
-Dmail.encoding=UTF-8
-Dmail.smtps.auth=true
-Dmail.smtps.starttls.enable=true
-Dmail.testmessage.send=true
-Dmail.from.enabled=false
-Dmail.from.default=Alfresco
[email protected]
-Dmail.testmessage.subject='Alfresco 7, server TESTING started'
-Dmail.testmessage.text='Outbound SMTP email subsystem is working.'

@faran-qasim
Copy link

faran-qasim commented Jan 28, 2022

@antoniorv75 Hello, can you please guide me here I saw only these lines are necessary can you please confirm it
-Dmail.host=smtp.gmail.com
-Dmail.port=465
[email protected]
-Dmail.password=
-Dmail.protocol=smtps
-Dmail.encoding=UTF-8
-Dmail.smtps.auth=true
-Dmail.smtps.starttls.enable=true

also for SMTP, I should use the default web password or App password?

@faran-qasim
Copy link

Hi, @aborroy thank you so much for the hard work, can you please guide me where to see the log of SMTP mail service, as I'm unable to get the outgoing mail service working.
Thanks again,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants