# 设置路由器端口转发以接收邮件

**URL:** <https://meta.discourse.org/t/getting-incoming-mail-to-work-when-port-forwarding-from-a-router/219128>\
**Category:** Self-hosting\
**Created:** [2022 年2 月 23 日 01:19 UTC](https://meta.discourse.org/t/getting-incoming-mail-to-work-when-port-forwarding-from-a-router/219128 "2022-02-23T01:19:17Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
发布日期： [2022 年11 月 19 日 20:10 UTC](https://meta.discourse.org/t/getting-incoming-mail-to-work-when-port-forwarding-from-a-router/219128/3 "2022-11-19T20:10:40Z")

</div>

> [@markcoley](#):
>
> 有没有办法自动添加额外的行到 mail-receiver.yml 文件？

您可以查看其他修改文件的模板。例如，Web 模板就是这样做的。

---

_[View the full topic](https://meta.discourse.org/t/getting-incoming-mail-to-work-when-port-forwarding-from-a-router/219128)._
