PDA

View Full Version : Moving mail files from other server.



tino
02-05-2004, 02:52 AM
Hi,

I recently migrated a users website from an old server to a new DirectAdmin server. The site has been moved completely, and on the new server the mailboxes are recreated.

From the old server, I have the mail files for the mailboxes that were on that machine. Let's say; userA, userB and userC.

Now, on the DirectAdmin machine, I can only locate the mailbox file for the primary user, the site admin.

Q: How can I give the users thier mail back from the mail files I have? Where should I place them (with what permissions)? Since I can only locate the mailbox file for the main user/admin of the account...

Tino

ProWebUK
02-05-2004, 03:39 AM
/var/spool/mail/*

Best way is probably backup your current mail directory then backup and restore your current directory (storing permissions)

Chris

tino
02-05-2004, 03:46 AM
Hi,

In the /var/spool/mail I can only find the mailboxes for the primary users (or admins) of the domain, not for the POP3 mailboxes that user created for the domain...

Say the user I create for the domain domain.com is "admin". I can locate the "admin" mailbox in the /var/spool/mail. But if the user "admin" creates POP3 mailboxes for his domain through the control panel (let's say he creates "support@domain.com" and "sales@domain.com"), these mailboxes do not show up in /var/spool/mail.

Any ideas on this?

Tino

DirectAdmin Support
02-05-2004, 12:16 PM
/var/spool/virtual/domain.com/*

John

tino
02-05-2004, 12:39 PM
Dzjeez.. Why Didn't I think of that.. :-)

Thanks a million!

Tino

ProWebUK
02-05-2004, 05:03 PM
Originally posted by DirectAdmin Support
/var/spool/virtual/domain.com/*

John

nearly had it :o

Chris

tino
02-06-2004, 12:34 AM
Haha.. yeah..

I seems like the mail files are created upon reciept of the first message...

Well, I put them in the right spot, changed the permissions and now I'll see what the customer has to say!

Tino