如果您想从mail.mycom.com中收anyone@a.com : anyone@b.com : anyone@c.com 的信件。首先您要有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