sendmail默认设置发sina,hotmail这样的邮箱是会被拒收的.要做一下几个步骤
1.修改服务器主机名为 noreply.yourdomain.com
1.1 hostname noreply.yourdomain.com
1.2 vim /etc/sysconfig/network
1.3 vim /etc/hosts
2. DNS中添加mx记录noreply.yourdomain.com
2.1 公司的邮件服务器还在用,所以mx 记录要比现存的优先级低.
2.2 noreply.yourdomain.com 的A记录
2.3 修改域名的txt记录, 形式如 v=spf1 mx a:ex1.yourdomain.com
a:noreply.yourdomain.com ip4:115.238.xxx.xxx ~all
3. 修改sendmail的配置文件
3.1 vim /etc/mail/access 添加一行
Connect:noreply.yourdomain.com
RELAY
3.2 vim /etc/mail/local-host-names 添加
yourdomain.com
3.3 vim /etc/mail/sendmail.cf 中找到Cwlocalhost 修改为
Cwlocalhost noreply.yourdomain.com
3.4 重启sendmail
【版权声明】
本站部分内容来源于互联网,本站不拥有所有权,不承担相关法律责任。如果发现本站有侵权的内容,欢迎发送邮件至masing@13sy.com 举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。