在虚拟主机中设定sendmail
如果您想从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
转载:转载请保留本信息,本文来自http://www.51dibs.com/lp07/la/a20/l_a_2b373d6b6f55022d.html
如果您想从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