そのため、IMAPを使用してリモートメールサーバーから電子メールを取得するようにfetchmailを設定し、それを実行できました。メールが見つかったかどうかはどうすればわかりますか?これは、ポーリング対象アカウントにテストメールを送信しましたが、fetchmailが検出できるようにまだ読んでいないためです。もう一つの問題は、fetchmailがそれらを私のMTA(この場合はpostfix)に引き渡すかどうかわからないということです。
これが発生しているかどうかをどのように判断できますか、検索された電子メールはどこにありますか?
ベストアンサー1
fetchmailを呼び出すと、ログとデバッグ情報を印刷するオプションがあります。マニュアルページには次のように記載されています。
For troubleshooting, tracing and debugging, you need to increase fetch-
mail's verbosity to actually see what happens. To do that, please run
both of the two following commands, adding all of the options you'd
normally use.
env LC_ALL=C fetchmail -V -v --nodetach --nosyslog
(This command line prints in English how fetchmail understands
your configuration.)
env LC_ALL=C fetchmail -vvv --nodetach --nosyslog
(This command line actually runs fetchmail with verbose English
output.)
fetchmailが実行され、電子メールを受信してローカルMTAに転送したら、/ var / log / maillog(またはシステムにメールログを保存するように指定した場所)でそれに関するトレースを見つけることもできます。