问一个sendmail.cf的问题
我装的是LINUX9.0及自带的SENDMAIL.装完了以后,向外发送邮件正常。但对方显示我的发件地址是root@localhost.localdomain,察看邮件头中内容也是.....from localhost.localdomain.......<br><br>
我希望能变成@abc.com的形式。印象中是应该在sendmail.cf中修改,但改了半天,也重起了好几回,还是一个样。请高手详细指点一下!<br>
<br>
谢谢!
re:m4 ../m4/cf.m4 /etc/...
m4 ../m4/cf.m4 /etc/sendmail.mc > /etc/sendmail.cfre:1.修改一下文件access,把"l...
<br>1.修改一下文件access,把"localhost.localhostdomain RELAY"这行注释掉;<br>
2.再用makemap hash access.db < access;<br>
3.重新启动sendmail,即service sendmail restart<br>
re:修改sendmail.mc文件:添加...
修改sendmail.mc文件:<br>添加一项 DAEMON_OPTIONS(`Port=smtp,Addr=你自己的ip地址, Name=MTA')<br>
然后用m4 ../m4/cf.m4 /etc/sendmail.mc > /etc/sendmail.cf <br>
最后service sendmail restart
页:
[1]