用途: 比如說當我們要寄信給 yahoo.com.tw 時,可以讓 msa.hinet.net 替我們寄給 yahoo.com.tw,作法就是使用 postfix 的 transport

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. 1使用中括號 [] 是為了避免 MX 查詢,而直接傳遞至 msa.hinet.net
  2. smtp: 是依據 master.cf 的 service type 而來的
  3. 另一個設法
  4. yahoo.com.tw smtp
    意思是要讓它照一般的方法寄信,既然如此又何必設定
    如果要直接退信的話
  5. yahoo.com.tw error:mail for yahoo.com.tw is not deliverable
    使用 error,而 mail for yahoo.com.tw is not deliverable 是退信訊息
  6. 如果要傳遞至本機端的信件,建議使用 relay,才不會跟寄出的信件一起消耗資源




arrow
arrow
    全站熱搜

    yuic123 發表在 痞客邦 留言(0) 人氣()