Skip to content

Commit 0df2552

Browse files
committed
Allow AWS SES sourceArn to be set
part of #4173 Allows mail to be sent via AWS SES with a authorised identity
1 parent 1e997c4 commit 0df2552

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

docs/install/configuration.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ This assumes that the instance is running with a Service Account that has a AWS
140140
Option | Description
141141
--------------|------------
142142
`email.ses.region` | The AWS region to connect to
143+
`email.ses.sourceArn` | The AWS ARN of a Identity to send email as
143144

144145

145146
## Telemetry configuration

forge/postoffice/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ module.exports = fp(async function (app, _opts) {
8181
defaultProvider
8282
})
8383

84+
if (sesConfig.sourceArn) {
85+
mailDefaults['ses'] = {
86+
sourceArn: sesConfig.sourceArn
87+
}
88+
}
89+
8490
mailTransport = nodemailer.createTransport({
8591
SES: { ses, aws }
8692
}, mailDefaults)

0 commit comments

Comments
 (0)