# Configuring Payara 6 to use Amazon SES

**URL:** <https://forum.payara.fish/t/configuring-payara-6-to-use-amazon-ses/894>\
**Category:** General\
**Created:** [August 27, 2024, 1:48pm UTC](https://forum.payara.fish/t/configuring-payara-6-to-use-amazon-ses/894 "2024-08-27T13:48:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GonzaloPaideia](https://avatars.discourse-cdn.com/v4/letter/g/fbc32d/32.png) [@GonzaloPaideia](https://forum.payara.fish/u/GonzaloPaideia)\
**Post date:** [August 27, 2024, 1:48pm UTC](https://forum.payara.fish/t/configuring-payara-6-to-use-amazon-ses/894/1 "2024-08-27T13:48:48Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![aliambere](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.payara.fish/aliambere/32/261_2.png) [@aliambere](https://forum.payara.fish/u/aliambere)\
**Post date:** [September 5, 2024, 7:18am UTC](https://forum.payara.fish/t/configuring-payara-6-to-use-amazon-ses/894/2 "2024-09-05T07:18:54Z")

</div>

Hey… 🥰

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!
