Hi everyone,
I have configured the email notification in AEM Cloud, but I am still experiencing a timeout.
The error message is as follows:
"Sending the email to the following server failed: email-smtp.<<name>>.com:465
Couldn't connect to host, port: email-smtp.<<name>>.amazonaws.com, 465; timeout 30000"
* com.day.cq.mailer.DefaultMailService.cfg.json
{
"debug.email": "true",
"smtp.host": "$[env:SMTP_HOST;default=]",
"smtp.password": "$[secret:SMTP_PASSWORD;default=]",
"from.address": "$[env:SMTP_FROM_ADDRESS;default=]",
"smtp.port": "465",
"smtp.ssl": "true",
"smtp.user": "$[env:SMTP_USER;default=]"
}
ERROR:
But in local i sents successfully, and in smpt user i don't set any permission boundary,
Please help any idea with it. Please suggest to me,
Many Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @dante8888,
I think you will need to add port forwarding, which can be done on AEMaaCS through Advanced Networking: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/security/configu...
Here is an example from my project:
{
"portForwards": [
{
"name": "smtp.testmail.io",
"portDest": 2525,
"portOrig": 30001
},
{
"name": "smtp.testmail.io",
"portDest": 465,
"portOrig": 30002
}
]
}
Good luck,
Daniel
Hi @dante8888,
I think you will need to add port forwarding, which can be done on AEMaaCS through Advanced Networking: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/security/configu...
Here is an example from my project:
{
"portForwards": [
{
"name": "smtp.testmail.io",
"portDest": 2525,
"portOrig": 30001
},
{
"name": "smtp.testmail.io",
"portDest": 465,
"portOrig": 30002
}
]
}
Good luck,
Daniel
As per the documentation we should update the osgi configuration similar to the below one
{
"smtp.host": "$[env:AEM_PROXY_HOST;default=proxy.tunnel]",
"smtp.port": "30587",
"smtp.user": "$[env:EMAIL_USERNAME;default=apikey]",
"smtp.password": "$[secret:EMAIL_PASSWORD]",
"from.address": "noreply@domain.com",
"smtp.ssl": false,
"smtp.starttls": true,
"smtp.requiretls": false,
"debug.email": true,
"oauth.flow": false
}
And the
"smtp.port": "30587",
shoud be passed in port-forwarding
Views
Likes
Replies
Views
Likes
Replies