Fetchmailはログを作成しません。

Fetchmailはログを作成しません。

リクエストトラッカーと連携するために、RHEL 8サーバーにfetchmailを設定しています。うまくいかず、/var/log/syslog書き込んでいないため、問題を解決できません/var/log/fetchmail.log。これらのログのいずれかに書き込むにはどうすればよいですか?

これは私のものです/etc/fetchmailrc

set daemon 60
set invisible
set postmaster administrator
set syslog
set logfile /var/log/fetchmail.log
poll pop.gmail.com protocol pop3 port 995 username "[email protected]" password "xxxxxx" ssl mda "/var/www/html/requesttracker/bin/rt-mailgate --queue YLN --action correspond --url https://subdomain.example.com" nokeep

fetchmailrcを編集するたびに、fetchmailを再起動します。私は何が間違っていましたか?

修正する:私はこれを試して(root:rootアクセスでfetchmail.logにアクセスしました)、fetchmailを再起動しました:

set daemon 60
set invisible
set postmaster administrator
set logfile /var/log/fetchmail.log
poll pop.gmail.com protocol pop3 port 995 username "[email protected]" password "xxxxxx" ssl mda "/var/www/html/requesttracker/bin/rt-mailgate --queue YLN --action correspond --url https://subdomain.example.com" nokeep

何もありません。 fetchmail.log ファイルは空です。

その後、これを試してfetchmailを再起動しました。

set daemon 60
set invisible
set postmaster administrator
set syslog
poll pop.gmail.com protocol pop3 port 995 username "[email protected]" password "xxxxxx" ssl mda "/var/www/html/requesttracker/bin/rt-mailgate --queue YLN --action correspond --url https://subdomain.example.com" nokeep

もう何もありません。私のテストメールログファイルにsendmailエントリがありますが、数時間前のエントリです。

私はsudo env LC_ALL=C fetchmail -vvv --nodetach --nosyslog -f /etc/fetchmailrcGoogleに接続したときに何が起こっているかを実行することにしました。ご存知のように、Googleがあなたのために生成する必要がある特別なパスワードはありません。この船の中にいるなら見てください。https://security.google.com/settings/security/apppasswords

ベストアンサー1

おすすめ記事