To have sendmail change the headers like that, you need to have support
for virtusertable in your sendmail.cf file. First, add:
to your mc file. Then, you've got to create your cf file:
m4 ../m4/cf.m4 file_name.mc > sendmail.cf
Then, create your virtusertable(usually /etc/mail/virtusertable). The
After that, create the database(you must be in the same dir as the
makemap hash virtusertable < virtusertable
and restart sendmail.
Another option would be to use masquerading. With that approach, any
user sending e-mail from your machine would have the ISPs domain
attatched for their e-mail address. Basically, all you'd have to do
to do it this way is add:
to your mc file and create sendmail.cf as described above.
To have e-mail delivered locally on your box, your box needs to be
set to accept mail for the domain. Make sure you've got the domain
name in /etc/mail/sendmail.cw, assuming you have cw file support in
your cf file. If not, add
to your mc file and generate a new cf.
If you've got the sendmail source, check out the README file in the
CF directory, it goes through all the options available for an mc
> I have setup sendmail to masquerade my email that I send out to my isp.
> However, how do I make it change/add the default 'Reply-To' and/or 'From'
> address in the header? Because, the default is my hostname (that I gave my
> computer) and my isp's domain.
> Any help is greatly appreciated, because I haven't found any info on this.
> Also, how do I keep sendmail from trying to use the outside network
> (internet), when sending a local email message? (I have it to demand dial
> and this can be annoying and unnecessary)
> Brent Haag
> Kansas State University
> **** remove NOSPAM if replying by email *****