[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] On a RAQ 2 - routing email to a primary domain name.



On Tue, 13 Feb 2001, Andy Cherekos wrote:

> I have two domains sharing the same ip address. domain1.com is the primary
> domain name. domain2.com is being routed to domain1.com. How can I set it up
> so email that is sent to the routed domain (domain2.com) goes to the primary
> domain (domain1.com.) - On a RAQ 2.

This is how i do it, your mileage may vary...

At the end of /etc/virtusertable is a section that says 'put custom
additions here'

after that add 2 lines

@www.domain2.com %1@xxxxxxxxxxxxxxx
@domain2.com      %1@xxxxxxxxxxxxxxx

(Basicly a domain wide catchall that aliases to another domain name)
This makes some assumptions, but is probably ok unless you got fancy and
used something like mail.domain with MX records in which case you will
have to fiddle a bit. Remember you have to rehash the database or make
some change in GUI that will do it..

 makemap hash /etc/virtusertable.db < /etc/virtusertable 

In theory you should only need the first one, but i found internally sent
mail sometimes got confused without the second variation...*shrug*

gsh

ps: you have to 'accept mail for domain' for both ;)