2012年4月16日
摘要: 今天尝试着想要在linux终端上直接用mail命令(e.g: echo "hello" | mail -s "hello test" xxx@139.com)给我139.com的邮箱发邮件时,139.com邮箱根本收不到,但是总是可以在/var/mail/root下面找到我刚才发的邮件,其实这是因为发送失败了,从而被sendmail回退了邮件回来。要想看失败原因, check /var/log/maillog:Aug1 18:41:40 localhost sendmail[5279]: o71Afeih005279: from=root, size=2 阅读全文
posted @ 2012-04-16 12:42 草原和大树 阅读(7359) 评论(0) 推荐(0) 编辑
摘要: mail -s "test" abc@mail.com < /tmp/test.log -s后面是主题 然后是邮箱 最后是你要发送的文本内容 阅读全文
posted @ 2012-04-16 12:39 草原和大树 阅读(4665) 评论(0) 推荐(0) 编辑