os :redhat AS 4.3
sendmail系统安装
tail /var/log/maillog
an 25 16:37:30 test sendmail[773]: l0OMBCRo028217: to=<****@126.com>, ctladdr=<root@test.com> (0/0), delay=10:26:18, xdelay=00:00:00, mailer=esmtp, pri=754747, relay=mx.126.split.netease.com., dsn=4.0.0, stat=Deferred
Jan 25 16:37:30 test sendmail[773]: l0ONwLXu009807: to=<****@163.com>, ctladdr=<root@test.com> (0/0), delay=08:39:09, xdelay=00:00:00, mailer=esmtp, pri=754747, relay=mx.mail.163.split.netease.com., dsn=4.0.0, stat=Deferred: Connection reset by mx.mail.163.split.netease.com.
在日志中邮件出现stat=Deferred 解办法是,在/etc/mail/local-host-names 定要添加自己邮箱的域名。
test.com
aaa.com