# 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]。