[BUG] move_domain.sh on Virtual User Acct (Solved)

Yikes2000

Verified User
Joined
Jul 17, 2004
Messages
57
(This is a *VERY RARE* bug... I am posting the solution here for reference.)

When using the move_domain.sh script to move 'example.com' domain from userA to userB, if there is an existing virtual user email account '[email protected]', then after the move, userB's emails will be directed to:

~userB/imap/example.com/userB/Maildir

Instead of:

~userB/Maildir

Another symptom is that User Level -> example.com -> Email Accounts will show two entries for '[email protected]'. And neither one could be deleted:

You cannot delete the account '[email protected]' because it is linked to your system account.

Solution:
  1. Shut off exim
  2. Move all emails in ~userB/imap/example.com/userB/Maildir to ~userB/Maildir
  3. Delete userB's entry in /etc/virtual/example.com/passwd
  4. Start exim

I wasn't sure about step (2). I simply POP3 retrieved all emails for '[email protected]' for step (2). Note: POP3 still works even when exim is offline.
 
Back
Top