web-dev-qa-db-ja.com

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
user815384

問題は、「spoolfile」や「smtp_url」の値に2つの@文字が使用されている可能性があると考えています。私はそれがうまくいかないと確信しています。

私は自分で「spoolfile」を設定するのではなく、シェル変数MAILDIRを設定します。私が使う:

imaps://[email protected]

私のmuttrcでは、「folder」を同様の値に設定しました。

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インスタンスを使用します。したがって、この場合、私はあなたに対応する構成を持っていません。しかし、ここでは、2つの@文字の使用についても疑わしいです...

同じシステム/ネットワークから他のIMAPクライアントをすでに正常に使用しましたか?そうでない場合は、目的のIMAP/SMTPサーバーへの基本的な接続も確認する必要があります。これは、たとえば、opensslコマンドを介して実行できます。

幸運を!

1
Robb W.