# SMTP timeout while imap is working

**URL:** <https://forum.mautic.org/t/smtp-timeout-while-imap-is-working/25207>\
**Category:** Product Support\
**Created:** [August 28, 2022, 7:24pm UTC](https://forum.mautic.org/t/smtp-timeout-while-imap-is-working/25207 "2022-08-28T19:24:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdoering](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/sdoering/32/8909_2.png) [@sdoering](https://forum.mautic.org/u/sdoering)\
**Post date:** [August 28, 2022, 7:24pm UTC](https://forum.mautic.org/t/smtp-timeout-while-imap-is-working/25207/1 "2022-08-28T19:24:27Z")

</div>

**Your software**  
My Mautic version is: 4.3.1  
My PHP version is: 7.4.30  
My Database type and version is: mysql Ver 15.1 Distrib 10.3.22-MariaDB, for Linux (x86\_64) using readline 5.1

**Your problem**  
My problem is: I am trying to setup the email configuration in Mautic. I input my smtp data like provided by my host ([uberspace.de](http://uberspace.de)).

The data I put in is:

- SMTP host: [longmore.uberspace.de](http://longmore.uberspace.de)
- Port: 465
- SMTP encryption type: TLS
- SMTP authentication mode: Login
- Username: my system email address as required per [uberspace handbook](https://manual.uberspace.de/mail-access/)
- Passwort: my respective passwort

I am trying the “test connection” button, but I receive the following error. These errors are showing in the log:

```auto
Connection to tcp://longmore.uberspace.de:465 Timed Out Log data: ++ Starting Swift_SmtpTransport !! Connection to tcp://longmore.uberspace.de:465 Timed Out (code: 0)
++ Starting Swift_SmtpTransport !! Connection to tcp://longmore.uberspace.de:465 Timed Out (code: 0)

```

Steps I have tried to fix the problem: I tried the same username/pw combination in the IMAP part of the config it worked. I changed the password. I also changed the login method to “plain”.

I am currently a bit lost for ideas and could use some help. Thanks a lot in advance.

---

<div class="post-metadata">

**Author:** ![sdoering](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/sdoering/32/8909_2.png) [@sdoering](https://forum.mautic.org/u/sdoering)\
**Post date:** [August 29, 2022, 8:31am UTC](https://forum.mautic.org/t/smtp-timeout-while-imap-is-working/25207/2 "2022-08-29T08:31:36Z")

</div>

> [@sdoering](#):
>
> - Port: 465
> - SMTP encryption type: TLS

Fixed it:

- Port: 465
- SMTP encryption type: **SSL**

Error in front of keyboard. One shouldn’t debug after a long day.
