Ken

Active Member
Sep 25, 2001
25
0
301
Could someone tell me how to setup muti domain hosting under one account, ie pointing different domains into different sub folders.
 

Daniel

Well-Known Member
PartnerNOC
Aug 13, 2001
164
0
316
The easiest way to do it is to create a subdomain in the users control panel. Then in WHM park/stack the new domain to the subdomain you just created.

Domain to park on top of: domain2.domain.com
Domain to park:domain2.com

That's the only way I know to do it without manually editing the httpd.conf.
 

gorgo

Well-Known Member
Jan 9, 2002
148
0
316
I have a script I got with my hosting provider to do this function
 

Brad

Well-Known Member
Aug 16, 2001
229
0
316
How does the email function, after doing this for the forward and subdomain?
 

Daniel

Well-Known Member
PartnerNOC
Aug 13, 2001
164
0
316
All mail sent to the stacked domain will go to the main account of the main domain. You can add fowards manually for the stacked domain just edit /etc/valiases/stackeddomain.com.
 

jumpdomain

Well-Known Member
Aug 12, 2001
109
0
316
Or if you add a DNS1=parkeddomain.com to the /var/cpanel/users file you can then manage email for the parked domain in CPanel.
 

Jedito

Well-Known Member
Aug 16, 2001
46
0
306
If you add DNS1=parkeddomain.com forwards wont work.
Its better if you add some rewrite lines to the exim.conf
 

jumpdomain

Well-Known Member
Aug 12, 2001
109
0
316
[quote:78a114a500]If you add DNS1=parkeddomain.com forwards wont work.
Its better if you add some rewrite lines to the exim.conf[/quote:78a114a500]

Forwards work just fine... The user can even manage them along with mailing lists and catchalls in Cpanel based upon the parked domains. A very nice feature. Plus the utility scripts for updating the localdomains file and fixing permissions on the valiases files works if you add the DNS1 entry.
 

LinuxFreaky

Well-Known Member
Sep 22, 2001
87
0
306
Strange Problem

I just tried out the DNS1=domain.com solution and now mail is being bounced back with this message:


This message was created automatically by mail delivery software (Exim).

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

[email protected]
SMTP error from remote mailer after RCPT TO:&[email protected]&:
host subdomain.test.com [1.2.3.4]: 550-Host mail.isp.net [6.7.8.9] is not permitted
550-to relay through mainserver.com.
550-Perhaps you have not logged into the pop/imap server in the last 30 minutes.
550-You may also have been rejected because your ip address
550-does not have a reverse DNS entry.
550 relaying to &[email protected]& prohibited by administrator

------ This is a copy of the message, including all the headers. ------

blahblah...


What should I do? Help??!!??
 

moronhead

Well-Known Member
Aug 12, 2001
706
0
316
[quote:a34af3b911][i:a34af3b911]Originally posted by jumpdomain[/i:a34af3b911]

Plus the utility scripts for updating the localdomains file .....
[/quote:a34af3b911]

Which script is that for updating localdomains?
 

feanor

Well-Known Member
Aug 13, 2001
835
0
316
/scripts/mailperm does it....
there is a whole thread about this actually, if you do a search
 

moronhead

Well-Known Member
Aug 12, 2001
706
0
316
[quote:d3db4b41f5][i:d3db4b41f5]Originally posted by feanor[/i:d3db4b41f5]

/scripts/mailperm does it....
there is a whole thread about this actually, if you do a search[/quote:d3db4b41f5]

Thanks, I wasn't aware that script was also updating localdomains. Although it does make sense now. ;-)