Help - Search - Members - Calendar
Full Version: domain parking / serveralias / email forwarding?
The Planet Forums > Control Panels > Plesk
jesseasi
Here is my problem.

mydomain.com is my main domain.

I would like all HTTP requests (web) and all Mail to be directed from these domains to my main domain.

mydomain.net
mydomain.org


1. I know I can setup a forward in plesk, that only forwards the domain but does not forward mail.

2. I have read about the vhosts.conf file and adding the serveralias command.

ServerAlias mydomain.net
ServerAlias mydomain.org

But this seems to still only redirect web requests.

I need to have mail@mydomian.net also get forwarded to mail@mydomain.com. And all other email accounts to be forwarded to the corresponding address.

Please don't tell me to just add forwards for each address. I have about 10 domains with 100 mail accounts. I am trying to save time now and time in the future.

Can anyone tell me exactly what needs to be done?
zippy6
I have the easiest answer ever for this problem. icon_smile.gif


"To forward all mail from one domain to another, making the second domain act the same way as the first you need to modify one file. Open the /usr/local/psa/qmail/control/virtualdomains file. You need to find both, the originating domain and the destination domain and change the originating domain's id number to the destination domain's id number. The domains and id numbers are separated by a semicolon. Save the file and restart qmail."

Plesk 6 = /var/qmail/control/virtualdomains

Email sent to addresses at aaa.com are received at the corresponding mailboxes of users at aaa.net

The file looks like this:
aaa.com:1
aaa.net:2
aaa.org:3

Make it look like this:
aaa.com:1
aaa.net:1
aaa.org:1

Good luck icon_wink.gif
jesseasi
QUOTE
Originally posted by zippy6
Email sent to addresses at aaa.com are received at the corresponding mailboxes of users at aaa.net

The file looks like this:
aaa.com:1
aaa.net:2
aaa.org:3

Make it look like this:
aaa.com:1
aaa.net:1
aaa.org:1

Good luck icon_wink.gif [/B]


I am a little confused by your example. Should it be, Emails sent to aaa.net and aaa.org would be forwarded to aaa.com?

In your example, would I put in the following?

The file looks like this:
aaa.com:aaa.com
aaa.net:aaa.net
aaa.org:aaa.org

Make it look like this:
aaa.com:aaa.com
aaa.net:aaa.com
aaa.org:aaa.com

I just want to be sure I have it straight before I start making these changes.

Thank you.
NightHawk
[Mod-Edit] Moved as this was not a how-to and the how-to forum is not for how-to requests...[/Mod-Edit]
zippy6
Ok, find the domain that you want all of your mail forwarded to and get the number behind it. Put that number(in my example "1") and put it behind the domains that you want to mimic the first domain(in my example "2" and "3"

I hope that helps.
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.