[toaster] alias domain: delete original domain

2009-09-16 Thread Martin Pittelkow

Hi,

I've got the following problem:

a) Main Domain:  example.com
b) Alias Domain: example.org

Now, the MAIN domain has been canceled, and the alias domain shall be 
the main domain.


Is there any possibility to make this possible without losing all the 
mails stored in /home/vpopmail/domains/example.com?


Thanks,
Martin.


Re: [toaster] alias domain: delete original domain

2009-09-16 Thread Rick Macdougall

Martin Pittelkow wrote:

Hi,

I've got the following problem:

a) Main Domain:  example.com
b) Alias Domain: example.org

Now, the MAIN domain has been canceled, and the alias domain shall be 
the main domain.


Is there any possibility to make this possible without losing all the 
mails stored in /home/vpopmail/domains/example.com?


Thanks,
Martin.


Hi,

Short answer, no.

Long answer, yes.  You can with the following steps:

mv example.com example.org

alter the /var/qmail/users/assign file to ping example.org to the new
directory and remove example.com

/var/qmail/bin/qmail-newu

alter the /var/qmail/control/[more]rcpthosts and virtualdomains to 
remove example.com


svc -h /service/qmail-send

Then check all .qmail-* and .qmail files in the users directories to fix 
anything pointing to the old /home/vpopmail/domain/example.com and 
replace with example.org.


I may have missed something above, but that's the basic idea.

Regards,

Rick



Re: [toaster] alias domain: delete original domain

2009-09-16 Thread Rick Macdougall

Martin Pittelkow wrote:

Hi,

I've got the following problem:

a) Main Domain:  example.com
b) Alias Domain: example.org

Now, the MAIN domain has been canceled, and the alias domain shall be 
the main domain.


Is there any possibility to make this possible without losing all the 
mails stored in /home/vpopmail/domains/example.com?


Thanks,
Martin.


Oh yah, you'll also need to modify your vpasswd file/mysql/postgres 
users to point to the new example.org directory.


Regards,

Rick