發新話題
打印

[轉貼]yahoo.com.tw 不收我的 Mail Server 寄出的信

[轉貼]yahoo.com.tw 不收我的 Mail Server 寄出的信

http://blog.ywdeng.idv.tw/index.php?op=ViewArticle&articleId=95&blogId=1

我的 Linux Mail Server 送出去的信被拒絕了,以下這幾家特別不受歡迎

yahoo.com.tw
pchome.com.tw
hotmail.com
yahoo.com

解決方案:

如果以 sendmail 當作 Mail Server

修改 /etc/mail/mailertable

.yahoo.com.tw   smtp:168.95.4.211
yahoo.com.tw    smtp:168.95.4.211
pchome.com.tw   smtp:168.95.4.211
.pchome.com.tw  smtp:168.95.4.211
hotmail.com     smtp:168.95.4.211
.hotmail.com    smtp:168.95.4.211

意思是把收件人位於上述網址內的 email 轉給 168.95.4.211 (msa.hinet.net) Relay

如果以 Postfix  當作 Mail Server

修改 /etc/postfix/transport

pchome.com.tw    smtp:[msa.hinet.net]
.pchome.com.tw    smtp:[msa.hinet.net]
yahoo.com.tw    smtp:[msa.hinet.net]
.yahoo.com.tw    smtp:[msa.hinet.net]
yahoo.com    smtp:[msa.hinet.net]
.yahoo.com    smtp:[msa.hinet.net]
.hotmail.com    smtp:[msa.hinet.net]
hotmail.com    smtp:[msa.hinet.net]

再修改 /etc/postfix/main.cf 加入

transport_maps = hash:/etc/postfix/transport

然後執行

postmap /etc/postfix/transport   

TOP

發新話題