Help - Search - Members - Calendar
Full Version: Joe@FooBar.* --> Joe@FooBar.Net
The Planet Forums > Control Panels > Plesk
tekmage
Ensim has this by default when you alias domains, it will automatically send all mail from the alias domains into the main domain. Plesk doesn't seem to have this without doing it by hand. Going into every alias domain and making email account then redirecting it.

Since both Ensim and Plesk use qmail, does any qmail wizard know what I can do in or outside of Plesk to not have to recreate a ton of email accounts?

Thanks.

-=TekMage
dpack
Yeah, I'm looking for information on how to accomplish exactly this with Plesk or manually, as well.
tekmage
One reply I received on plesk.net pages, made me think I wasn't clear, so I'll expand..

Yes, if all I wanted was a catch all joe@foobar.* ---> joe@foobar.net that would work great, however, I have say dozens of addresses, ie.

joe@foobar.* --> joe@barfoo.net
jane@foobar.* --> jane@barfoo.net
jim@foobar.* --> jim@barfoo.net

etc. and so on and so on...

Anyone know how that was done in Ensim (within qmail) and can repeat it here on plesk?

Thanks.

-=TekMage
dpack
Well, it only took me 4 hours, but I was able to find a solution.

Assuming you have foobar.com and foobar.net, where foobar.net is where you want all your mail to go, distributed correctly to each user.

Go into foobar.com mail preferences in Plesk, activate Catch to address and put anything in there (this will be changed later). Now, SSH to your server, cd to /var/qmail/mailnames/foobar.com and vi the .qmail-default file. Delete what you see in there (it will be the info you added in the previous step). Now type this:

| forward ${DEFAULT}@foobar.net

Save and you're done.

The .qmail-default file is essentially an action taken on all mail sent to that domain. The contents are a forward with a wildcard for the username the mail is addressed to, forwarding the email to the same username at the alternate domain name.

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.