Hello,
I am running a docker version of Apache James on AWS and I can connect to the
server using IMAP but not SMTP and this is the error I am getting:
javax.mail.SendFailedException: Invalid Addresses; nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 530 5.7.1 Authentication Required
I am using Spring Boot version 2.5.4 and deploying my application using
Kubernetes. Interestingly, when I run Apache James on my laptop the code works
fine, but not when deployed on AWS.
This is my mail properties:
spring:
mail:
host: apachejames
port: 25
properties.mail.smtp.auth: false
properties.mail.smtp.starttls.enable: false
properties.mail.imap.host: apachejames
properties.mail.imap.port: 143
properties.mail.imap.starttls.enable: false
I’ve been stuck on this issue for several days, so all help welcome 😊
Thanks in advance,
Sean
Confidential Communication: The contents of this e-mail including any
attachment are confidential and intended solely for the person(s) to whom they
are addressed. Any reader of this email who is not the intended recipient is
notified that any dissemination, distribution or copying of this communication
is strictly prohibited. If you have received this e-mail in error, please
notify the sender immediately and delete all copies from your computer system.
Subsequent alterations to this email after its transmission will be disregarded.