
我正在嘗試為本地俱樂部設定 Mailman 伺服器,但遇到了 Postfix 和 Mailman 的奇怪問題。我認為問題出在 Postfix 上。
所以問題是我可以透過 mail 命令從本地用戶發送郵件,但是當我嘗試從郵遞員發送郵件時我沒有收到郵件。
以下是 /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
我猜這與本地主機的連接有關,但是我認為我已經在後綴配置中涵蓋了這一點。
這是我的 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 認為郵差的電子郵件是垃圾郵件...