DomainAdmin Mailbox Location & Sync/Copy to Second Account

countryboy01

Verified User
Joined
Nov 25, 2014
Messages
21
So in reference to my other question:
Fatal Error on Nutsmail Webmail after Login
http://forum.directadmin.com/showthread.php?t=50902

I am also going about this another way, but still seem to be stuck.

So I am looking for the Domain Admin Mailbox. When I go to /home/$DomainAdmin/imap/ I see the following:

Email1
Email2

I've did a little more digging, and I've found /home/$DomainAdmin/Maildir

Is that the path to the Domain Maildir? and If so, if I wanted to replicate the contents of that Maildir to Email2, Would the rsync command accomplish?(also I am not in the user that allows installation of new programs, only run current commands).

Rsync is what I am normally use to, but I also know that is common for Postfix. Since DAWEB normally runs Exim I am not sure if that would have the same effect or even the syntax for it.

I know postfix you will use it: rsync -av /old/mail/directory/path/ /new/mail/directory/path/ (the ending "/" is needed)
 
You've found the right place.

rsync shouldn't care whether you're using Postfix or Exim; All rsync does is synchronizes the directories and files. The issues I'm not sure of (you can test) would be file/directory ownership.

Of course one problem to consider would be that chanes made by one user would affect the email in the other users' mailbox. Is that what you want? In other words if user bill deletes email in his box do you want it to disappear from user jane's box as well? My understanding is that this is what will happen if you use rsync.

Another issue you might have would depend on the email clients your users are using, and whether they require using the index files.

Jeff
 
You've found the right place.

rsync shouldn't care whether you're using Postfix or Exim; All rsync does is synchronizes the directories and files. The issues I'm not sure of (you can test) would be file/directory ownership.

Of course one problem to consider would be that chanes made by one user would affect the email in the other users' mailbox. Is that what you want? In other words if user bill deletes email in his box do you want it to disappear from user jane's box as well? My understanding is that this is what will happen if you use rsync.

Another issue you might have would depend on the email clients your users are using, and whether they require using the index files.

Jeff

Jeff,

Thanks for the help.. If this helps clarify things, due to email1 receiving the error in the other post/topic that is linked to this one.

I am wanting all mail contents of Email1(Jan) to be synced to Email2(Test/Dummy account) to see if that will replicate the issue.

Email2 is just a throw away email that will be deleted once testing is completed, thus is why I don't want to just move the emails from Jan to the Dummy account.
 
The only change to my original post your explanation leaves me with is:

Be sure to remove the rsync before you delete the throw-away mailbox.

All else still stands.

Jeff
 
[Resolved] DomainAdmin Mailbox Location & Sync/Copy to Second Account

This and the other issue linked to this has been resolved.

Resolution:

This should of been the first thing I done with the Rsync Command.

After copying emails from the affected into a dummy(test) account, I was able to replicate the exact issue. I IMAP'd all the emails into Thunderbird and found that there were 21000+ emails in the account.

16000+emails alone were Mail Delivery Failure emails. I deleted all those from inbox, purge the trash folder a few times, logged in & out of webmail a few times for the server to sync, and viola I was able to access the inbox folder with no issues again.
 
Back
Top