Forward system's mails to a mail box !
With a basic configuration, all system's mails, or almost are forwarded to the user "root". To read them, type "mail" is sufficient, as root. And to know where softwares send their mail(s), take a look at /etc/alias.
I think the reading of mails is not very pratical with the "mail" command, I looked for a solution, to know how to forward mails that root should get to an email of monitoring.
The tip is simple, it's necessary to change in /etc/alias this :
root:user # (user can be something else)
To :
root:your@mail.tld
Then, you need to do "newaliases" to update the aliases.db file.
Tip so pratical because from now you will be able to look out to the existing problems on your system (since mails are sent to the system when there is a problem on the system ) !
Published on Wednesday, June 24 2009, by Scurz dans la catégorie : Admin - Permalink
Comments
Thursday, June 25 2009
07:01
You may be interested in my old post about forwarding root's email in encrypted way also :
— Olivier Bergerhttp://www-public.it-sudparis.eu/~b...