作者bamchisu (chisu)
看板PttCurrent
標題[請益] bbsmail postfix轉發還是有問題!!怪怪的...
時間Fri Jan 11 00:01:48 2019
我照著:
https://github.com/ptt/pttbbs/wiki/POSTFIX
這篇設定,
應該就沒錯,但是就是收不到,用postfix 3.3.x
sudo tail -1 master.cf
=========================
bbsmail unix - n n - - pipe flags=FR user=bbs argv=/home/bbs/bin/bbsmail $mailbox
cat /etc/postfix/virtual
=========================
/^(.+)\.bbs@bbs\.suchi\.idv(\.tw)?$/ $1@bbsmail
cat /etc/postfix/transport
=========================
bbsmail bbsmail:
從外部寄信過來的時候或收到這樣的log:
sudo tail -f /var/log/mail.log
=========================
...
Jan 10 15:20:57 ns postfix/smtpd[6733]: connect from sonic301-20.consmr.mail.sg3.yahoo.com[106.10.242.83]
Jan 10 15:20:57 ns postfix/smtpd[6733]: 94958DD10E: client=sonic301-20.consmr.mail.sg3.yahoo.com[106.10.242.83]
Jan 10 15:20:57 ns postfix/cleanup[6746]: 94958DD10E: message-id=<
[email protected]>
Jan 10 15:20:57 ns postfix/qmgr[5649]: 94958DD10E: from=<
[email protected]>, size=3099, nrcpt=1 (queue active)
Jan 10 15:20:57 ns postfix/smtpd[6733]: disconnect from sonic301-20.consmr.mail.sg3.yahoo.com[106.10.242.83] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Jan 10 15:20:57 ns postfix/pipe[6751]: 94958DD10E: to=<sysop@bbsmail>, orig_to=<
[email protected]>, relay=bbsmail, delay=0.36, delays=0.28/0.07/0/0.01, dsn=2.0.0, status=sent (delivered via bbsmail service)
Jan 10 15:20:57 ns postfix/qmgr[5649]: 94958DD10E: removed
個人理解是要把 $ID.bbs@domain 的信轉成 $ID@bbsmail 並由bbsmail去執行寄送才會寄到,
是我理解有錯嗎?還是哪裡設定錯誤了??
求高手指教%%
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 123.194.188.67
※ 文章網址: https://www.ptt.cc/bbs/PttCurrent/M.1547136115.A.F4D.html
※ 編輯: bamchisu (123.194.188.67), 01/11/2019 00:03:34
推 holishing: 因為出一些事好久沒用了qqrz 想再找時間弄.. 01/11 01:57
推 wens: 看起來沒什麼問題,你的 log 倒數第二行也說成功用 bbsmail 01/11 10:49
→ wens: 送出了 01/11 10:49
→ bamchisu: 但是就是收不到信 01/15 00:23
→ bamchisu: 我說該bbs user就是收不到外面寄來的信 01/15 00:23
→ bamchisu: 可能是因為我不是用x86系統架的所有有差嗎? 01/15 00:25