Hi.

I am using Linux as our email server for the company I work for.  It has
been working fine but now I ran into a problem that I hope some of you
can help me with.

We have a permanent connection to the Internet via our ISP and we have a
registered domain name.  Lets assume that the domain name is "domain1.com"
(name changed to protect the guilty) and the host name for the machine is
called mars, so the FQDN would be mars.domain1.com.  Everything is fine
and we can receive mail for accounts on mars using email addresses:
[EMAIL PROTECTED]

All is fine until we changed the name of the company and got another
registered domain name.  Lets assume it is called "domain2.com".

The same machine is being used to handle both domains.  The ISP's domain
name server has been setup so that mars.domain2.com is an alias for
mars.domain1.com.  As a result, email that is sent to either 
[EMAIL PROTECTED] or [EMAIL PROTECTED] wind up at this
server and the user is able to get mail.  Everything is fine so far.

The problem is that when a user is sending mail, the return address is
[EMAIL PROTECTED]  We don't want this!  I would prefer that the
return address be [EMAIL PROTECTED] (notice the lack of "mars" and the
change in domain).  How do I do this???

I've considered contacting the ISP and having them reverse the DNS such that
the IP Address for the machine is mapped to mars.domain2.com and that
mars.domain1.com is an alias for mars.domain2.com and then changing the
network settings of the machine to be mars.domain2.com.  I've chosen not
to do this because the machine really is used in a corporate environment
and I don't want to lose any mail in transit while waiting for the ISP's
DNS to be updated, etc.  So, I would prefer to keep the machine as
mars.domain1.com but make it appear to email users that it is mars.domain2.com
and their email address is: [EMAIL PROTECTED]

I realize that it is probably a sendmail configuration issue.  Yes, I have
the bat book and I've tried sifting through it for the answer.  No, I have
not been successfull doing so.  This is why I'm posting to this news group.

Any help will be appreciated.

Thanks
-Rod

Reply via email to