I am engaged in an on-and-off project to upgrade three Pi4s from Buster to Bookworm. This has turned in to an enormous PITA which we need not discuss here.
I am building the boot drives on a newly purchased Pi4.
As part of the process I have installed logwatch and configured it as it is configured on one of the existing Pies.
It works, but fails to send email now and then. I am using msmtp as the SMTP client. It works fine for sending mail from the command line. Here's a fragment of ~/.msmtp.log:
The 06:25 entries are logwatch successfully sending email. The other entries are me sending email from the command line after I didn't get logwatch email on those days.
There are no logwatch email error entries in the log.
How can I figure out why logwatch doesn't send email; seemingly every third day? (It's only been running six days so that's probably not a great sample.)
Edit: Forgot to include this:
I am building the boot drives on a newly purchased Pi4.
As part of the process I have installed logwatch and configured it as it is configured on one of the existing Pies.
It works, but fails to send email now and then. I am using msmtp as the SMTP client. It works fine for sending mail from the command line. Here's a fragment of ~/.msmtp.log:
Code:
Nov 06 06:25:06 host=smtp.gmail.com tls=on auth=on user=[me] exitcode=EX_OKNov 07 06:25:05 host=smtp.gmail.com tls=on auth=on user=[me] exitcode=EX_OKNov 08 08:30:33 host=smtp.gmail.com tls=on auth=on user=[me] exitcode=EX_OKNov 09 06:25:05 host=smtp.gmail.com tls=on auth=on user=[me] exitcode=EX_OKNov 10 06:25:05 host=smtp.gmail.com tls=on auth=on user=[me] exitcode=EX_OKNov 11 06:43:16 host=smtp.gmail.com tls=on auth=on user=[me] exitcode=EX_OK
There are no logwatch email error entries in the log.
How can I figure out why logwatch doesn't send email; seemingly every third day? (It's only been running six days so that's probably not a great sample.)
Edit: Forgot to include this:
Code:
journalctl | grep cron.dailyNov 09 06:25:01 sky CRON[3033]: (root) CMD (test -x /usr/sbin/anacron || { cd / && run-parts --report /etc/cron.daily; })Nov 10 06:25:01 sky CRON[7770]: (root) CMD (test -x /usr/sbin/anacron || { cd / && run-parts --report /etc/cron.daily; })Nov 11 06:25:01 sky CRON[17938]: (root) CMD (test -x /usr/sbin/anacron || { cd / && run-parts --report /etc/cron.daily; })
Statistics: Posted by Ratsima — Mon Nov 11, 2024 12:29 am