Domain pointer to subdomain, email problems

mpope2

Well-Known Member
Feb 8, 2002
73
0
306
Hello,

Currently, when I want to set somebody up who wants multiple domain names, I set up 1 account, and then add subdomains. So, if the person wants the main domain to be &maindomain.com& and also wants &2nddomain.com& and &3rddomain.com&, I would setup an account of &maindomain.com&, and then setup 2 subdomains &2nddomain.maindomain.com& and &3rddomain.maindomain.com&. Then, I point the domain names to these subdomains.

Now, I want to forward all email from these domain names to the main account. I thought it would be as simple as adding an entry into /etc/valiases, but this does not appear to be working. How would I set these domains up so that they will point to the main account?

Thanks!
 

H2Hosting.com

Well-Known Member
Sep 4, 2001
192
0
316
1) create &2nddomain.com& file in /etc/valiases/
2) add line &*: [email protected]&
3) add line &2nddomain.com& in /etc/localdomains
4) add line &2nddomain.com: main_username& in /etc/userdomains