Skip to main content


Showing posts from February, 2020

Amazon SES notes

Amazon IAM policy to restrict sending email from a single address{
  "Version": "2012-10-17",
  "Statement": [
"Effect": "Allow",
    "Action": "ses:SendRawEmail",
    "Resource": "*",
    "Condition": {
      "StringLike": {
        "ses:FromAddress": ""

Replace `` with `*` to allow sending from any addresses.
Generate SMTP password from the secret access key Official document is available at Usage is like this:

./ --secret DmxxxOY --region us-west-2

Test SMTP credentials I use the swaks script (source:

brew install swaks

swaks -tls --to \
  --from \
  --server \
  --auth-user AKxxxOP

If everything is setup correctly, you should receive the test email in your inbox.