# 라우터 포트 포워딩 시 수신 메일 설정 방법

**URL:** <https://meta.discourse.org/t/getting-incoming-mail-to-work-when-port-forwarding-from-a-router/219128>\
**Category:** Self-hosting\
**Created:** [2월 23, 2022, 1: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:** 2

<div class="post-metadata">

**Author:** ![markcoley](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markcoley/32/242366_2.png) [@markcoley](https://meta.discourse.org/u/markcoley)\
**Post date:** [2월 23, 2022, 3:13오후 UTC](https://meta.discourse.org/t/getting-incoming-mail-to-work-when-port-forwarding-from-a-router/219128/2 "2022-02-23T15:13:43Z")

</div>

다시 시도해 보고 나서야 /etc/hosts 파일에 IP 주소/호스트명을 반대로 입력했음을 깨달았습니다. 이제 작동하는 것 같습니다. 하지만 메일 수신기 컨테이너를 재시작하면 컨테이너의 /etc/hosts 파일에 추가한 추가 줄이 사라집니다. mail-receiver.yml 파일에서 이 추가 줄을 자동으로 추가할 수 있는 방법이 있을까요?

---

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