2017-05-01 20:05:16 3852次浏览 1条回答 0 悬赏 10 金钱
[root@iZwz99qnmldt4n744noo9gZ ~]# cat  /tmp/mail.log | mailx -v -s "test" 1343652445@qq.com
Null message body; hope that's ok
Resolving host smtp.qq.com . . . done.
Connecting to 14.18.245.164 . . .Connecting to 14.18.245.164 . . .Connecting to 14.17.57.241 . . .could not connect: Connection timed out
"/root/dead.letter" 11/304
. . . message not sent.
could not connect: Connection timed out
"/root/dead.letter" 11/304
. . . message not sent.

配置如下:
set from=1343652445@qq.com #发送邮箱
set smtp=smtp.qq.com #SMTP服务器
set smtp-auth-user=1343652445 #发送帐号
set smtp-auth-password=waebcekqwdzbfgab #邮箱密码
set smtp-auth=login #授权方式

set smtp-use-starttls
set ssl-verify=ignore
set nss-config-dir=/etc/pki/nssdb/
请问有什么注意事项

  • 回答于 2017-05-04 11:51 举报
    set from=yuorname@139.com  #发送邮箱号  
    set smtp=smtp.139.com  #邮件服务器
    set smtp-auth-user=yourname  #邮箱用户名
    set smtp-auth-password=yourpassword  #邮箱密码
    set smtp-auth=login #登录方式
     添加完了后   发送邮件命令为: `echo "邮箱内容"| mailx -s "邮件标题" 邮箱号
    

    可以参考这篇文章linux发送邮件

您需要登录后才可以回答。登录 | 立即注册
大头
见习主管

大头

注册时间:2016-11-14
最后登录:2017-07-10
在线时长:9小时42分
  • 粉丝7
  • 金钱330
  • 威望0
  • 积分420

热门问题