如何在虚拟主机中设定sendmail
发表于:2007-07-04来源:作者:点击数:
标签:
如果您想从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
如果您想从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
原文转自:http://www.ltesting.net