메일 반송에 대한 SMTP 응답 설정

메일 반송에 대한 SMTP 응답 설정

안녕하세요,

메일 서버의 경우 내 메일 서버가 보내는 모든 반송 메일을 읽어야 합니다. 반송이 발생하면 때로는 550 사서함을 찾을 수 없다는 것과 같은 SMTP 오류 응답이 포함된 응답을 받습니다.

예를 들어 이메일 주소를 라우팅할 수 없는 경우 내 자체 SMTP 서버에서 보낸 이메일이 반송되는 경우 항상 그런 것은 아닙니다. 꽤 장황하지 않은 응답 코드가 표시되고 때로는 전혀 응답 코드가 표시되지 않는 경우도 있습니다.

업데이트

반송 이메일의 예:

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  [email protected]
    SMTP error from remote mail server after RCPT TO:<[email protected]>:
    host mx4.hotmail.com [65.55.33.135]: 550 Requested action not taken:
    mailbox unavailable


  ------ This is a copy of the message, including all the headers. ------

다른 예시:

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  [email protected]


------ This is a copy of the message, including all the headers. ------

보시다시피 myowndomain.com에서 보낸 메일에는 빈 응답이 있습니다. 사서함을 찾을 수 없기 때문에 둘 다 반송됩니다.

제 질문은: 반송 메일에 대한 응답 코드를 생성할 때 myowndomain.com의 메일 서버가 더 장황해질 수 있습니까? 그렇다면 Exim이나 Postfix 또는 기타 SMTP 소프트웨어를 사용하여 이를 어떻게 설정합니까?

답변1

아직 시도해보지 않았다면 Postfix를 사용해 보세요. 기본적으로 자세한 반송 메시지(hotmail과 같은)를 제공합니다.

사용자 지정 반송 메시지를 보내도록 Postfix를 추가로 구성할 수 있습니다. http://www.postfix.org/bounce.5.html

잘못된 수신자에 대한 내 Postfix 서버의 응답:

This is the mail system at host mail.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

               The mail system

<[email protected]>: unknown user: "fakeuser"

관련 정보