Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Add SMTP support for AWS SES and docs for it
Tuan Dang29592a1e9e89
diff --git a/backend/src/services/smtp.ts b/backend/src/services/smtp.tsindex 12841eee7d..f960f6bae3 100644--- a/backend/src/services/smtp.ts+++ b/backend/src/services/smtp.ts@@ -28,7 +28,13 @@ if (SMTP_SECURE) {}break;default:- mailOpts.secure = true;+ if (SMTP_HOST.includes('amazonaws.com')) {+ mailOpts.tls = {+ ciphers: 'TLSv1.2'+ }+ } else {+ mailOpts.secure = true;+ }break;}}diff --git a/docs/images/email-aws-ses-console.png b/docs/images/email-aws-ses-console.pngnew file mode 100644index 0000000000..2882ba4d5fBinary files /dev/null and b/docs/images/email-aws-ses-console.png differdiff --git a/docs/images/email-aws-ses-user.png b/docs/images/email-aws-ses-user.pngnew file mode 100644index 0000000000..f740e58a5eBinary files /dev/null and b/docs/images/email-aws-ses-user.png differdiff --git a/docs/self-hosting/configuration/email.mdx b/docs/self-hosting/configuration/email.mdxindex b1e911fb67..666ca76224 100644--- a/docs/self-hosting/configuration/email.mdx+++ b/docs/self-hosting/configuration/email.mdx@@ -48,7 +48,7 @@ SMTP_FROM_NAME=Infisical```<Info>- Remember that you will need to restart Infisical for this to work properly.+ Remember that you will need to restart Infisical for this to work properly.</Info>## Mailgun@@ -70,6 +70,28 @@ [email protected] # your email address being used to send out emSMTP_FROM_NAME=Infisical```+## AWS SES++1. Create an account and [configure AWS SES](https://aws.amazon.com/premiumsupport/knowledge-center/ses-set-up-connect-smtp/) to send emails in the Amazon SES console.+2. Create an IAM user for SMTP authentication and obtain SMTP credentials in SMTP settings > Create SMTP credentials++++++3. With your AWS SES SMTP credentials, you can now set up your SMTP environment variables:++```+SMTP_HOST=smtp.mailgun.org # obtained from credentials page+SMTP_HOST=email-smtp.ap-northeast-1.amazonaws.com # SMTP endpoint obtained from SMTP settings+SMTP_USERNAME=xxx # your SMTP username+SMTP_PASSWORD=xxx # your SMTP password+SMTP_PORT=587+SMTP_SECURE=true[email protected] # your email address being used to send out emails+SMTP_FROM_NAME=Infisical+```+<Info>- Remember that you will need to restart Infisical for this to work properly.-</Info>\ No newline at end of file+ Remember that you will need to restart Infisical for this to work properly.+</Info>