smtp issue - sendmail fails with error - #2317
Replies: 3 comments 1 reply
-
Hey there @karthikvijayendra It's hard to tell the exact problem as it could be that your smtp mailhost or port is incorrect or the username/password may be incorrect. Here is an example of the email settings for using gmail as your mailhost. The only differences here are the username/password and host/port for your own setup. Email notification propertiesklaw.admin.mailid=admin@your-klaw.io |
Beta Was this translation helpful? Give feedback.
-
Thanks Aiven-Open/klaw. This issue is now resolved and can be closed.
…On Fri, Feb 23, 2024 at 7:11 PM Aindriú Lavelle ***@***.***> wrote:
Hey there @karthikvijayendra <https://github.com/karthikvijayendra>
It's hard to tell the exact problem as it could be that your smtp mailhost
or port is incorrect or the username/password may be incorrect.
Here is an example of the email settings for using gmail as your mailhost.
The only differences here are the username/password and host/port for your
own setup.
Email notification properties
***@***.***
klaw.mail.notifications.enable=true
spring.mail.properties.mail.transport.protocol=smtp
spring.mail.host=smtp.gmail.com
spring.mail.port=587
spring.mail.username=
spring.mail.password=
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.starttls.enable=true
spring.mail.properties.mail.debug=false
spring.mail.noreplymailid=noreplyid
spring.mail.frommailid=fromailid
—
Reply to this email directly, view it on GitHub
<#2317 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANNFNH4ZUKJFOHMUVDDCR7DYVCL7HAVCNFSM6AAAAABDU22OK6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DKNRYGMZTG>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi Team,
I have configured Klaw to send emails, but seems like sendmail function is failing to send the emails and failing with below error -
Caused by: org.springframework.mail.MailSendException: Failed messages: org.eclipse.angus.mail.smtp.SMTPSendFailedException: 501 5.1.7 Invalid address
org.eclipse.angus.mail.smtp.SMTPSenderFailedException: 501 5.1.7 Invalid address
Below are the configs that i have made -
Can anyone please suggest here.
Regards,
Karthik
Beta Was this translation helpful? Give feedback.
All reactions