This is not trivial, but once you understand it, its fairly easy.
See http://www.sendmail.org/virtual-hosting.html for more details.
And you'll probably want to see
http://www.sendmail.org/m4/masquerading.html
which describes the inverse - how to get a "local" user's outgoing mail
to
have a return address of their domain.
csmith wrote:
>
> I know this one will be a little tough, but if someone can point me in
> the right direction. I have an email server that serves email for
> xxx.com and I would also like it to server email for yyy.com . I have
> the dns for the web site yyy.com pointing to the same ip address ( for
> mail) as xxx.com does in named. But if I send an eamil to [EMAIL PROTECTED]
> it getts bounced. Any Ideas??
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************