Article 4V04K How can I get msmtp to send system messages to my email?

How can I get msmtp to send system messages to my email?

by
TheQuantumPhysicist
from LinuxQuestions.org on (#4V04K)
I used to use ssmtp on Debian Stretch. Whenever there are system emails, they would get sent to my admin email. It was quite good because I would get a report on all my servers. This was true until in Debian Buster ssmtp was discontinued in the package manager. So I removed it for security reasons.

What I did in ssmtp, besides configuring the authentication, was just editing the file Code:/root/.forward and writing there the email address where I'd like to receive my messages (for example, reports about mdadm for raid arrays, or anything similar from cron). And everything would work just fine.

But now, with msmtp, I don't get that anymore. I don't know how to make it do the same.

Now the configuration of msmtp is correct. I can verify this by running:

Code:echo "hello there username." | msmtp -a default myemail@example.comAnd that works just fine and sends me an email.

How can I get msmtp to send me system emails to some target address?latest?d=yIl2AUoC8zA latest?i=Y8A-d2oDOlk:1m4Qpn6Wim4:F7zBnMy latest?i=Y8A-d2oDOlk:1m4Qpn6Wim4:V_sGLiP latest?d=qj6IDK7rITs latest?i=Y8A-d2oDOlk:1m4Qpn6Wim4:gIN9vFwY8A-d2oDOlk
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments