In Part 1 you set up Amazon SES and verified your domain or email address (Part 1: Set up your AWS mail server). Now you'll create access details in AWS and enter them in your account. Then you can send email campaigns from your own mail server.
You'll collect five items in AWS:
Access Key ID
Secret Access Key
SMTP Username
SMTP Password
Account ID
The AWS steps below happen in the AWS console, which changes from time to time.
Step 1: Create a permissions policy in AWS
Open the IAM console: https://console.aws.amazon.com/iam/
On the left, click Policies, then Create policy.
Switch to the JSON editor.
Delete the default content and paste this policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"ses:CreateConfigurationSet",
"lambda:AddPermission",
"sns:GetTopicAttributes",
"ses:CreateConfigurationSetEventDestination",
"sns:CreateTopic",
"sns:ListTopics",
"sns:Subscribe",
"sns:AddPermission",
"ses:SetIdentityNotificationTopic",
"ses:ListConfigurationSets"
],
"Resource": "*"
}
]
}Click Next. Name the policy, for example DonationEmailAccess.
Click Create policy.
Step 2: Create a user and its access keys
In the IAM console, click Users, then Create user.
Enter a user name, for example DonationEmailUser. Click Next.
Choose Attach policies directly. Search for the policy you created in Step 1 and tick it.
Click Next, then Create user.
Open the new user and go to the Security credentials tab. Click Create access key.
Choose a use case such as "Third-party service", then create the key.
Copy the Access key ID and the Secret access key and keep them somewhere safe. AWS shows the secret key only once.
Step 3: Create SMTP credentials in Amazon SES
Open Amazon SES. Search for "SES" at the top of the AWS console. Make sure you're in the same region where you verified your domain in Part 1.
On the left, click SMTP settings, then Create SMTP credentials.
You don't need to change anything. Click Create user.
Copy the SMTP user name and SMTP password, or click Download .csv file. AWS shows the password only once.
Also note the region code shown in the SES console, for example us-east-1. You'll need it in Step 5.
Step 4: Copy your AWS Account ID
At the top right of the AWS console, click your account name. Copy the Account ID from the menu that opens.
Step 5: Enter the details in your account
Go to Email Marketing › Server set-up › Settings.
Under Select your emailing provider, choose AWS.
Fill in the fields:
SMTP User Name: the SMTP user name from Step 3.
SMTPUser Password and Confirm Password: the SMTP password from Step 3.
- Connection Port: enter 465.
- Domain: the domain or email address you verified in Part 1.
- AWS Access Key: the access key ID from Step 2.
- AWS Secure Key: the secret access key from Step 2.
- AWS Account Number: the Account ID from Step 4.
- AWS Region: the region where you verified your domain, for example us-east-1. We send your emails through Amazon SES in this region.
Tick Require SSL and Active. Make sure Inactive is not ticked.
Click Set up AWS.
How do I know it worked?
After you click Set up AWS, a log appears on the page. If everything connected, the last line is "AWS configuration is completed." That's it — you're ready to send!
If you see an error instead, check that:
the region matches the region where you verified your domain,
the policy from Step 1 is attached to the user from Step 2,
you copied every key without extra spaces.
I use Mailgun instead of AWS
Under Select your emailing provider, choose Mailgun. Enter your Domain and Mailgun API key, then click Save.
