Linux下使用mutt和msmtp命令行发送邮件.docxVIP

  • 5
  • 0
  • 约1.67千字
  • 约 3页
  • 2021-11-26 发布于江苏
  • 举报

Linux下使用mutt和msmtp命令行发送邮件.docx

原来一直在 Linux 下使用 mail 命令来发送邮件,但是配置起来特别麻烦,需要配置sendmail 的很多东西。而且还必须启动sendmail 才能保证邮件发送成功。那么有没有类似于 foxmail,outlook 这样的邮件客户端软件,并且有命令行的形式,来发送邮件呢。mutt 和 msmtp 提供了一个很好的解决方案。 以下是配置方案: 1)下载 msmtp wget /msmtp/msmtp-1.4.16.tar.bz2?modtime=1 217206451big_mirror=0 2)解压: tar jxvf msmtp-1.4.16.tar.bz2 3)安装: ./configure --prefix=/usr/local/msmtp make make install 4) 配置 msmtp 账号: 新建文件/usr/local/msmtp/etc/msmtprc 编辑内容: # Set default values for all following accounts. defaults logfile /usr/local/msmtp/msmtp.log # The SMTP server of the provider. account test@163.com # SMTP 邮件服务器地址host # 发送的邮件 Email from te

文档评论(0)

1亿VIP精品文档

相关文档