# Using mailcow as mail server

**URL:** <https://forum.gitea.com/t/using-mailcow-as-mail-server/7705>\
**Category:** Install/Maintain/Configure\
**Created:** [August 10, 2023, 8:30pm UTC](https://forum.gitea.com/t/using-mailcow-as-mail-server/7705 "2023-08-10T20:30:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![huskee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/huskee/32/3964_2.png) [@huskee](https://forum.gitea.com/u/huskee)\
**Post date:** [August 10, 2023, 8:30pm UTC](https://forum.gitea.com/t/using-mailcow-as-mail-server/7705/1 "2023-08-10T20:30:27Z")

</div>

I am trying to use a local installation of mailcow:dockerized as the mailserver for gitea’s mailer. No matter which config I use, it won’t work. Sometimes gitea throws a Gateway Time-out error, some other times it connects to the mail server, then immediately timeouts/gets disconnected (as per the postfix/dovecot logs). Is there some special procedure to use a local mailserver for gitea?

---

<div class="post-metadata">

**Author:** ![huskee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/huskee/32/3964_2.png) [@huskee](https://forum.gitea.com/u/huskee)\
**Post date:** [August 11, 2023, 11:11am UTC](https://forum.gitea.com/t/using-mailcow-as-mail-server/7705/2 "2023-08-11T11:11:46Z")

</div>

UPDATE: problem seems to exist only with the docker version. Downloaded the binary and it works fine.
