× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Configuring SendMail/Logwatch

jjcf89_2
Tutor

Configuring SendMail/Logwatch

I've installed logwatch to get a daily email of my RN system logs.  But it doesn't appear that sendmail is connected to whatever OS6 is using to send email.  Anyone have an idea of how to get sendmail or similar working?

Model: RN31400|ReadyNAS 300 Series 4-Bay
Message 1 of 3

Accepted Solutions
jjcf89_2
Tutor

Re: Configuring SendMail/Logwatch

Older logwatch doesn't support reading from journalctl.  Support added in version 7.5.0 according to archlinux wiki: https://wiki.archlinux.org/index.php/Logwatch#systemd_journal_support

 

Install latest version:

 

wget https://sourceforge.net/projects/logwatch/files/logwatch-7.5.0/logwatch-7.5.0.tar.gz

tar xzf logwatch-7.5.0.tar.gz

cd logwatch-7.5.0

sudo bash install_logwatch.sh

sudo cp -R /usr/share/logwatch/default.conf/* /etc/logwatch/conf/

vim /etc/logwatch/conf/logwatch.conf

## Change mailer = "/usr/sbin/sendmail -t"
## To mailer = "/usr/bin/msmtp <email>"

sudo logwatch --output=mail

## Runs daily by cron, see /etc/cron.daily/00logwatch

 

View solution in original post

Message 3 of 3

All Replies
jjcf89_2
Tutor

Re: Configuring SendMail/Logwatch

Sending email from command prompt:

# echo "Subject: Test" | msmtp <email>

Message 2 of 3
jjcf89_2
Tutor

Re: Configuring SendMail/Logwatch

Older logwatch doesn't support reading from journalctl.  Support added in version 7.5.0 according to archlinux wiki: https://wiki.archlinux.org/index.php/Logwatch#systemd_journal_support

 

Install latest version:

 

wget https://sourceforge.net/projects/logwatch/files/logwatch-7.5.0/logwatch-7.5.0.tar.gz

tar xzf logwatch-7.5.0.tar.gz

cd logwatch-7.5.0

sudo bash install_logwatch.sh

sudo cp -R /usr/share/logwatch/default.conf/* /etc/logwatch/conf/

vim /etc/logwatch/conf/logwatch.conf

## Change mailer = "/usr/sbin/sendmail -t"
## To mailer = "/usr/bin/msmtp <email>"

sudo logwatch --output=mail

## Runs daily by cron, see /etc/cron.daily/00logwatch

 

Message 3 of 3
Top Contributors
Discussion stats
  • 2 replies
  • 1673 views
  • 0 kudos
  • 1 in conversation
Announcements