Server/Linux

DSN : Return receipt

minSoong-e 2009. 12. 7. 21:20

sendmail 기본설정인 서버기준으로,

Nate
에서 메일을 발송할 때, 메일발송후 수신서버에서 “Return receipt” 메일 메시지가

발송되는 현상관련 로그는 아래와 같다.


( aaaaa가 bbbbb에게 메일을 보내면 정상적으로 메일이 수신되었음을 bbbbb계정이 있는
메일서버에서 aaaaa에게 배달성공메시지를 보낸다.)

Nov 20 17:27:26 www sendmail[6375]: nAK8RQT9006375: from=<aaaaa
@nate.com>, size=1023, class=0, nrcpts=1, msgid=<d564454f517ce4d4c83de9da474e40c9$25d9603d@mail3.nate.com>

TP, daemon=Daemon0, relay=[117.xx.xxx.131]

Nov 20 17:27:26 www sendmail[6376]: nAK8RQT9006375: to=bbbbb@ccc.net, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31203, dsn=2.0.0, stat=Sent

Nov 20 17:27:26 www sendmail[6376]: nAK8RQT9006375: nAK8RQT9006376: DSN: Return receipt

 

DSN(Delivery Status Notifications) 관련 문서를 찾아본 결과 아래와 같은 부분을 볼 수 있었다.

 

-       Specifically, the DSN SMTP service is used to request that indications of successful delivery or delivery failure (in the DSN format) be returned. Issuance of a DSN upon delivery failure is the default behavior, whereas issuance of a DSN upon successful delivery requires a specific request from the sender.

 

배달 실패시 리턴은 기본적으로 되어있으나,

배달 성공의 경우 리턴은, 메일발송시 보내는 쪽의 특정 요청이 필요한 것으로 보인다.

 

추가하여, 배달성공 리턴메시지를 막기 위해 아래의 방법을 이용할 수 있다.

 

/etc/mail/sendmail.mc 에 아래 구문을 넣고 저장,

================================

define(`confPRIVACY_FLAGS', `noreceipts')dnl

================================

 

# m4 sendmail.mc > sendmail.cf

# killall HUP sendmail

 

번거로우면 간단하게 /etc/mail/sendmail.cf에 아래 구문을 넣고

 

=======================

O PrivacyOptions=noreceipts

=======================

 

# killall HUP sendmail 로 설정파일을 다시 읽어들이시면 바로적용된다.