如果您想從mail.mycom.com中收
[email protected] :
[email protected] :
[email protected] 的信件。首先您要有DNS設定,這應該在您的Zone權威DNS中設好,數字低者優先:
如:
mycom.com. IN MX 10 mail.mycom.com.
IN MX 20 mail2.mycom.com.
;備用郵件服務器
a.com. IN MX 10 mail.mycom.com.
b.com. IN MX 10 mail.mycom.com.
c.com. IN MX 10 mail.mycom.com.
mail.mycom.com. IN A 210.37.48.34
;必須有A記錄
您真正的MAIL SERVER叫做mail.mycom.com 然後在/etc/sendmail.cw中加入一行,用空白隔開:
a.com b.com c.com
然後重新啟動sendmail即可。
注:
相關的sendmail.cf中必須有:
Cw localhost
Fw /etc/sendmail.cw