1. 编辑/etc/hosts,把YOUDOMAIN.com加到127.0.0.1这行的第一个:
127.0.0.1 YOUDOMAIN.com localhost.localdomain localhost idc2-web1
2. 编辑/etc/mail/sendmail.mc:
LOCAL_DOMAIN(`localhost.localdomain’)dnl
改为LOCAL_DOMAIN(`YOUDOMAIN.com')dnl
然后m4 sendmail.mc >sendmail.cf
service sendmail restart