在虚拟主机中设定sendmail
时间:2007-02-17 来源:PHP爱好者
如果您想从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
php爱好者站 http://www.phpfans.net PHP|MySQL|javascript|ajax|html.
如:
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
php爱好者站 http://www.phpfans.net PHP|MySQL|javascript|ajax|html.
相关阅读 更多 +