ses-proxy

1.0.6 • Public • Published

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

TO=homer@example.com FROM=lisa@example.com npm test

Package Sidebar

Install

npm i ses-proxy

Weekly Downloads

6

Version

1.0.6

License

GPL v3.0

Last publish

Collaborators

  • garrows