当前位置:金屋文档› Ubuntu 系统上使用 QQ 邮箱的 SMTP 服务器发送邮件,msmtp(已验证)

Ubuntu 系统上使用 QQ 邮箱的 SMTP 服务器发送邮件,msmtp(已验证)

文章标签:: ubuntu 运维 linux 服务器
文章摘要: 2 .配置 msmtp。
  1. 安装 msmtp
sudoapt-get updatesudoapt-getinstall msmtp

2 .配置 msmtp

nano ~/.msmtprc
defaultsauth ontls ontls_starttls ontls_trust_file /etc/ssl/certs/ca-certificates.crtlogfile ~/.msmtp.logaccount qqhost smtp.qq.comport 587from your_email@qq.comuser your_email@qq.compassword your_password# Set a default accountaccount default : qq
chmod600 ~/.msmtprc
  1. 测试发送邮件
echo-e"Subject: TestThis is a test email."| msmtp -a qq recipient@example.com
相关文档
  • 发送

  • 验证

  • 邮箱

相关文档推荐: