NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
jjcf89_2
Jan 09, 2019Tutor
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?
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
2 Replies
Replies have been turned off for this discussion
- jjcf89_2Tutor
Sending email from command prompt:
# echo "Subject: Test" | msmtp <email>
- jjcf89_2Tutor
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
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!