오래된 주제를 꺼내 드려 죄송합니다. 저도 비슷한 상황을 겪고 있습니다. 최근 개인 이메일을 Gmail에서 셀프호스팅 이메일 환경으로 이전했는데, 여기서 원포스터(OP)와 동일한 문제에 부딪혔습니다. Gmail에서 제 Discourse 사이트로 이메일을 보내는 것은 가능하지만, 셀프호스팅 메일 서버에서 보낼 수는 없습니다. 대신 바운스(bounce)가 발생하며, 메일 수신 로그에 OP와 동일한 오류가 표시됩니다.
셀프호스팅 이메일은 다소 어려울 것(이메일은 어렵죠!)이라고 예상했지만, 일단 시도해 보았습니다. 이제 몇 달이 지났고, 지금까지는 다른 곳으로 이메일이 잘 전달되고 있으며, mxtoolbox.com 보고서를 확인해보니 제 도메인과 IP에 대해 모든 항목이 녹색(정상)으로 표시되고 있습니다.
도움 주실 수 있는 조언이 있다면 감사하겠습니다!
수정: 실제로 제 오류 메시지가 약간 다르다는 것을 깨달았습니다.
<22>Apr 3 18:14:28 policyd-spf[130]: : 550 5.7.23 Message rejected due to: SPF fail - not authorized. Please see http://www.openspf.net/Why?s=mfrom;id=user@example.org;ip=192.0.2.1;r=example-site.example.orgApr 03 18:14:28 discourse-mail-receiver-example-site postfix/smtpd[122]: NOQUEUE: reject: RCPT from unknown[192.0.2.1]: 550 5.7.23 <staff@example-site.example.org>: Recipient address rejected: Message rejected due to: SPF fail - not authorized. Please see http://www.openspf.net/Why?s=mfrom;id=user@example.org;ip=192.0.2.1;r=example-site.example.org; from=<user@example.org> to=<staff@example-site.example.org> proto=ESMTP helo=<discourse.example.org>
Apr 03 18:14:28 discourse-mail-receiver-example-site postfix/smtpd[122]: using backwards-compatible default setting smtpd_relay_before_recipient_restrictions=no to reject recipient "staff@example-site.example.org" from client "unknown[192.0.2.1]"
Apr 03 18:14:28 discourse-multisite-mail-receiver-example-site postfix/smtpd[122]: disconnect from unknown[192.0.2.1] ehlo=1 mail=1 rcpt=0/1 data=0/1 rset=1 quit=1 commands=4/6
http://www.openspf.net/Why?s=mfrom;id=user@example.org 링크가 작동하지 않습니다. openspf.net가 더 이상 존재하지 않는 것 같습니다.