(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:
Solution:
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.
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:
- Shut off exim
- Move all emails in ~userB/imap/example.com/userB/Maildir to ~userB/Maildir
- Delete userB's entry in /etc/virtual/example.com/passwd
- 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.