- 论坛徽章:
- 0
|
谢谢!
what I do is :
1. vi /etc/mail/sendmail.cf
确认有 : FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
2. vi /etc/mail/mailertable 生成文件, 添加以下内容.
otherdomain.com smtp:[mailserver.otherdomain.com]
3. 生成数据
/usr/sbin/makemap hash /etc/mail/mailertable.db < /etc/mail/mailertable
4. vi /etc/mail/relay-domains 添加以下内容:
otherdomain.com
5. restart sendmail service .
注意 otherdomain.com smtp:[mailserver.otherdomain.com]
括号内是我的exchange 的服务器的全称. 不是IP , 我写IP 时,邮件被退回, 说无法找到主机.
我改成机器名就好了. 我是使用其他dns解决的. 估计 可以通过hosts 文件处理此问题.
谢谢abel 的指点! |
|