# Amazon SES Issue

**URL:** <https://forum.mautic.org/t/amazon-ses-issue/2482>\
**Category:** Product Support\
**Created:** [October 7, 2015, 12:17am UTC](https://forum.mautic.org/t/amazon-ses-issue/2482 "2015-10-07T00:17:37Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![christopherhussey](https://avatars.discourse-cdn.com/v4/letter/c/858c86/32.png) [@christopherhussey](https://forum.mautic.org/u/christopherhussey)\
**Post date:** [October 7, 2015, 12:17am UTC](https://forum.mautic.org/t/amazon-ses-issue/2482/1 "2015-10-07T00:17:37Z")

</div>

Hey Guys  
  
  
  
I am installing Mautic for the first time and getting everything configured.  
  
  
  
I currently have SENDY configured to use AMAZON SES and it is working great. I say this to indicate that my SES is operating great.  
  
  
  
I have established SMTP Username & Password in Amazon SES, however, neither the TEST CONNECTION or SEND TEST EMAIL will work.  
  
  
  
I have attempted to configure using both AMAZON SES and OTHER SMTP SERVER.  
  
  
  
Neither will connect.  
  
  
  
This is the error that I am receiving.

* * *
  
Connection could not be established with host email-smtp.us-east-1.amazonaws.com [Connection refused #111] Log data: ++ Starting MauticEmailBundleSwiftmailerTransportAmazonTransport !! Connection could not be established with host email-smtp.us-east-1.amazonaws.com [Connection refused #111]  
++ Starting MauticEmailBundleSwiftmailerTransportAmazonTransport !! Connection could not be established with host email-smtp.us-east-1.amazonaws.com [Connection refused #111]  

* * *
  
Help Please ![:-(]( ":-(")  
  
Thanks in advance.  
  
C

---

<div class="post-metadata">

**Author:** ![christopherhussey](https://avatars.discourse-cdn.com/v4/letter/c/858c86/32.png) [@christopherhussey](https://forum.mautic.org/u/christopherhussey)\
**Post date:** [October 7, 2015, 12:17am UTC](https://forum.mautic.org/t/amazon-ses-issue/2482/2 "2015-10-07T00:17:37Z")

</div>

Hey Guys

I am installing Mautic for the first time and getting everything configured.

I currently have SENDY configured to use AMAZON SES and it is working great. I say this to indicate that my SES is operating great.

I have established SMTP Username & Password in Amazon SES, however, neither the TEST CONNECTION or SEND TEST EMAIL will work.

I have attempted to configure using both AMAZON SES and OTHER SMTP SERVER.

Neither will connect.

This is the error that I am receiving.

* * *

Connection could not be established with host [email-smtp.us-east-1.amazonaws.com](http://email-smtp.us-east-1.amazonaws.com) [Connection refused #111] Log data: ++ Starting MauticEmailBundleSwiftmailerTransportAmazonTransport !! Connection could not be established with host [email-smtp.us-east-1.amazonaws.com](http://email-smtp.us-east-1.amazonaws.com) [Connection refused #111]  
++ Starting MauticEmailBundleSwiftmailerTransportAmazonTransport !! Connection could not be established with host [email-smtp.us-east-1.amazonaws.com](http://email-smtp.us-east-1.amazonaws.com) [Connection refused #111]

* * *

Help Please ☹

Thanks in advance.

C

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [October 7, 2015, 7:11am UTC](https://forum.mautic.org/t/amazon-ses-issue/2482/3 "2015-10-07T07:11:45Z")

</div>

The error message is from Amazon service, it’s not issue of Mautic. Doublecheck your email settings. Pay attention to encryption and port.

---

<div class="post-metadata">

**Author:** ![christianmls](https://avatars.discourse-cdn.com/v4/letter/c/c77e96/32.png) [@christianmls](https://forum.mautic.org/u/christianmls)\
**Post date:** [October 11, 2015, 9:22pm UTC](https://forum.mautic.org/t/amazon-ses-issue/2482/4 "2015-10-11T21:22:55Z")

</div>

I have the same problem. Could you solve this?

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [October 12, 2015, 7:38am UTC](https://forum.mautic.org/t/amazon-ses-issue/2482/5 "2015-10-12T07:38:53Z")

</div>

Please, check

[https://www.mautic.org/community/index.php/443-amazon-ses-connect-error/0](https://www.mautic.org/community/index.php/443-amazon-ses-connect-error/0)  
and  
[https://github.com/mautic/mautic/issues/559](https://github.com/mautic/mautic/issues/559)  
and  
[https://www.mautic.org/community/index.php/295-cant-send-initial-email-error-integrating-with-sendgrid/0](https://www.mautic.org/community/index.php/295-cant-send-initial-email-error-integrating-with-sendgrid/0)  
and  
[https://www.mautic.org/community/index.php/487-configuration-mail-settings/0](https://www.mautic.org/community/index.php/487-configuration-mail-settings/0)

and basically all suggestions came out of this google search:  
[https://www.google.cz/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8&client=ubuntu#q=mautic+Connection+could+not+be+established+with+host](https://www.google.cz/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8&client=ubuntu#q=mautic+Connection+could+not+be+established+with+host)

---

<div class="post-metadata">

**Author:** ![christianmls](https://avatars.discourse-cdn.com/v4/letter/c/c77e96/32.png) [@christianmls](https://forum.mautic.org/u/christianmls)\
**Post date:** [October 12, 2015, 12:57pm UTC](https://forum.mautic.org/t/amazon-ses-issue/2482/6 "2015-10-12T12:57:16Z")

</div>

Hi I have a problem with Amazon SES.

My configuration:

Service to send mail through: Other SMTP Server  
SMTP host: [email-smtp.us-west-2.amazonaws.com](http://email-smtp.us-west-2.amazonaws.com)  
SMTP port: 587 test with 25 and 465  
SMTP encryption type: TLS  
SMTP authentication mode: Login and Plain  
Username for the selected mail service: amazonuser  
Password for the selected mail service: passuser

Connection could not be established with host [email-smtp.us-west-2.amazonaws.com](http://email-smtp.us-west-2.amazonaws.com) [Connection timed out #110] Log data: ++ Starting Swift\_SmtpTransport !! Connection could not be established with host [email-smtp.us-west-2.amazonaws.com](http://email-smtp.us-west-2.amazonaws.com) [Connection timed out #110]  
++ Starting Swift\_SmtpTransport !! Connection could not be established with host [email-smtp.us-west-2.amazonaws.com](http://email-smtp.us-west-2.amazonaws.com) [Connection timed out #110]

I tested credentials with Outlook and works fine.

I checked with other smtp server and Mautic work fine.

I checked with $fp = fsockopen(“tls://email-smtp.us-west-2.amazonaws.com”, 465, $errno, $errstr, 10); and this work  
I checked with telnet work fine

telnet [email-smtp.us-west-2.amazonaws.com](http://email-smtp.us-west-2.amazonaws.com) 587  
Trying 54.69.81.169…  
Connected to [email-smtp.us-west-2.amazonaws.com](http://email-smtp.us-west-2.amazonaws.com).  
Escape character is ‘^]’.  
220 [email-smtp.amazonaws.com](http://email-smtp.amazonaws.com) ESMTP SimpleEmailService-1207632523 GvOAPRFktyGUiNwgKO7i

---

<div class="post-metadata">

**Author:** ![Roberto](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@Roberto](https://forum.mautic.org/u/Roberto)\
**Post date:** [January 23, 2016, 8:17am UTC](https://forum.mautic.org/t/amazon-ses-issue/2482/7 "2016-01-23T08:17:42Z")

</div>

Hello,

I follow the tutorial step by step and can´t connect with Amazon SES.  
Tutorial: [https://medium.com/@AndreiVoica/how-to-integrate-mautic-with-amazon-ses-7fe066e9131c#.g0oppn7iu](https://medium.com/@AndreiVoica/how-to-integrate-mautic-with-amazon-ses-7fe066e9131c#.g0oppn7iu)

Connection could not be established with host [email-smtp.us-west-2.amazonaws.com](http://email-smtp.us-west-2.amazonaws.com) [Connection timed out #110] Log data: ++ Starting Swift\_SmtpTransport !! Connection could not be established with host [email-smtp.us-west-2.amazonaws.com](http://email-smtp.us-west-2.amazonaws.com) [Connection timed out #110]  
++ Starting Swift\_SmtpTransport !! Connection could not be established with host [email-smtp.us-west-2.amazonaws.com](http://email-smtp.us-west-2.amazonaws.com) [Connection timed out #110]

My Mautic is host on DigitalOcean - Ubunto - 25, 465 and 587 are open.  
Please, somebody help?

---

<div class="post-metadata">

**Author:** ![amagdy](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@amagdy](https://forum.mautic.org/u/amagdy)\
**Post date:** [September 30, 2016, 12:31pm UTC](https://forum.mautic.org/t/amazon-ses-issue/2482/8 "2016-09-30T12:31:11Z")

</div>

I was experiencing the same issue and this was resolved by disabling SMTP Restrictions in my server environment as per the attached image. ![](https://cloud.githubusercontent.com/assets/22257012/18983251/f311e2c2-86eb-11e6-808b-f8c1a6d44080.JPG)

I was able to use “Amazon SES” as my option in “Service to send Email through”.

---

<div class="post-metadata">

**Author:** ![Edsantos70](https://avatars.discourse-cdn.com/v4/letter/e/71c47a/32.png) [@Edsantos70](https://forum.mautic.org/u/Edsantos70)\
**Post date:** [March 25, 2016, 11:55pm UTC](https://forum.mautic.org/t/amazon-ses-issue/2482/9 "2016-03-25T23:55:44Z")

</div>

Hey Guys, any news about this question?

I ´m having the same problem with Digital Ocean and SES Service.  
Someone could help us?

Ed

---

<div class="post-metadata">

**Author:** ![Edsantos70](https://avatars.discourse-cdn.com/v4/letter/e/71c47a/32.png) [@Edsantos70](https://forum.mautic.org/u/Edsantos70)\
**Post date:** [March 26, 2016, 4:12am UTC](https://forum.mautic.org/t/amazon-ses-issue/2482/10 "2016-03-26T04:12:05Z")

</div>

Guys,

Finally I discovered a solution for Digital Ocean hosting. You need to use another port to open a TLS tunnel between your server and AmazonAWS.  
Here you are what I did…

On configuration for Amazon SES on Mautic I put the following data:

Server: [email-smtp.us-west-2.amazonaws.com](http://email-smtp.us-west-2.amazonaws.com) (It worked fine also with other Amazon SMTP endpoint)  
Port SMTP: 2587  
Protocol: TLS

After that, the connection test worked and sending email test also worked.

I hope you can apply this solution to your Mautic hosted on Digital Ocean.

Ed

---

<div class="post-metadata">

**Author:** ![Edsantos70](https://avatars.discourse-cdn.com/v4/letter/e/71c47a/32.png) [@Edsantos70](https://forum.mautic.org/u/Edsantos70)\
**Post date:** [March 26, 2016, 4:40am UTC](https://forum.mautic.org/t/amazon-ses-issue/2482/11 "2016-03-26T04:40:17Z")

</div>

![](http://edmail.edsorte.net/mautic1.jpg)

---

<div class="post-metadata">

**Author:** ![Rodrigo](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@Rodrigo](https://forum.mautic.org/u/Rodrigo)\
**Post date:** [March 27, 2016, 2:56pm UTC](https://forum.mautic.org/t/amazon-ses-issue/2482/12 "2016-03-27T14:56:40Z")

</div>

Edsantos 70, was with the same problem, use the 2587 port and the connection test and sending e-mail test functioned properly, but when sending a campaign, has failed to send. You know what the problem?

---

<div class="post-metadata">

**Author:** ![Rodrigo](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@Rodrigo](https://forum.mautic.org/u/Rodrigo)\
**Post date:** [March 29, 2016, 11:29am UTC](https://forum.mautic.org/t/amazon-ses-issue/2482/13 "2016-03-29T11:29:25Z")

</div>

Mxyzptlk Fishstix, took the test and returns the same result as you mentioned. So I contacted the Digital Ocean and requested the opening of the port 587. After opening the shipping test and sending test emails, settings worked. The problem now is that I do not receive emails in Gmail and clicks and openings are not being accounted for.

---

<div class="post-metadata">

**Author:** ![Jarstein](https://avatars.discourse-cdn.com/v4/letter/j/f04885/32.png) [@Jarstein](https://forum.mautic.org/u/Jarstein)\
**Post date:** [October 20, 2016, 8:08am UTC](https://forum.mautic.org/t/amazon-ses-issue/2482/14 "2016-10-20T08:08:58Z")

</div>

I have the same issue with sending via Amazon SES. My host, Bluehost claims it’s not any problem on their side.

I get this error:  
Connection could not be established with host [email-smtp.eu-west-1.amazonaws.com](http://email-smtp.eu-west-1.amazonaws.com) [Connection timed out #110] Log data: ++ Starting MauticEmailBundleSwiftmailerTransportAmazonTransport !! Connection could not be established with host [email-smtp.eu-west-1.amazonaws.com](http://email-smtp.eu-west-1.amazonaws.com) [Connection timed out #110] (code: 0)  
++ Starting MauticEmailBundleSwiftmailerTransportAmazonTransport !! Connection could not be established with host [email-smtp.eu-west-1.amazonaws.com](http://email-smtp.eu-west-1.amazonaws.com) [Connection timed out #110] (code: 0)

---

<div class="post-metadata">

**Author:** ![robwent](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/robwent/32/179_2.png) [@robwent](https://forum.mautic.org/u/robwent)\
**Post date:** [April 19, 2017, 4:37pm UTC](https://forum.mautic.org/t/amazon-ses-issue/2482/15 "2017-04-19T16:37:34Z")

</div>

For me this was an issue with the whm firewall (ConfigServer Security & Firewall).

I opened /etc/csf/csf.conf and searched for:

# Block outgoing SMTP except for root, exim and mailman (forces scripts/users

# to use the exim/sendmail binary instead of sockets access). This replaces the

# protection as WHM \> Tweak Settings \> SMTP Tweaks

# 

# This option uses the iptables ipt\_owner/xt\_owner module and must be loaded

# for it to work. It may not be available on some VPS platforms

# 

# Note: Run /etc/csf/csftest.pl to check whether this option will function on

# this server

SMTP\_BLOCK = “1”

Changed that to 0 and then restarted the service and then I could connect.

---

<div class="post-metadata">

**Author:** ![vinay](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/vinay/32/316_2.png) [@vinay](https://forum.mautic.org/u/vinay)\
**Post date:** [May 1, 2018, 2:49pm UTC](https://forum.mautic.org/t/amazon-ses-issue/2482/16 "2018-05-01T14:49:15Z")

</div>

Error while using SMTP AWS SES

Connection could not be established with host [email-smtp.us-east-1.amazonaws.com](http://email-smtp.us-east-1.amazonaws.com) Connection refused 111 Log data Starting Mautic EmailBundle Swiftmailer Transport AmazonTransport Connection could not be established with host [email-smtp.us-east-1.amazonaws.com](http://email-smtp.us-east-1.amazonaws.com) Connection refused 111

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:58pm UTC](https://forum.mautic.org/t/amazon-ses-issue/2482/17 "2020-02-02T22:58:00Z")

</div>


