开发者社区> 问答> 正文

在Debian 8里配置mutt通过远程smtp 465端口发送电子邮件

回复云友“ 红豆是谁”提问



背景:阿里云专有网络类型的云服务器默认过滤了25端口的通讯,无法向外发送邮件。

环境:Debian 8系统


[attachment=130974]


过程:

1. dpkg-reconfigure exim4-config 先设置exim4,允许系统往外域发信


[attachment=130975]


2. vi ~/.muttrc 创建mutt配置文件,内容如下:

set from = "anqunhe@aliyun.com"  # 发信人地址
set realname = "DongShan"  # 发信人名称
set smtp_url = "smtps://anqunhe@aliyun.com@smtp.aliyun.com:465/"  # smtp服务器地址
set smtp_pass = "password"  # 邮箱账户密码
set ssl_verify_host=no  # 不检查邮件服务器证书名称
set ssl_verify_dates=no # 不检查邮件服务器证书有效期



[attachment=130978]


3. mutt dongshan3@foxmail.com 发信测试


[attachment=130976]

4. 发信成功


[attachment=130977]


参考:
1. https://wiki.debian.org/Exim
2. http://www.mutt.org/doc/manual
3. https://superuser.com/questions/387064/mutt-will-not-let-me-save-an-ssl-certificate
4. https://www.garron.me/en/go2linux/send-mail-gmail-mutt.html
5. https://mailhelp.aliyun.com/freemail/detail.vm?knoId=5869705

展开
收起
dongshan8 2017-09-02 14:52:55 6101 0
2 条回答
写回答
取消 提交回答
  • 旺旺:nectar2。
    回 1楼(cghghost) 的帖子
    您好,

    不。例子中的,是自动连接外部邮局的465端口发信。
    2019-01-26 11:12:29
    赞同 展开评论 打赏
  • Re在Debian 8里配置mutt通过远程smtp 465端口发送电子邮件
    你的这是25端口的吧
    2019-01-25 13:50:15
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Debian GNU/Linux 安全合规之路 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载