# Can't send emails -- Mailgun

**URL:** <https://forum.ghost.org/t/cant-send-emails-mailgun/15775>\
**Category:** Developer help\
**Created:** [July 11, 2020, 6:40am UTC](https://forum.ghost.org/t/cant-send-emails-mailgun/15775 "2020-07-11T06:40:03Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![telefunk](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@telefunk](https://forum.ghost.org/u/telefunk)\
**Post date:** [July 21, 2020, 12:41pm UTC](https://forum.ghost.org/t/cant-send-emails-mailgun/15775/8 "2020-07-21T12:41:36Z")

</div>

Thanks, this set me on the right track to solve my problem. Port 2525 was needed to send emails out from a Linode server.

After that sending an email resulted in the following error

> Error sending email! Error sending email: Failed to send email. Reason: 140261834299264:error:1408F10B:SSL routines:ssl3\_get\_record:wrong version number:…/deps/openssl/openssl/ssl/record/ssl3\_record.c:332: . Please check your email settings and resend the invitation.

After some digging I found the following link explaining the problem

> [@Problems creating new users in new ghost installation due to mail configuration](https://forum.ghost.org/t/problems-creating-new-users-in-new-ghost-installation-due-to-mail-configuration/13031):
>
> Hello everybody. I’am new to the forum and to ghost. We are a spanish Photography community with a [forum running discourse](https://foro.ojodigital.com). We needed a front page blog (discourse does not have one like our old vBulletin) so we are tying ghost, which seems a beatifull and simple blogging system that can be integrated with discourse. We are going to install discourse and ghost in the same virtual machine, and we want to isolate them using docker (in order to prevent compatibility problems and you know discour…

> The problem is that when you use secureConnection=1 the mail system (in node.js?) seems to try to connect using SSLv3.  
> SSLv3 is a deprecated protocol that thats some vulnerabilities and is exposed to POODLE attack.  
> So nginx.conf is usually configured to disble SSLv3 protocol and thus the error.

Instead of configuring nginx to use SSLv3 and opening up my server to a vulnerability, I just changed secureConnection to false instead of secure.

The follow link explains why that works.

> **[Send email with Ghost using SMTP authentication and TLS encryption](https://www.saotn.org/send-email-ghost-using-smtp-authentication-tls-encryption/)**
>
> Send securely SMTP email from your Ghost blog using Node.js and Nodemailer! Send authenticated SMTP over TLS from your site!

Thanks for the reply. It pushed me in the right direction. I never thought that Linode would block the default port.

---

_[View the full topic](https://forum.ghost.org/t/cant-send-emails-mailgun/15775)._
