Project

General

Profile

Amazon SES for CiviCRM » History » Version 6

Jon Goldberg, 01/12/2015 02:23 PM

1 1 Jon Goldberg
h1. Amazon SES for CiviCRM
2 1 Jon Goldberg
3 1 Jon Goldberg
If you're visiting this page and distressed by its incompleteness - rest assured that we HAVE successfully set up Amazon SES on EC2 for a client.  However, we didn't document it - this page is to capture the documentation from setting up SES in January 2015 for a new client.
4 1 Jon Goldberg
5 2 Jon Goldberg
_Pre-requisites: DNS access_
6 2 Jon Goldberg
7 2 Jon Goldberg
* Have client sign up for Amazon AWS, which involves credit cards, identity verification, etc.
8 2 Jon Goldberg
* Ideally, have them click on "SES" at the AWS console, to do the phone verification.
9 2 Jon Goldberg
* Log onto AWS, select SES.  Note that you only have sandbox access at this time.
10 2 Jon Goldberg
* Click on "SMTP Settings" on the left, record the server info, generate SMTP credentials and record those too.
11 2 Jon Goldberg
* Click on "Verified Senders: Domains".  Click "Verify a new Domain".  Enter the client's domain name; also click "Generate DKIM settings".
12 2 Jon Goldberg
* Download these credentials, don't just copy/paste from the screen, because they tend to get cut off.
13 2 Jon Goldberg
* Update the DNS with the verification credentials.
14 5 Jon Goldberg
** *NOTE: This will take several hours (3-4?), even after DNS has propagated.*
15 3 Jon Goldberg
* Also add your own e-mail address the the verified sender - email address list.  This just requires receiving a verification email. You need this because while you're still in sandbox mode, you can only send to verified addresses.  Note that if your normal mail account has greylisting, you'll probably want to use an alternate account here, like GMail.
16 4 Jon Goldberg
17 4 Jon Goldberg
You now have two options for SMTP setup:
18 4 Jon Goldberg
* Set up the SMTP Outbound settings in CiviCRM to use the Amazon SMTP server.  If you do this, know that STARTTLS isn't supported, so prefix the SMTP server with @ssl://@ and select a port of @465@.
19 4 Jon Goldberg
* Click "Save and Test".
20 1 Jon Goldberg
* You may not see an error on the page - so check the ConfigAndLog log for error messages if necessary.
21 4 Jon Goldberg
22 4 Jon Goldberg
Alternatively, set up Postfix to relay through SES.  I've done this successfully but neglected to document it, but know that it's possible.
23 4 Jon Goldberg
24 6 Jon Goldberg
h3. Testing
25 6 Jon Goldberg
26 6 Jon Goldberg
* To test bounce processing, set up a test group made up of at least one verified address and a test contact with the e-mail address "bounce@simulator.amazonses.com".
27 6 Jon Goldberg
* Send a mailing to that address.  You can speed up testing by manually running the "Send Scheduled Mailings" and "Fetch Bounces" scheduled jobs.
28 6 Jon Goldberg
* Don't forget to request production access when you're done!
29 6 Jon Goldberg
30 4 Jon Goldberg
*SPECIAL NOTE FOR EC2 INSTANCES*:
31 4 Jon Goldberg
EC2 severely throttles outgoing mail on ports 25/465/587.  You need to submit a request to Amazon to have this throttle lifted.  This is separate from any user-configurable firewalling!
Go to top
Add picture from clipboard (Maximum size: 40 MB)