# Connection refused when trying custom SMTP Server connection

**URL:** <https://community.auth0.com/t/connection-refused-when-trying-custom-smtp-server-connection/7338>\
**Category:** Get Help\
**Tags:** email-provider\
**Created:** [June 30, 2017, 3:18am UTC](https://community.auth0.com/t/connection-refused-when-trying-custom-smtp-server-connection/7338 "2017-06-30T03:18:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![registration](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@registration](https://community.auth0.com/u/registration)\
**Post date:** [June 30, 2017, 3:18am UTC](https://community.auth0.com/t/connection-refused-when-trying-custom-smtp-server-connection/7338/1 "2017-06-30T03:18:10Z")

</div>

I am trying to connect my email server to connect with Auth0 but I’m unable to connect. Can you please advise what I can change in setup? Error log as follow:

```
{
  "date": "2017-06-29T20:15:57.660Z",
  "type": "fn",
  "description": "To: registration@raceface.com",
  "connection_id": "",
  "details": {
    "email_type": "try_provider_configuration_email",
    "to": "registration@raceface.com",
    "error": "connect ECONNREFUSED 64.141.80.26:587"
  },
  "log_id": "49574419589858254662354613221422369306065753754973503522"
}

```

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [July 3, 2017, 4:32pm UTC](https://community.auth0.com/t/connection-refused-when-trying-custom-smtp-server-connection/7338/2 "2017-07-03T16:32:10Z")

</div>

A possible explanation for the error you’re receiving is that your SMTP server is behind a firewall and as such the connection from Auth0 is being rejected. If this is the case, on the Dashboard page that allows you to configure the provider there’s a note about this that includes the list of IP’s that should be white-listed in the firewall. It goes something like this:

> Heads up! If you are trying to access a service behind a firewall, make sure to open the right ports and allow inbound connections from these IP addresses: x.x.x.x, y.y.y.y, z.z.z.z

Check the Dashboard for the applicable IP addresses; also have in mind the port number you provided when performing the firewall configuration changes.

---

<div class="post-metadata">

**Author:** ![registration](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@registration](https://community.auth0.com/u/registration)\
**Post date:** [July 5, 2017, 12:46am UTC](https://community.auth0.com/t/connection-refused-when-trying-custom-smtp-server-connection/7338/3 "2017-07-05T00:46:00Z")

</div>

Hi Thank you for the quick reply.

Can you share the link please? I tried to search on my dashboard but unable to find.

Thanks, Taral

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [July 5, 2017, 7:01pm UTC](https://community.auth0.com/t/connection-refused-when-trying-custom-smtp-server-connection/7338/4 "2017-07-05T19:01:07Z")

</div>

You should see that message at the following page: [https://manage.auth0.com/#/emails/provider](https://manage.auth0.com/#/emails/provider)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:55am UTC](https://community.auth0.com/t/connection-refused-when-trying-custom-smtp-server-connection/7338/5 "2018-03-02T05:55:05Z")

</div>


