# Elastic email connection issue

**URL:** <https://forum.mautic.org/t/elastic-email-connection-issue/11971>\
**Category:** Product Support\
**Created:** [December 10, 2019, 7:00pm UTC](https://forum.mautic.org/t/elastic-email-connection-issue/11971 "2019-12-10T19:00:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jonny/32/1252_2.png) [@jonny](https://forum.mautic.org/u/jonny)\
**Post date:** [December 10, 2019, 7:00pm UTC](https://forum.mautic.org/t/elastic-email-connection-issue/11971/1 "2019-12-10T19:00:04Z")

</div>

Hello, I am trying to connect mautic to elastic email. i have tried everything i found on the forum including using both api key as username and password. trying other ports.

This is the error message I’m getting

Connection could not be established with host [smtp.elasticemail.com](http://smtp.elasticemail.com) [#0] Log data: ++ Starting Swift\_SmtpTransport !! Connection could not be established with host [smtp.elasticemail.com](http://smtp.elasticemail.com) [#0] (code: 0)  
++ Starting Swift\_SmtpTransport !! Connection could not be established with host [smtp.elasticemail.com](http://smtp.elasticemail.com) [#0] (code: 0)

---

<div class="post-metadata">

**Author:** ![MxyzptlkFishStix](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mxyzptlkfishstix/32/1132_2.png) [@MxyzptlkFishStix](https://forum.mautic.org/u/MxyzptlkFishStix)\
**Post date:** [December 10, 2019, 11:17pm UTC](https://forum.mautic.org/t/elastic-email-connection-issue/11971/2 "2019-12-10T23:17:56Z")

</div>

Your outbound SMTP ports are blocked. Contact your host provider and request to remove the block.

---

<div class="post-metadata">

**Author:** ![geniusdibya](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/geniusdibya/32/1597_2.png) [@geniusdibya](https://forum.mautic.org/u/geniusdibya)\
**Post date:** [February 5, 2020, 7:32am UTC](https://forum.mautic.org/t/elastic-email-connection-issue/11971/3 "2020-02-05T07:32:24Z")

</div>

> [@jonny](#):
>
> [elasticemail.com](http://elasticemail.com)

Most of the shared hosting providers/VPS, block outbound SMTP ports 25 and 587. They do this purposely to prevent their network from sending unnecessary spam messages. There are two workarounds to this problem; either contact your hosting provider to unblock the port as mentioned by @MxyzptlkFishStix above or try using port 2525 which is also supported by most of the SMTP Relay providers.

Note: Port 2525 is a non-standard SMTP port, but its been used widely these days. Gmail SMTP has been the key influencer for this port, as they accept SMTP connections on 2525.
