how to forward root mail in linux

January 9, 2013 | By voidzzz | Filed in: How-To, Linux.

to forward mail sent to root in your linux box to another recipient, you can simply do the following:

  1. edit /etc/aliases. if you want to forward root mail you can simply add the following line (if not exist yet) : root:yourname@yourdomain.comyou can do this for other users too. don’t forget to refresh your aliases database by invoking newaliases command.
  2. create /root/.forward file and put e-mail address/es you would like the mail to be forward to in that file.

Tags: , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *