Domian pointers and email

estover

Verified User
Joined
May 20, 2005
Messages
17
I need to setup 4 domains. One domain will have all info for the other 3. IE:

example.com is the main site.
here.com, there.com and nowhere.com all point to example.com.
I need to be able to have seperate e-mail addresses for all 4 domains.

IE:

[email protected], [email protected], [email protected] and [email protected]

Now if I use the domain pointer in DA, all email for fred on all domains will get forwarded to example.com. I need to keep the email with the domain.
Is there a way to work this?

If it is easier to create seperate domains outside of the pointer, and modify a conf file that woudl be OK to.

OK looking a littel more I guess I could just setup 4 seperate accounts and modify usr/local/directadmin/data/users/here/httpd.conf
usr/local/directadmin/data/users/there/httpd.conf
usr/local/directadmin/data/users/nowhere/httpd.conf
and modify:

DocumentRoot
ScriptAlias
CustomLog
ErrorLog
<Directory
to point to example.coms directory.

Will this break anything?
Am I making this too hard?
 
I think you're thinking too hard :) .

But only because I keep rereading what you wrote and I'm not thinking hard enough to follow it. :rolleyes:

You can handle this several ways.

The easiest two I can think of would be to have three separate sites, all owned by the same user.

The next easiest would be to write the email part of the program in PHP and get the domain name from the host-header.

Jeff
 
I think I would:

1) Create a user with a non-email account (not fred)
2) Add all the domains to that user
3) Set up pop3 accounts for each user for each domain
4) symlink the document root (public_html) from the "main" domain to the other domains
 
ballyn,

I'm probably missing how you'd make sure that each site used a different email address.

Jeff
 
I think he wants to mirror one public_html to 4 domains but keep email functionaility for each domain.

DA has a problem in that when you create a domain pointed if the domain already has a nameserver record it wont proceed, meaning to proceed the domain cannot exist normally on the server.

cpanel has this functionality

The way around this is with symlinks.
 
So I cant just create the 4 domains and modify there httpd.conf and change the public_html directory to the domain I want all of them to have? Sounds so simple. I just dont want to break anything.
 
estover said:
So I cant just create the 4 domains and modify there httpd.conf and change the public_html directory to the domain I want all of them to have? Sounds so simple. I just dont want to break anything.

you can but you would then need to lock the vhost httpd.conf files to stop DA resetting them.
 
Back
Top