# Problem in Connecting my SMTP server

**URL:** https://forum.mautic.org/t/problem-in-connecting-my-smtp-server/9474
**Category:** Product Support
**Created:** [September 15, 2017, 1:01am UTC](https://forum.mautic.org/t/problem-in-connecting-my-smtp-server/9474 "2017-09-15T01:01:36Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![markcris12](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@markcris12](https://forum.mautic.org/u/markcris12)
#### Post date: [September 15, 2017, 1:01am UTC](https://forum.mautic.org/t/problem-in-connecting-my-smtp-server/9474/1 "2017-09-15T01:01:36Z")

</div>

Hello I have a problem connecting my smtp server. I tried testing and sending service like elastic email, other smtp service. It appears error and loads forever/Long. I think my SMTP is broken it can’t connect all servers. Pls help.

---

<div class="post-metadata">

### Author: ![markcris12](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@markcris12](https://forum.mautic.org/u/markcris12)
#### Post date: [September 15, 2017, 1:01am UTC](https://forum.mautic.org/t/problem-in-connecting-my-smtp-server/9474/2 "2017-09-15T01:01:36Z")

</div>

Hello I have a problem connecting my smtp server. I tried testing and sending service like elastic email, other smtp service. It appears error and loads forever/Long. I think my SMTP is broken it can’t connect all servers. Pls help.

---

<div class="post-metadata">

### Author: ![markcris12](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@markcris12](https://forum.mautic.org/u/markcris12)
#### Post date: [September 15, 2017, 6:14am UTC](https://forum.mautic.org/t/problem-in-connecting-my-smtp-server/9474/3 "2017-09-15T06:14:02Z")

</div>

Can anyone help me to integrate my SMTP service to my mautic ? Thanks the problem i encounter is it loads longer to connect in test and send email.

---

<div class="post-metadata">

### Author: ![fususu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/fususu/32/215_2.png) [@fususu](https://forum.mautic.org/u/fususu)
#### Post date: [September 15, 2017, 6:24am UTC](https://forum.mautic.org/t/problem-in-connecting-my-smtp-server/9474/4 "2017-09-15T06:24:29Z")

</div>

I’m using [elasticemail.com](https://elasticemail.com/account#/create-account?r=d472b995-a902-4682-83ca-44daf1b4e341) for years, several days ago I switched to Mautic and have problem when connecting and sending test mail too, it keep showing 502 authen error.

I post a support ticket on [support.elasticemail.com](http://support.elasticemail.com), they’re good and show me the solution right away. Finally, I got it fixed by using alternative port 587, and my API key as both username and password (type = login) instead of port 25, and my usual username.

You can try switch the port, or use API key as username & pass. Try some combination, it will work 🙂 And don’t forget to check your server if they block some ports. And if not work, try to reach out your SMTP provider and let them help.

---

<div class="post-metadata">

### Author: ![markcris12](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@markcris12](https://forum.mautic.org/u/markcris12)
#### Post date: [September 15, 2017, 6:41am UTC](https://forum.mautic.org/t/problem-in-connecting-my-smtp-server/9474/5 "2017-09-15T06:41:53Z")

</div>

Hi, Thank you for your reply.I tried to change the port 587, 25, and 2525 but still the problem i encounter is loading longer. How to check if my port is blocked? and what server I should check mautic, webhosting or elastic email. Thanks for your reply 🙂

---

<div class="post-metadata">

### Author: ![markcris12](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@markcris12](https://forum.mautic.org/u/markcris12)
#### Post date: [September 15, 2017, 6:59am UTC](https://forum.mautic.org/t/problem-in-connecting-my-smtp-server/9474/6 "2017-09-15T06:59:38Z")

</div>

WOW it worked now! the port is 465. Thank you for helping me out 🙂

---

<div class="post-metadata">

### Author: ![fususu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/fususu/32/215_2.png) [@fususu](https://forum.mautic.org/u/fususu)
#### Post date: [September 15, 2017, 3:39pm UTC](https://forum.mautic.org/t/problem-in-connecting-my-smtp-server/9474/7 "2017-09-15T15:39:56Z")

</div>

It’s great to hear that! What SMTP provider you are using? The quickest way to check if a port is open or not on your server, just type your domain here —\> [https://mxtoolbox.com/PortScan.aspx](https://mxtoolbox.com/PortScan.aspx)
