POSTFIX 사용시 중복 메일 발송 제한
Submitted by lusilis on 금, 2009/11/20 - 7:04pm.
이전에 POSTFIX와 LDAP 관련 문의글을 올렸으나 아직 해결이 되지 않아 정리해서 다시 올려봅니다.
LDAP에서 계정 정보와 그룹 정보를 받아와서 아래와 같이 메일을 발송합니다.
Nov 20 17:03:43 test postfix/smtpd[18665]: connect from unknown[127.0.0.1] Nov 20 17:03:44 test postfix/smtpd[18665]: EC1DC2854E15: client=unknown[127.0.0.1] Nov 20 17:03:44 test postfix/cleanup[19406]: EC1DC2854E15: message-id=<007c01ca69b7$fdc72960$f9557c20$@com> Nov 20 17:03:44 test postfix/qmgr[16704]: EC1DC2854E15: from=<root@test.com>, size=2984, nrcpt=2 (queue active) Nov 20 17:03:44 test postfix/virtual[19407]: EC1DC2854E15: <strong>to=<root@test.com>, orig_to=<_gogogo2@test.com></strong>, relay=virtual, delay=0.21, delays=0.08/0/0/0.13, dsn=2.0.0, status=sent (delivered to maildir) Nov 20 17:03:44 test postfix/virtual[19407]: EC1DC2854E15: <strong>to=<root@test.com></strong>, relay=virtual, delay=0.22, delays=0.08/0/0/0.13, dsn=2.0.0, status=sent (delivered to maildir) Nov 20 17:03:44 test postfix/qmgr[16704]: EC1DC2854E15: removed Nov 20 17:03:46 test postfix/smtpd[18665]: disconnect from unknown[127.0.0.1]
수신 : root@test.com
참조 : _gogogo@test.com (root@test.com 포함된 그룹 계정)
이런식으로 메일을 발송하는데 중복 제거가 되지 않아 메일이 2통씩 들어옵니다.
POSTFIX 설정상에 관련 옵션이 있다면 답변 부탁드립니다.


수신과 참조에
수신과 참조에 들어가는 메일주소의 목록을 다시한번 점검해보시기를 부탁드립니다.
그룹을 참조로 넣었는데 그 그룹에 수신에 입력한 주소가 들어가 있다면 두번 발송되는 것이 맞습니다.
"수신"에 있으므로 1번, "참조"로 1번
본문에 적으신 경우라면 그냥 _gogogo@test.com을 수신으로 넣어주시는 편이 좋을 듯 합니다.
댓글 감사합니다.
기존에 sendmail만 사용했을 때는 별다른 이슈가 없었는데 처음 postfix를 사용했더니 이런 이슈가 생기네요.
정상적인 현상이라면 다른 방법을 좀 더 생각해봐야겠습니다.
다시 한번 감사합니다. ^^