3.2 My account at my ISP is bobt@isp.net but my account on my Linux box is `me'. I'm having trouble getting my e-mail to work right. It keeps going out as though it is from `me' instead of from `bobt'. How do I fix this?

The simplest route would be to change your local login to bobt, but since you don't want to do that we can get sendmail to use its rewrite rules to do this for you. You're going to need m4 to do this so make sure that the sendmail-cf RPM is installed (rpm -q sendmail-cf). Now here's the procedure:

In /etc/sendmail.mc, add the following lines:


Then run m4 on it:

   m4 /etc/sendmail.mc >/etc/_sendmail.cf
   mv -f /etc/_sendmail.cf /etc/sendmail.cf

Now create your /etc/mail/genericstable and add the following line to translate your local address to your desired address:

   me      bobt@isp.net

Now convert /etc/mail/genericstable to a hashed database:

   makemap hash genericstable.db < genericstable

Now create your /etc/mail/genericsdomain and add your fully qualified host name (type "hostname -f" to find out) to the genericsdomain file.

Restart sendmail with: /etc/rc.d/init.d/sendmail restart.