- 论坛徽章:
- 0
|
我的问题是这样的:\r\n有一个邮件服务器,在远程。\r\n我需要每天运行 mailx -s [email]xxx@xxx.com[/email] < xxx.txt 来给自己发信。\r\n所以sendmail配置都是默认的。\r\n\r\n在 Berkeley versions of sendmail 上程序测试通过,最多就是新版本上修改一下\r\nD{MTAHost}[127.0.0.1]就可以了。\r\nSolaris 8 version of sendmail也是没有问题,但是solaris9下就怎么改都不成。\r\nsendmail的日志:\r\n\r\nFeb 25 21:04:35 knet-db sendmail[27093]: [ID 801593 mail.info] l1PD4Zb2027093: from=root, size=130, class=0, nrcpts=1, msgid=<[email]200702251304.l1PD4Zb2027093@knet-db.xxx.com[/email]>, relay=root@localhost\r\nFeb 25 21:04:35 knet-db sendmail[27093]: [ID 801593 mail.info] l1PD4Zb2027093: to=sa@xxx.com, delay=00:00:00, mailer=relay, pri=30130, dsn=4.4.3, stat=queued\r\n\r\n我做了如下修改,但是问题依旧:\r\nModify /etc/mail/submit.cf so that mail is sent via your smtp host.\r\n\r\nThe easiest way to modify /etc/mail/submit.cf is to change /usr/lib/mail/cf/submit.mc.\r\nAdd to that the following directives \r\ndefine(`SMART_HOST\', `your.smtp.server.\')dnl\r\ndefine(`MAIL_HUB\',`your.smtp.server.\')dnl\r\ndefine(`LOCAL_RELAY\',`your.smtp.server\')dnl\r\n\r\nprior to the line that says:\r\nFEATURE(`msp\',`[127.0.0.1]\')dnl\r\n\r\nthen \"make submit.cf\" in /usr/lib/mail/cf\r\ncopy the resulting submit.cf to /etc/mail.\r\n\r\nYou should now be able to send mail without sendmail running. \r\n\r\n\r\n[url]http://www.sendmail.org/vendor/sun/solaris9.html[/url]\r\n我查到这个,但是没明白是什么意思。不支持了么?还是要修改其他什么地方?请达人告之。 |
|