# 在 standalone.yml 上运行构建

**URL:** <https://meta.discourse.org/t/running-a-build-on-standalone-yml/371032>\
**Category:** Support\
**Created:** [2025年六月20日 14:08 UTC](https://meta.discourse.org/t/running-a-build-on-standalone-yml/371032 "2025-06-20T14:08:03Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ryan\_olsen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ryan_olsen/32/508705_2.png) [@ryan\_olsen](https://meta.discourse.org/u/ryan_olsen)\
**Post date:** [2025年六月20日 14:08 UTC](https://meta.discourse.org/t/running-a-build-on-standalone-yml/371032/1 "2025-06-20T14:08:03Z")

</div>

无论我怎么做，我都无法让 Discourse 使用 25 以外的端口发送电子邮件，它运行在独立的 yml 上，我甚至在 yml 中尝试过强制设置，但都没有成功，我现在几乎束手无策了 lol……不确定这是否是一个 bug  
[SMTP OVERRIDE] Configured SMTP: {:address=\u003e"mail.“, :port=\u003e465, :domain=\u003e"th”, :user\_name=\u003e"accounts-no-reply@m", :password=\u003e"“, :authentication=\u003e:plain, :enable\_starttls\_auto=\u003efalse, :ssl=\u003etrue, :openssl\_verify\_mode=\u003e"none”}  
正在测试使用 mail.:25，用户名:accounts-no-reply@，以 plain 身份验证方式发送到 y。  
======================================== ERROR ========================================  
连接到端口 25 失败。  
====================================== SOLUTION =======================================  
最可能的问题是您的服务器阻止了出站 SMTP 流量。  
如果您正在使用 Mailgun 或 Sendgrid 等服务，请尝试使用端口 2525。

---

_[View the full topic](https://meta.discourse.org/t/running-a-build-on-standalone-yml/371032)._
