ITPub博客

首页 > Linux操作系统 > Linux操作系统 > linux 发送邮件到qq邮箱里的配置

linux 发送邮件到qq邮箱里的配置

原创 Linux操作系统 作者:abin1703 时间:2015-07-13 17:19:57 0 删除 编辑


一、安装mail

#wget http://sourceforge.net/projects/heirloom/files/latest/download?source=files

下载最新版本mailx-12.4.tar.bz2 (271.5 kB) 。


二、编辑mail文件

编辑/etc/mail.rc

set from=861791911@qq.com smtp=smtp.qq.com
set smtp-auth-user=861791911@qq.com smtp-auth-password=qq的密码 smtp-auth=login


三、验证

#echo 'hello!' | mail -s "hello test" 861791911@qq.com

如果报错



解决办法:

进入QQ邮箱——>设置——>账户——>POP3/IMAP/SMTP选择——>开启POP3/SMTP服务。

再次验证
#echo 'hello!' | mail -s "hello test" 861791911@qq.com



End

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30345407/viewspace-1731938/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2015-07-13

  • 博文量
    204
  • 访问量
    426805