I want to receive an email on my GMail account when any kind of error happens in my Raspberry.
For this I want the syslog daemon (rsyslogd) to send all messages above certain severity to my local mailbox, which in my case is pi@raspberrypi. Then I have configured the mail system so that it redirects that mail account to my GMail account.
This redirection I already have it working. What I can't figure out is the first part, how to configure rsyslogd to send emails. I have searched the internet some time but I can't figure it out clearly.
Any tips on this?
Thanks for your time.