Help - Search - Members - Calendar
Full Version: Help! Qmail: Domain Aliases? Parked Domains?
The Planet Forums > Control Panels > Plesk
Danimal
Hello!

I've searched this forum, but can't find an answer, so I'll just post my question...

How would I set up a "Parked Domain" in Plesk?

A Parked Domain is simply the following:
- HTTP requests get automatically redirected to the "master" domain.
- Emails to @parked.com get redirected automatically to @master.com

So, for example, if I have myclient.com set up as a domain in Plesk, with 3 email boxes: box1, box2, and box3, what I want to do is park the domain "myclient.net" so that:
- http://www.myclient.net/somedocument.html -> goes to:
http://www.myclient.com/somedocument.html
AND
- Email to: box1@myclient.net -> goes to:
box1@myclient.com
AND
- Email to: unknownuser@myclient.net -> goes to:
unknownuser@myclient.com (and then either bounces or gets handled by the catch-all entry).

I know how to configure the Web part (just add an additional ServerAlias), and the DNS part, but I'm having trouble figuring out the Qmail part. Is there an easy way to say something like:
*@myclient.net -> *@myclient.com

Thoughts, Anyone?

-Danimal
Squire
I think this is what you're looking for...

Go into the myclient.net via Plesk and set up the mailnames box1@myclient.net, box2@myclient.net and box3@myclient.net and configure each of those up to automatically forward all mail the the appropritate myclient.com email addy rather than have pop3 retrieval.

Then if you need a blanket to catch every email sent to @myclient.net so that it goes to a myclient.com address you can set that up at the bottom of the Preferences section within Plesk for myclient.net.

Squire
Danimal
Squire,

Thanks for the reply, that wasn't what I was talking about. I posted this question on the Plesk forum as well and it turns out the solution is really quite easy (thanks, Qmail!).

By "Parked Domain", I meant that if parkeddomain.com was "parked on top of" mydomain.com then parkeddomain.com would be a true alias for mydomain.com.

This means that an email to: joe@parkeddomain.com would go directly to joe@mydomain.com and an email to sally@parkeddomain.com would go directly to sally@parkeddomain.com. No catch-all or specific boxes, it's just a name alias. This would also apply to FTP, SSH, HTTP, etc.

Anyway, the solution for the email portion is quite simple. For my example above, just add parkeddomain.com to .../qmail/control/rcpthosts and add parkeddomain.com:virtualdomain-com to .../qmail/control/virtualdomains. Then run .../qmail/bin/qmail-newu to refresh the qmail internal database (I'm not sure if this is required, but it doesn't hurt).

For Plesk users, the ... above can be replaced with /usr/local/psa, of course.

Enjoy!

-Danimal cool.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.