CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • Amazon SES and 4.4
Pages: [1]

Author Topic: Amazon SES and 4.4  (Read 2173 times)

bmccarthyhp

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.4.1
  • CMS version: Joomla 2.5.9
  • MySQL version: 5.5
  • PHP version: 5.3
Amazon SES and 4.4
November 13, 2013, 03:03:25 pm
Hi. I've read through a number of different posts here on this forum without luck. Is there anyone who has successfully setup Amazon SES for CiviCRM on version 4.4 (or likely 4.3 works too)? We just upgraded from 4.1.6 > 4.4.1 and my understanding is SES should now be fully supported. Simply setting the SMTP server to the address and credentials required gives and error message everytime.

An error occurred when CiviCRM attempted to send an email (via SMTP). If you received this error after submitting on online contribution or event registration - the transaction was completed, but we were unable to send the email receipt.
The mail library returned the following error message:
authentication failure [SMTP: Invalid response code received from SMTP server while sending email. This is often caused by a misconfiguration in Outbound Email settings. Please verify the settings at Administer CiviCRM >> Global Settings >> Outbound Email (SMTP). (code: 530, response: Must issue a STARTTLS command first)]

My settings...

SMTP Server: email-smtp.us-east-1.amazonaws.com
SMTP Port: 25
Authentication: Yes
SMTP Username: xxx (as provided by Amazon)
SMTP Password: yyy (as provided by Amazon)

Is there something more that must be done? I've tried the other ports as well (587, 465). SES is configured to work with the domain, etc.
« Last Edit: November 13, 2013, 04:54:42 pm by bmccarthyhp »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Amazon SES and 4.4
November 13, 2013, 04:09:48 pm

in the below case, the error is quite explicit: (code: 530, response: Must issue a STARTTLS command first)]

so i'd switch to the starttls port and see what error it gives me there

lobo


A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

bmccarthyhp

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.4.1
  • CMS version: Joomla 2.5.9
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Amazon SES and 4.4
November 13, 2013, 04:53:24 pm
Setting the port to 587 gives the same error message. Adding ssl:// as I've seen mentioned in other posts to the front of the url gives this error:

Failed to connect to ssl://email-smtp.us-east-1.amazonaws.com:587 [SMTP: Failed to connect socket: fsockopen(): unable to connect to ssl://email-smtp.us-east-1.amazonaws.com:587 (Unknown error) (code: -1, response: )]

Appears to be a firewall issue. I edited /etc/postfix/master.cf to enable SSL over port 465. The following settings now work:

SMTP Server: ssl://email-smtp.us-east-1.amazonaws.com
SMTP Port: 465
Authentication: Yes

Are there any other issues or configurations I need to be concerned with for Amazon SES? Transaction mail sends now, but will CiviMail have any issues?
« Last Edit: November 13, 2013, 04:56:17 pm by bmccarthyhp »

bpmccain

  • I post frequently
  • ***
  • Posts: 255
  • Karma: 5
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.2
  • PHP version: 5.2
Re: Amazon SES and 4.4
November 14, 2013, 04:27:44 am
We're having some as yet unknown issues with Amazon SES overe here:
http://forum.civicrm.org/index.php/topic,30161

bmccarthyhp

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.4.1
  • CMS version: Joomla 2.5.9
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Amazon SES and 4.4
November 14, 2013, 09:28:53 am
Thanks for that post. I'll follow it and chime in if / when we see problems.

We have not yet changed the default throttle rate settings introduced in 4.3. What would a good recommendation specifically for Amazon SES?

Current Settings:
Mailer Batch Limit: 200
Mailer Throttle Time: 0
Mailer Job Size: 0
Mailer Cron Job Limit: 0

Also, the CRON Job is set to run every 15 minutes currently.

I'm reviewing this post here, but http://forum.civicrm.org/index.php?topic=1282.0), but no details pertaining to Amazon SES specifically. On a side note, it would be great if we could create a Wiki post specifically for Amazon SES (and other popular providers) with "recommended" settings.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Amazon SES and 4.4
November 14, 2013, 09:44:52 am

good idea :)

the wiki is community editable, so you can create a wiki page for recommended settings and tips for various hosting and smtp providers. Might want to do a search and find the right location for it. we can move it later on also

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

bmccarthyhp

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.4.1
  • CMS version: Joomla 2.5.9
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Amazon SES and 4.4
November 20, 2013, 04:33:00 pm
I've modified the settings to these default as no one seems to have a suggestion / best recommendation:

Current Settings:
Mailer Batch Limit: 500
Mailer Throttle Time: 500000
Mailer Job Size: 0
Mailer Cron Job Limit: 0

Cronjob is set to run every 15 minutes.

My understanding is these settings will send 2 emails per second (my current max on SES is 5) up to 500 per batch. If my typical mass email is 4,000 users, it would complete in 2 hours.

bmccarthyhp

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.4.1
  • CMS version: Joomla 2.5.9
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Amazon SES and 4.4
December 06, 2013, 12:10:16 pm
Amazon SES appears to be working just fine using the above settings for sending mail. Now the issue is how to handle bounces from Amazon SES. A Gmail account was setup to handle bounces at a specific address, but according to Amazon SES documentation, the mail notifications will be sent to the FROM address. That's okay, I can work around it.

"If you used the SMTP interface to send the message, then notifications go to the address specified in SMTP's required MAIL FROM command, which overrides any Return-Path: header specified in the SMTP DATA."

The issue is no bounce notification emails are being received into the email account that was set in the MAIL FROM. I've reached out to Amazon on that, but lets say they were being received though, how would CiviCRM handle them? According to the documentation they should look like the example in this blog: http://sesblog.amazon.com/post/Tx2H36ZIFTEVXOZ/Goodbye-blacklist-Introducing-the-suppression-list.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • Amazon SES and 4.4

This forum was archived on 2017-11-26.