Skip to content

garrows/ses-proxy

Repository files navigation

ses-proxy

Proxy SMTP emails to Amazon's SES (Simple Email Service)

This is particularly useful if your server only has internet access via a proxy.

Setup

Install command

npm install -g ses-proxy

The AWS-SDK will pickup your servers IAM credentials if it has them. Otherwise use a config file in the following format.

{
  "accessKeyId": "your-access-key",
  "secretAccessKey": "your-secret-key",
  "region": "us-east-1"
}

Call the filename ses-credentials.json.

Run

[sudo] ses-proxy --config ./ses-credentials.json --port 25

Note you don't need sudo if you're using a high port number.

Proxy

If you have the https_proxy environment variable set, the SES API calls will go through that.

If you want to specify another proxy use the --proxy flag.

[sudo] ses-proxy --config ./ses-credentials.json --port 25 --proxy http://proxy.example.com:3128/

Testing

This will actually send a test email to the specified account so make sure they are a verified sender in the AWS SES console

About

Proxy SMTP emails to Amazon's SES (Simple Email Service)

Resources

License

Stars

Watchers

Forks

Packages

No packages published