壊れた fetchmail 設定

壊れた fetchmail 設定

OSX 10.5.6 ボックスで fetchmail を設定しようとしています。.fetchmailrc を次のように設定しました。

poll my.mailserver.com with proto IMAP 
timeout 30
user "username" is "username" here options ssl keep 

私はユーザー名とパスワードを保存するために .netrc ファイルを使用しています:

machine my.mailserver.com
login username
password secret

しかし、fetchmail を実行すると次のエラーが発生します。

reading message [email protected]:1 of 458 (4436 octets)
fetchmail: timeout after 30 seconds waiting for listener to respond.
fetchmail: socket error while fetching from [email protected] and delivering to SMTP host localhost
fetchmail: Query status=2 (SOCKET)
fetchmail: Server certificate verification error: unable to get local issuer certificate
fetchmail: Server certificate verification error: certificate not trusted
fetchmail: Server certificate verification error: unable to verify the first certificate
fetchmail: Error exchanging credentials

fetchmail は正常にログインできるようですが、postfix に何も配信できません (localhost:25 に telnet して、postfix が稼働していることを確認しました)。

次に、何が起こっているかについての追加情報を取得するために、-vv フラグ付きで fetchmail を呼び出しました。次の奇妙なメッセージに気づきました。

Trying to connect to 208.97.132.126/25...fetchmail: timeout after 5 seconds waiting for listener to respond.
fetchmail: 6.3.8 querying my.mailserver.com (protocol POP3) at Tue, 14 Jul 2009 18:20:09 +1000 (EST): poll completed
fetchmail: discarding new UID list
fetchmail: Query status=2 (SOCKET)

その IP アドレスは非常に奇妙です。fetchmail はメッセージ配信のために localhost にのみ接続しようとするべきではないでしょうか? nslookup をすばやく実行すると、ターゲット ホストのドメインが jankymail-mx1.g.dreamhost.com であることがわかります。一体何なのでしょう?

ちなみに、これはすべて、すぐに使える fetchmail のインストールによるものです。これは新品の iMac です。何が起こっているのか、または私が何を間違っているのか、誰か分かる人はいませんか?

答え1

オプションを追加します:smtphost localhostまたは、smtphost 127.0.0.1localhost に配信するように指示することもできます。なぜデフォルトで別の値になっているのかわかりません (それが fetchmail の設定全体ですか?)。

実際、それは ETRN か何かを使用しようとしているのかもしれません。その IP は jankymail-mx1.g.dreamhost.com に解決されます...それはあなたのメール サーバーですか?

また、証明書が自己署名されているか、ホスト名と一致しない場合は、sslcommonnameまたはオプションが必要になることがあります。sslfingerprint

関連情報