# 在服务器阻止出站端口25/465/587的情况下如何发送电子邮件

**URL:** <https://meta.discourse.org/t/how-to-send-emails-on-server-with-25-465-587-outbound-blocked/86309>\
**Category:** Product Support\
**Created:** [2018 年4 月 27 日 14:56 UTC](https://meta.discourse.org/t/how-to-send-emails-on-server-with-25-465-587-outbound-blocked/86309 "2018-04-27T14:56:57Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![Vencent](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vencent/32/120037_2.png) [@Vencent](https://meta.discourse.org/u/Vencent)\
发布日期： [2018 年4 月 27 日 16:04 UTC](https://meta.discourse.org/t/how-to-send-emails-on-server-with-25-465-587-outbound-blocked/86309/3 "2018-04-27T16:04:19Z")

</div>

hmmmmm…I think using their API is the “native” way to use Mailgun and SMTP is just for compatibility. I don’t know if I’m right. But I think it may be feasible to use another server as a relay via an SSH tunnel. I have no idea how to actually do this. But I noticed there are some people doing this way, though they are not for Discourse. Theoretically, it should work.

---

_[View the full topic](https://meta.discourse.org/t/how-to-send-emails-on-server-with-25-465-587-outbound-blocked/86309)._
