Chinaunix

标题: 发送email [打印本页]

作者: xp20683    时间: 2007-09-11 16:42
标题: 发送email
如何在solaris下使用mailx 发送email,
/usr/bin/mailx -s "disk space warning!" pu.xh@eems.com

为什么不能发送出去?
我是不是需要配置什么stmp,我只是在
etc/host
中添加我们公司的email server ip ,还有什么要做的吗
作者: 风之幻想    时间: 2007-09-12 08:50
你的这个机器要启动邮件功能才可以发送的.
作者: Solaris12    时间: 2007-09-12 08:55
原帖由 xp20683 于 2007-9-11 16:42 发表
如何在solaris下使用mailx 发送email,
/usr/bin/mailx -s "disk space warning!" pu.xh@eems.com

为什么不能发送出去?
我是不是需要配置什么stmp,我只是在
etc/host
中添加我们公司的email server ip ,还 ...



应该还需要配置sendmail服务器。可以在运行命令的时候 tail -f /var/log/syslog
作者: ^日出东方^    时间: 2007-09-12 09:17
标题: 回复 #3 Solaris12 的帖子
有点不明白了,LZ只是想通过他们公司的邮件服务器来发送邮件,为何还要配置sendmail服务器呢?
作者: xp20683    时间: 2007-09-18 09:28
^C# tail -f /var/log/syslog
Sep 12 01:00:00 T5581-01 sendmail[291]: BAA00291: from=mfg, size=79, class=0, pri=30079, nrcpts=1, msgid=<200709111600.BAA
relay=mfg@localhost
Sep 12 01:00:00 T5581-01 sendmail[292]: BAA00291: to=mfg, ctladdr=mfg (100/100), delay=00:00:00, mailer=local, stat=Sent
Sep 12 22:53:45 T5581-01 sendmail[176]: starting daemon (SMI-8.6): SMTP+queueing@01:00:00
Sep 12 23:05:50 T5581-01 sendmail[176]: starting daemon (SMI-8.6): SMTP+queueing@01:00:00
Sep 12 23:19:10 T5581-01 sendmail[172]: starting daemon (SMI-8.6): SMTP+queueing@01:00:00
Sep 13 01:00:00 T5581-01 sendmail[324]: BAA00324: from=mfg, size=79, class=0, pri=30079, nrcpts=1, msgid=<200709121600.BAA
relay=mfg@localhost
Sep 13 01:00:01 T5581-01 sendmail[325]: BAA00324: to=mfg, ctladdr=mfg (100/100), delay=00:00:01, mailer=local, stat=Sent
Sep 16 21:44:42 T5581-01 sendmail[176]: starting daemon (SMI-8.6): SMTP+queueing@01:00:00
Sep 17 01:00:01 T5581-01 sendmail[268]: BAA00268: from=mfg, size=79, class=0, pri=30079, nrcpts=1, msgid=<200709161700.BAA
relay=mfg@localhost
Sep 17 01:00:01 T5581-01 sendmail[269]: BAA00268: to=mfg, ctladdr=mfg (100/100), delay=00:00:00, mailer=local, stat=Sent



运行tail -f /var/log/syslog,还有什么需要做的吗?为什么还是不可以
作者: 风之幻想    时间: 2007-09-18 11:51
在你的机器上建立一个用户,把你这个用户在你的邮件服务器端添加上去.然后,在发邮件看看.
作者: Solaris12    时间: 2007-09-18 12:29
原帖由 xp20683 于 2007-9-18 09:28 发表
^C# tail -f /var/log/syslog
Sep 12 01:00:00 T5581-01 sendmail[291]: BAA00291: from=mfg, size=79, class=0, pri=30079, nrcpts=1, msgid=



先tail

然后运行mail命令,捕捉syslog里新的输出,就知道为什么发不出去了。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2