URGENT: Location of pop mailboxes on FreeBSD?

thoroughfare

Verified User
Joined
Aug 11, 2003
Messages
575
Hi,

When I recently transferred all of my user backups from a Linux server to a FreeBSD server, not all of the forwarders and pop mailboxes were restored.

Where is the list of pop mailboxes stored? I don't mean the email data itself, but actually the list of mailboxes assigned to each user. I want to restore those lists so that if a user's mailbox has gone missing, it will recreate it for them (albeit without the old email data).

Any ideas would be much appreciated,
Matt



PS, if this helps anyone:

I've restored the forwarders etc using:
Code:
cd /etc/virtual
echo passwd > exclude.me
tar zcf mailstuff.tar.gz --exclude-from=exclude.me *

...on the old server then a 'tar zxvf' on the new server under /etc/virtual. Note the exclude.me is used because I didn't want to copy over the passwd files.
 
Ah yes, it also looks like /etc/virtual/domain.com/passwd is involved too. I'm going to do some testing.

Thanks!
Matt :)
 
Well, it turns out that you can recreate a pop account simply by restoring its line in /etc/virtual/domain.com/passwd.

So to restore all pop3 mailboxes, it was a simple matter of:

cd /etc/virtual
tar zcf mailstuff.tar.gz --preserve *

SCP to new server and then untar.

Hope that helps someone else :)
Matt
 
Back
Top