Mutt 电子邮件客户端不接收或发送邮件

Mutt 电子邮件客户端不接收或发送邮件

我正在尝试在我的 Linux 系统上设置 mutt 电子邮件客户端,但是遇到了一些问题。

首先,当 Mutt 启动时,它在屏幕底部显示以下内容:gnutls_handshake: An unexpected TLS packet was received。当我发送一封电子邮件(发给我自己,用于测试目的)并输入我的登录信息时,mutt 显示它正在登录,但消息Logging in...只在屏幕上停留了一瞬间,之后什么也没有发生(没有发送电子邮件)。

这是我的.muttrc 文件:

## IMAP CREDENTIALS
set smtp_url = "smtp://[email protected]:587/"
#set smtp_pass = "password"
set from = "[email protected]"
set realname = "Jack Sewell"

## IMAP SETTINGS
# activate TLS if available on the server
set ssl_starttls=yes
# always use SSL when connecting to a server
set ssl_force_tls=yes
# Don't wait to enter mailbox manually 
unset imap_passive        
# Automatically poll subscribed mailboxes for new mail (new in 1.5.11)
set imap_check_subscribed

set folder = "imaps://imap.kolabnow.ch:993"
set spoolfile = "+INBOX"

## GENERIC
set header_cache=~/.mutt/cache/headers
set message_cachedir=~/.mutt/cache/bodies
set certificate_file=~/.mutt/certificates
# Move read messages from your spool mailbox to your $mbox mailbox
set move = no
# Reduce polling frequency to a sane level
set mail_check=60
# And poll the current mailbox more often (not needed with IDLE in post 1.5.11)
set timeout=10
# keep a cache of headers for faster loading (1.5.9+?)
set header_cache=~/.hcache
# Display download progress every 5K
set net_inc=5
# Don't switch to next mail when paging down in a mail and hitting bottom
set pager_stop=yes
# Confirm quit

set quit=ask-yes
# Date format in index view. Standard strftime syntax.
set date_format="!%a, %b %d, %Y at %I:%M:%S%p %Z"
# Default index format
#set index_format="%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s"
set index_format="%4C %Z %{%b %d %H:%M}  %-15.15L (%?l?%4l&%4c?) %s"

答案1

我认为问题可能在于您在“spoolfile”和/或“smtp_url”的值中使用了两个 @ 字符。我确信这不会起作用。

我没有自己设置“spoolfile”,而是设置 shell 变量 MAILDIR,例如我使用:

imaps://[email protected]

在我的 muttrc 中,我将“文件夹”设置为类似的值:

set folder = imaps://[email protected]/INBOX
# folder means the default location of your mailboxes
#  Used as the basis for the '+' and "=" shortcuts
...

无论对错,我注意到我也设置了这些 imap 相关变量:

set ssl_force_tls = yes
set ssl_verify_host = no
set imap_authenticators = "digest-md5:cram-md5"

对于通过 SMTP 发送电子邮件,我的 mutt 使用本地安装的 Postfix 实例。因此在这种情况下,我没有与您对应的配置。但在这里,我对使用两个 @ 字符也心存疑虑...

您是否已成功使用过同一系统/网络中的其他 IMAP 客户端?如果没有,您还应验证与所需 IMAP/SMTP 服务器的基本连接。例如,这可以通过 openssl 命令完成。

祝你好运!

相关内容