Postfix는 로컬 사용자로부터 메일을 보내지만 mailman에서는 메일을 보내지 않습니다.

Postfix는 로컬 사용자로부터 메일을 보내지만 mailman에서는 메일을 보내지 않습니다.

지역 클럽을 위한 Mailman 서버를 설정하려고 하는데 Postfix와 Mailman에 이상한 문제가 발생했습니다. 문제는 Postfix에 있다고 생각합니다.

따라서 문제는 mail 명령을 통해 로컬 사용자로부터 메일을 보낼 수 있지만 mailman에서 메일을 보내려고 할 때 메일을 받지 못한다는 것입니다.

다음은 전송되었고 수신할 수 있었던 이메일의 /var/log/maillog의 예입니다.

May  1 20:15:17 vps-1152677-20287 postfix/pickup[16784]: ED274AA901B1: uid=0 from=<root>
May  1 20:15:17 vps-1152677-20287 postfix/cleanup[16844]: ED274AA901B1: message-id=<[email protected]>
May  1 20:15:17 vps-1152677-20287 postfix/qmgr[16785]: ED274AA901B1: from= <[email protected]>, size=447, nrcpt=1 (queue active)
May  1 20:15:18 vps-1152677-20287 postfix/smtp[16845]: ED274AA901B1: to=<[email protected]>, relay=gmail-smtp-in.l.google.com[74.125.29.26]:25, delay=0.57, delays=0.02/0/0.13/0.43, dsn=2.0.0, status=sent (250 2.0.0 OK 1430525718 f194si28051230qhe.11                                   2 - gsmtp)
May  1 20:15:18 vps-1152677-20287 postfix/qmgr[16785]: ED274AA901B1: removed

다음은 내가 받지 못한 우편배달부로부터 보낸 이메일의 예입니다.

May  1 20:14:50 vps-1152677-20287 postfix/smtpd[16889]: connect from localhost[127.0.0.1]
May  1 20:14:50 vps-1152677-20287 postfix/smtpd[16889]: 6258BAA901B1: client=localhost[127.0.0.1]
May  1 20:14:50 vps-1152677-20287 postfix/cleanup[16844]: 6258BAA901B1: message-id=<[email protected]>
May  1 20:14:50 vps-1152677-20287 postfix/qmgr[16785]: 6258BAA901B1: from=<[email protected]>, size=2034, nrcpt=1 (queue active)
May  1 20:14:50 vps-1152677-20287 postfix/smtpd[16889]: disconnect from localhost[127.0.0.1]
May  1 20:14:51 vps-1152677-20287 postfix/smtp[16845]: 6258BAA901B1: to=<[email protected]>, relay=gmail-smtp-in.l.google.com[74.125.29.26]:25, delay=0.86, delays=0/0/0.16/0.7, dsn=2.0.0, status=sent (250 2.0.0 OK 1430525691 134si28040121qhx.99 - gsmtp)
May  1 20:14:51 vps-1152677-20287 postfix/qmgr[16785]: 6258BAA901B1: removed

나는 그것이 localhost의 연결과 관련이 있다고 생각하지만 postfix 구성에서 그 내용을 다뤘다고 생각했습니다.

Postfix에 대한 내 main.cf는 다음과 같습니다.

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
myhostname = mail.akblacksmith.club
mydomain = akblacksmith.club
myorigin = akblacksmith.club
inet_interfaces = all
inet_protocols = ipv4
mydestination = mail.akblacksmith.club, akblacksmith.club, localhost.akblacksmith.club, localhost, localhost.localdomain
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8
relay_domains = $mydestination
relayhost =
alias_maps = hash:/etc/aliases, hash:/etc/mailman/aliases
alias_database = hash:/etc/aliases
recipient_delimiter = +
debug_peer_level = 2
debugger_command =
     PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
     ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.6.6/samples
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES

왜 postfix가 하나의 메시지를 보내고 다른 메시지는 보내지 않는지 잘 모르겠습니다.

도와 주셔서 감사합니다

답변1

알고 보니 Gmail은 우체부 이메일이 스팸인 것처럼 인식하고 있었습니다.

관련 정보