我已在EC2上配置了mutt以使用gmail发送邮件。 我的配置如下
set ssl_starttls=yes
set ssl_force_tls=yes
set imap_user = 'name@gmail.com'
set imap_pass = 'password'
set from='name@gmail.com'
set realname='name@gmail.com'
set folder = imaps://imap.gmail.com/
set spoolfile = imaps://imap.gmail.com/INBOX
set postponed="imaps://imap.gmail.com/[Gmail]/Drafts"
set header_cache = "~/.mutt/cache/headers"
set message_cachedir = "~/.mutt/cache/bodies"
set certificate_file = "~/.mutt/certificates"
set smtp_url = 'smtp://name@gmail.com:password@smtp.gmail.com:465/'
set move = no
set imap_keepalive = 900
set smtp_pass="secrets"
发送邮件时收到该错误。服务器上的防火墙也关闭,安全组上的端口465也打开。是否需要使用mutt安装postfix?
与smtp.gmail.com的连接已关闭 SMTP会话失败:读取错误 无法发送消息。