Как повысить уровень журнала Fetchmail?
Это кажется глупо простым, но я не могу найти нужную директиву и файл в Интернете.
Из fetchmail(1)
(man 1 fetchmail
):
Увеличивающаяся детализация вывода:
-v | --verbose
Verbose mode. All control messages passed between fetchmail and the
mailserver are echoed to stdout. Overrides --silent. Doubling this
option (-v -v) causes extra diagnostic information to be printed.
Об отладке в системный журнал:
The --syslog option (keyword: set syslog) allows you to redirect status and
error messages emitted to the syslog(3) system daemon if available. Mes-
sages are logged with an id of fetchmail, the facility LOG_MAIL, and priori-
ties LOG_ERR, LOG_ALERT or LOG_INFO. This option is intended for logging
status and error messages which indicate the status of the daemon and the
results while fetching mail from the server(s). Error messages for command
line options and parsing the .fetchmailrc file are still written to stderr,
or to the specified log file. The --nosyslog option turns off use of sys-
log(3), assuming it’s turned on in the ~/.fetchmailrc file, or that the -L
or --logfile <file> option was used.
Надеюсь, это поможет!
по крайней мере, в Debian вы также можете запустить
/etc/init.d/fetchmail debug-run
fetchmail будет регистрироваться непосредственно в консоли, а не в фоновом режиме
Один из способов повысить уровень детализации fetchmail при его запуске в качестве демона - добавить '-vv'в сценарий инициализации fetchmail. Например, в Debian добавьте '-vv' к ПАРАМЕТРЫ параметр в /etc/init.d/fetchmail, перезапустите fetchmail и посмотрите подробный вывод в /var/log/mail.log или / var / журнал / системный журнал.