- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Configuring SendMail/Logwatch
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
All Replies
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Configuring SendMail/Logwatch
Sending email from command prompt:
# echo "Subject: Test" | msmtp <email>
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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