mutt:接続できません(接続対象に行く長さなし)

mutt:接続できません(接続対象に行く長さなし)

neomutt最近、新しいアーチインストールをインストールしました。 .muttrcを次のように設定しました。

# Receive mail
set imap_user   = [email protected]
set folder           = imap://imap.example.org/
set spoolfile      = +INBOX

# Send mail
set realname    = 'name'
set from            = [email protected]
set use_from    = yes
set smtp_url     = smtp://$imap_user:[email protected]
set ssl_starttls  = yes
set editor          = nano
set record         = +Sent


mailboxes =INBOX


# Store message headers locally to speed things up.
# If hcache is a folder, Mutt will create sub cache folders for each account which may speeds things up even more.
set header_cache = ~/.cache/mutt

# Allow Mutt to open a new IMAP connection automatically.
unset imap_passive

# Keep the IMAP connection alive by polling intermittently (time in seconds).
set imap_keepalive = 300

# How often to check for new mail (time in seconds).
set mail_check = 120

注:によるとネオマートに関するドキュメント、rcファイルを呼び出すことができるので.muttrc問題ありません。

問題なくメールが届きます。メールを送信しようとすると問題が発生します。次のエラーメッセージが表示されます。

Could not connect to smtp.example.org (No route to host).

これを行うと、ping smtp.example.org次のようになります。

PING example.org (11.111.111.111) 56(84) bytes of data.
64 bytes from vn.example.org (11.111.111.111): icmp_seq=1 ttl=52 time=92.7 ms
64 bytes from vn.example.org (11.111.111.111): icmp_seq=2 ttl=52 time=93.4 ms
64 bytes from vn.example.org (11.111.111.111): icmp_seq=3 ttl=52 time=94.6 ms
64 bytes from vn.example.org (11.111.111.111): icmp_seq=4 ttl=52 time=95.1 ms
64 bytes from vn.example.org (11.111.111.111): icmp_seq=5 ttl=52 time=92.9 ms
64 bytes from vn.example.org (11.111.111.111): icmp_seq=6 ttl=52 time=93.3 ms
64 bytes from vn.example.org (11.111.111.111): icmp_seq=7 ttl=52 time=91.8 ms

これは、これがサーバーではなく、私の側の問題であることに違いありません。設定を変更し、smtp URLに見えない文字があることを確認し、コンピュータとルーターをリセットしてみましたが、問題は解決しません。

なぜこれが起こるのか、電子メールを送信できるように解決する方法を教えてください。

とても感謝しています!

ベストアンサー1

「それは、これがサーバーではなく、私の側の問題であることに違いありません」と言います。

いいえ。これは、ポート番号が11.111.111.111で、平均往復待ち時間が約91ミリ秒のsmtp.example.orgというコンピュータがあることを示しています。それはすべてです。

icmpエコー要求を送信するよりも複雑な操作を試みるとすぐに、example.orgファイアウォールの一部のセキュリティトリガーがコンピュータにsmtp.example.orgが存在しないことを知らせることができるため、muttはエラーメッセージを表示します。

しかし、使用している構文が間違っている可能性が高いです。

set smtp_url     = smtp://$imap_user:[email protected]

~からネオムートマニュアル:

これらのプロトコルに「セキュア通信」を意味する「s」サフィックスがある場合、NeoMuttはリモートサーバーとの通信を暗号化しようとする可能性があります。

URLに「s」を追加してみてください。 SSL / TLSを使用して接続を試みます。

set smtp_url     = smtps://$imap_user:[email protected]

しかし、まずsmtp(オプション機能!)とsslサポート(オプション機能!)が一緒にコンパイルされていることを確認してください。

neomutt -v

それでも機能しない場合は、プロバイダの情報を確認する必要があります。 SASLをサポートしていますか? SASL を介して認証する場合は、以下を構成する必要があります。SASL部分

乾杯

おすすめ記事