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

Re: [cobalt-users] Follow up to Mutliple Domains



Nick Ciantro wrote:

> Kul,
>
> I know very little about managing the server other then the Web Panel.
> Although I understand how to accomplish everything you listed as I know how
> to telnet in.  I am wondering if you had any other method.  I really dont
> need the email to aliase, we can use the email for the master domain.
> Although that does sound cool.  My main concernt is that when they type in
> originaldomain.com that it stays at that.  And if they type in
> alternatedomain.com it stays at laternate domain.
>
> As of now, what I have accomplished is I have created originaldomain.com on
> its own IP, and then I used A record to point alternatedomain.com to the
> originaldomain IP.  However, as you probably already know, when you type in
> alternatedomain.com, the domain in the browser is switched to
> originaldomain.com.
>
> So, the only was to keep the domains as is when typed in is to use your
> method?  With your method, I assume I can skip the sendmail part if I do not
> wish to aliase the email?
>
> Thanks again for your input.
>
> Nick
>

Yep !  (You can do as per previous thread, and skip the virtusertable bit if mail is NOT required)

But dont forget that you will NOT get any mail at the NEW (alternatedomain.com) at all, it will **ALL** get bounced back to the sender !   Do you really want this ?   I wouldn't !  Unless the main account also doesn't collect their mail ?

I WILL work I promise !   I use it all over the place, an example: I have 6 domains pointing to one site, I also get ALL mail from them all to got to the correct accounts under the master domain (19 email accounts all get their email from the .co.uk .com .net .org .org.uk etc.)
This means if someone sends a mail to FRED@xxxxxxxxxxxxxx   or  FRED@xxxxxxxxxxxx   (....etc)  they **ALL** go to the account FRED ! <g>  And I only have to set up aliases for the ONE account FRED, I dont have to ever mess with the other domain names, they are taken care of by the %1 bit listed previously !

Also works very nicely for the CATCH-ALL email alias too, so all the misspelled stuff goes into the MAIN account for the site.
I also have a    spamaddress@xxxxxxxxxxxx error:nouser SPAM    address working with it all quite nicely too and the nasty spam gets bounced !

Email may be something that is really worth adding   :)

If your worried about getting this to work and no one to help later on, I will be around for a few hours (at least 3hrs = till 4am GMT) yet this evening (in UK), and you can mail me off list if you require further help to get it working !

Kul

>
> -----Original Message-----
> From: Kul [mailto:WebMaster@xxxxxxx]
> Sent: Sunday, March 04, 2001 7:30 PM
> To: Nick Ciantro
> Subject: Re: [cobalt-users] Follow up to Mutliple Domains
>
> > Kul,
> > when searching the archives what should I use.  What is the technical term
> > for this?  Domain Aliase?  Thanks.
> > Nick
>
> Hi Nick,
>
> Okay, I didn't include info on the email, as you didn't say you wanted that
> too work, but anyhow here is the info to get it to work in the BEST way.  If
> you search back through the archives, you will see other methods, but I have
> tried many of them, and this I have found to be the most accomodating
> method, and automatically takes care of further email aliases as you add
> them without YOU having to mess with the entries in the virtusertable
> manually <g>:
>
> AFTER you have set up the stuff I mentioned previously in this thread, do
> this:
>
> You have already set up DNS for 'originaldomain.com' and
> 'alternativedomain.com', make sure you included your MX records!  Or this
> wont work!
>
> ---------------------------------------
> Login as 'root' via SSH/Telnet.
>     su
>    <enter your root password>
>
> First we take a backup the files that you will be editing (incase it dont
> work<g>):
>
>     cp /etc/sendmail.cw /etc/sendmail.cw.bak
>     cp /etc/virtusertable /etc/virtusertable.bak
>
> Then do this to edit your files:
>
>     pico -w /etc/sendmail.cw
>
> Go to the end of the file and add these 2 lines:
>
>     alternativedomain.com
>     www.alternativedomain.com
>
> Then Ctrl-X to exit from pico and save the file
>
>     pico -w /etc/virtusertable
>
> Go to the end of the file after the line that reads "# Put custom additions
> below" and add:
>
>     @alternativedomain.com        %1@xxxxxxxxxxxxxxxxxxxxxx
>     @www.alternativedomain.com    %1@xxxxxxxxxxxxxxxxxxxxxx
>
> Then Ctrl-X to exit from pico and save the file
>
> Then at the command prompt type:
>
>     /usr/bin/makemap hash /etc/virtusertable < /etc/virtusertable
>     /etc/rc.d/init.d/sendmail restart
> ---------------------------------------
> Thats it!
>
> If your DNS have already been done, you should be able to test it
> immediatly, try sending mail to your alternate domain, and it should be
> delivered to the original domains accounts (aliases too!)
>
> Have fun!
> --
> Regards,
> Kul