# Mailgun에서 Amazon SES로 전환하는 아마추어

**URL:** <https://meta.discourse.org/t/moving-from-mailgun-to-amazon-ses-as-an-amateur/372851>\
**Category:** Product Support\
**Tags:** email\
**Created:** [7월 3, 2025, 11:22오후 UTC](https://meta.discourse.org/t/moving-from-mailgun-to-amazon-ses-as-an-amateur/372851 "2025-07-03T23:22:22Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Jonathan5](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonathan5/32/197134_2.png) [@Jonathan5](https://meta.discourse.org/u/Jonathan5)\
**Post date:** [7월 3, 2025, 11:22오후 UTC](https://meta.discourse.org/t/moving-from-mailgun-to-amazon-ses-as-an-amateur/372851/1 "2025-07-03T23:22:22Z")

</div>

모든 단계에 대해 메모를 한 것은 아니지만, _아마도_ 잘 작동한 것 같습니다. 질문은 기꺼이 답변해 드리겠지만, 답변의 질을 보장할 수는 없습니다 🙂

forum.example.com에 대한 새로운 Amazon SES ID를 생성했습니다. DMARC 등을 위해 추가해야 할 레코드가 표시됩니다.

SES SMTP 자격 증명을 받는 방법에 대한 설명: [Obtaining Amazon SES SMTP credentials - Amazon Simple Email Service](https://docs.aws.amazon.com/ses/latest/dg/smtp-credentials.html)

app.yml의 SMTP 설정을 변경했습니다 - [Troubleshoot email on a new Discourse install](https://meta.discourse.org/t/troubleshoot-email-on-a-new-discourse-install/16326) 참조. 이 파일들에 대해 잘 모르겠어서 모든 문자열을 이중 따옴표로 감쌌습니다.

Mailgun의 경우 포트 2525를 사용하고 있었고 `DISCOURSE_SMTP_ENABLE_START_TLS: true`를 주석 처리해 두었습니다.

SES의 경우:

```plaintext
  DISCOURSE_SMTP_ADDRESS: "email-smtp.eu-west-2.amazonaws.com"
  DISCOURSE_SMTP_PORT: 587
  DISCOURSE_SMTP_USER_NAME: "xxx"
  DISCOURSE_SMTP_PASSWORD: "xxx"
  DISCOURSE_SMTP_ENABLE_START_TLS: true # (선택 사항, 기본값 true)

```

아래의 지침을 따랐습니다: [Configure VERP to handle bouncing e-mails](https://meta.discourse.org/t/configure-verp-to-handle-bouncing-e-mails/45343). 참고로 제 SNS URL은 [https://eu-west-2.console.aws.amazon.com/sns/v3/home?region=eu-west-2#/dashboard](https://eu-west-2.console.aws.amazon.com/sns/v3/home?region=eu-west-2#/dashboard) 였습니다.

> [@Discourse](#):
>
> - Discourse에서:
> - OP 상단과 같이 `reply by email enabled` 및 `reply by email address`를 설정
> - `manual polling enabled` 설정
> - AWS에서:
> - SNS Topic 생성
> - 생성된 Topic에 대한 SNS Subscription을 HTTPS로 `https://your.discourse/webhooks/aws`를 가리키도록 생성
> - SES \> Verified Identities로 이동하여 사이트 도메인을 선택하고 Notifications 탭으로 이동. Feedback Notifications를 편집합니다. Bounce feedback과 Complaint feedback을 방금 생성한 SNS Topic으로 설정

"Enable raw message delivery"를 활성화하지 않기로 했습니다(이것이 맞기를 바랍니다).

재빌드(rebuild)를 할 필요가 없었습니다:

> [@Discourse](#):
>
> 재빌드를 하면 깨진 것처럼 보이는 문제들을 해결하는 경우가 많지만 시간이 오래 걸립니다. 전체 재빌드가 필요하지 않은 경우가 있습니다. 위 내용은 일반적으로 가장 좋은 조언이지만, **오직** SMTP 설정만 변경한 경우 전체 재빌드 없이 적용하려면 다음만 수행하면 됩니다:
> 
> ```plaintext
> cd /var/discourse
> ./launcher destroy app
> ./launcher start app
> 
> ```

Discourse - Admin - Email - Email settings - Preview summary - 유효한 수신자와 존재하지 않는 수신자에게 이메일을 테스트하기 위해 이 기능을 사용했습니다.

[https://www.mail-tester.com/에서](https://www.mail-tester.com/%EC%97%90%EC%84%9C) 테스트 - 10/10 🙂

Discourse - Admin - Email - Email logs. 확인하는 데 유용합니다. 참고로 ["Discourse::NotFound" error when click "Email Type" field on admin/email/bounced](https://meta.discourse.org/t/discourse-notfound-error-when-click-email-type-field-on-admin-email-bounced/176011) 의 에러는 더 이상 발생하지 않습니다.

새로운 주제가 예상대로 알림 이메일을 전송하는지 테스트했습니다.

이메일로 답글을 보냈을 때 해당 주제로 답글이 전송되는지 테스트했습니다.

---

_[View the full topic](https://meta.discourse.org/t/moving-from-mailgun-to-amazon-ses-as-an-amateur/372851)._
