Postfix + Transport Maps 定義傳遞目的
作者: cross 日期: 2008-05-19 01:20
用途: 比如說當我們要寄信給 yahoo.com.tw 時,可以讓 msa.hinet.net 替我們寄給 yahoo.com.tw,作法就是使用 postfix 的 transport
vi main.cf
vi main.cf
transport_maps = hash:/etc/postfix/transport
vi transport
yahoo.com.tw smtp:[msa.hinet.net]:25
postmap /etc/postfix/transport
postfix reload
PS:
1。使用中括號 [] 是為了避免 MX 查詢,而直接傳遞至 msa.hinet.net
2。smtp: 是依據 master.cf 的 service type 而來的
3。另一個設法
yahoo.com.tw smtp
意思是要讓它照一般的方法寄信,既然如此又何必設定
4。如果要直接退信的話
yahoo.com.tw error:mail for yahoo.com.tw is not deliverable
使用 error,而 mail for yahoo.com.tw is not deliverable 是退信訊息
5。如果要傳遞至本機端的信件,建議使用 relay,才不會跟寄出的信件一起消耗資源
發表評論
上一篇
返回
下一篇
標籤:




postfix 將伺服器上「查無此人」的郵件改由特定的用戶接收 (2008-07-03 20:28)
Postfix 自訂退信訊息範本 (2008-04-24 12:28)
有人整理了一些 postfix 的文件 (英文) (2008-04-24 11:13)
postfix 加上 postgrey 擋垃圾信件 (2007-11-12 00:45)
postfix 的 mailbox 如何轉換成 maildir 郵件格式 (2007-08-04 00:08)
Postfix + 擋spam的一些機制 (2006-12-23 12:44)
Postfix + main.cf + queue (2006-12-17 00:49)
Postfix + virtual domain + MySQL + Dovecot + mailbox (2006-12-12 13:30)
Postfix + virtual domain (2006-12-06 11:26)