Configuring Payara 6 to use Amazon SES

Hello! I need help configuring payara 6 to use Amazon SES. Assuming that the SMTP user in Amazon is configured properly how and what parameters are needed in Payara? I have configured these:

<mail-resource password="PasswordIsHere" debug="true" auth="true" host="email-smtp.us-east-2.amazonaws.com" from="email@myemail.com" user="MYAMAZONSESUSER" jndi-name="dataverseMailSession"> <property name="mail.smtp.port" value="587"/> <property name="mail.smtp.auth" value="true"/> <property name="mail.smtp.starttls.enable" value="true"/> </mail-resource>

I keep getting error: com.sun.mail.smtp.smtpsendfailedexception: 530 Authentication required

I do have set user and password as you can see in the . Any ideas of what might be wrong?

1 Like

Hey… :smiling_face_with_three_hearts:

As per my knowledge, you need check these things:

  1. Make sure your Amazon SES user and password are correct and match the ones in your Payara configuration.
  2. Add the following properties to your configuration:
  3. <property name="mail.smtp.ssl.trust" value="email-smtp.us-east-2.amazonaws.com"/>
  4. <property name="mail.smtp.auth.mechanisms" value="LOGIN"/>
  5. Confirm that port 587 is open and reachable from your server.

If the issue persists, double-check the SES credentials and ensure that they have the correct permissions for sending emails.

I hope this will help you!

Respected community member!