Please see the Sendmail documentation in Section 25 on the various changes to Sendmail over the various versions but for now, do the following:
Sendmail - 8.9.x : /etc/aliases or Sendmail - 8.10.x : /etc/mail/aliases
- If you rarely login as root but you do login to another account often, redirect your "root" mail to that address.
To do this, change the line towards the bottom of the file
NOTE: If you want to have this email go to MULTIPLE email addresses, #'ed out the following line and then create the file ~root/.forward. In this file, put all of the desired to-be-forwarded email addresses in this file (one email address per line).
Edit the /etc/aliases file and insert the following lines just about the "root" lien towards the bottom if you have YOUR OWN DOMAIN and run these services:
-- #If you have your own domain name and run DNS hostmaster: root #If you run a WWW site webmaster: root #If you have your own domain and run email servers postmaster: root abuse: root root: your-email-address --
Now compile up the new alias database by running the command "newaliases" If you get a warning about duplicated, remove the duplicate lines and re-run "newaliases"
NOTE: If you are running a older version of Sendmail.. I could tell you how to fix your aliasing issues BUT,
I'm going to make you upgrade! There are so many security issues with older versions of Sendmail that its just not worth it.