# sendmail.cw - include all aliases for your machine # here. torgo.redhat.com poodle.redhat.com devel.redhat.com同样在torgo,poodle和devel的那些机器中编辑/etc/sendmail.cf,使其象mail.redhat.com 那样发送邮件,转发本地的邮件给redhat.com。 编辑含DH和DM的那些行:
# who I send unqualified names to # (null means deliver locally) DRmail.redhat.com # who gets all local email traffic DHmail.redhat.com # who I masquerade as (null for no masquerading) DMredhat.com以这种配置,所有发出的邮件都好象是丛redhat.com发出的,而任何发往torgo.redhat.com 和其它机器的邮件都将发送给mail.redhat.com请注意,如果您将您的系统配置为以另一机器身份发送邮件的话,任何以本系统为目的的邮件都将被发送至那台主机。比如,由cron进程定期产生的发网[email protected] 日志文件都将发送给[email protected]。
(出处:http://www.sheup.com)