sendmail and re-writing addresses



I am using ADSL to connect to the interet via my ISP. Using the default
sendmail configuration, I can send mail fine using sylpheed, but I would
like to be able to send mail using Emacs, or simply mail(1). This fails,
however, because the remote mail host rejects my mail on the grounds that
the domain "my.local.network" doesn't exist (which of course is true,
since "my.local.network" is a purely local domain unknown to the outside
world). After considerable googling, I've reached a partial solution,
by adding to the sendmail .mc config file:

FEATURE(genericstable, `hash -o -T<TMPF> /etc/mail/genericstable')
FEATURE(masquerade_entire_domain)
FEATURE(masquerade_envelope)
MASQUERADE_AS(`myisp.com')
MASQUERADE_DOMAIN(`my.local.network')

and creating /etc/mail/genericstable containing:

william myispname@xxxxxxxxx

(or
william@xxxxxxxxxxxxxxxx myispname@xxxxxxxxx
- I've tried both.)

This works, as far as now being able to actually get mail delivered,
but it still is lacking in that the mail shows up as being from
william@xxxxxxxxx rather than myispname@xxxxxxxxx

so I'm still missing something.

- Will
.