# Missing IMAP Folders after cPanel Account Migration

**URL:** <https://forum.virtualmin.com/t/missing-imap-folders-after-cpanel-account-migration/128232>\
**Category:** Help! (Home for newbies)\
**Created:** [July 29, 2024, 7:32pm UTC](https://forum.virtualmin.com/t/missing-imap-folders-after-cpanel-account-migration/128232 "2024-07-29T19:32:55Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbutler](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/t/c77e96/32.png) [@tbutler](https://forum.virtualmin.com/u/tbutler)\
**Post date:** [July 29, 2024, 7:32pm UTC](https://forum.virtualmin.com/t/missing-imap-folders-after-cpanel-account-migration/128232/1 "2024-07-29T19:32:55Z")

</div>

After moving accounts from cPanel to Virtualmin, I’ve finding some e-mail related things did not migrate (e-mail filters, for example) while others seem to have migrated _partly_. The most worrisome is IMAP folders. Some accounts came over cleanly with mailboxes’ full set of folders, whereas others have those folders within Usermin, but some or all of them do not show up in macOS or iOS mail clients.

For example, one account has probably 20 folders and not even the new SpamAssassin spam folder is visible in Apple Mail right now. Another showed dozens of the users’ folders, but several were missing. Is there anything nuanced that needs to be changed in client configuration and/or on the server to clean up the migration to display the folders? Maybe a way to force some sort of reindexing or something?

This is one such account missing a bunch of folders. Here’s the status in Apple Mail:

 ![Screenshot 2024-07-29 at 2.30.55 PM](https://cdn.forum.virtualmin.com/uploads/default/original/2X/5/52d5c11d5f80a9434bdd6828c922f3fb0f2c4721.jpeg)

Here’s that same account in Usermin’s Folder management (only a partial listing is visible – there are a lot more folders beyond the fold):

 ![Screenshot 2024-07-29 at 2.33.44 PM](https://cdn.forum.virtualmin.com/uploads/default/original/2X/4/457e1f92b494c2e4a536d3e1b8b9a46ea2059785.png)

| SYSTEM INFORMATION | |
| --- | --- |
| OS type and version | REQUIRED |
| Virtualmin version | 7.20.1-Pro |

---

<div class="post-metadata">

**Author:** ![stefan1959](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@stefan1959](https://forum.virtualmin.com/u/stefan1959)\
**Post date:** [July 29, 2024, 11:06pm UTC](https://forum.virtualmin.com/t/missing-imap-folders-after-cpanel-account-migration/128232/2 "2024-07-29T23:06:00Z")

</div>

You could try this command

> **[doveadm-force-resync | Dovecot CE](https://doc.dovecot.org/2.4/core/man/doveadm-force-resync.1.html)**
>
> Dovecot CE Documentation

---

<div class="post-metadata">

**Author:** ![ID10T](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/id10t/32/7895_2.png) [@ID10T](https://forum.virtualmin.com/u/ID10T)\
**Post date:** [July 30, 2024, 3:11am UTC](https://forum.virtualmin.com/t/missing-imap-folders-after-cpanel-account-migration/128232/3 "2024-07-30T03:11:51Z")

</div>

If they show up on the server then my wild guess is subscriptions. IMAP only shows folders you subscribe to. Not sure where that’s handled. You have the choice as to where the dovecot specific files. I think the default for VM is NOT in the user home directory. Probably to keep the user from doing stupid user spit to them?

```auto
root@spain:/home/x/homes/mit/Maildir# ls
cur dovecot.index.log.2 dovecot.mailbox.log maildirsize
dovecot.index dovecot-keywords dovecot-uidlist new
dovecot.index.cache dovecot.list.index dovecot-uidvalidity subscriptions
dovecot.index.log dovecot.list.index.log dovecot-uidvalidity.6403ca01 tmp

```

---

<div class="post-metadata">

**Author:** ![tbutler](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/t/c77e96/32.png) [@tbutler](https://forum.virtualmin.com/u/tbutler)\
**Post date:** [July 30, 2024, 3:38am UTC](https://forum.virtualmin.com/t/missing-imap-folders-after-cpanel-account-migration/128232/4 "2024-07-30T03:38:24Z")

</div>

> [@ID10T](#):
>
> If they show up on the server then my wild guess is subscriptions. IMAP only shows folders you subscribe to. Not sure where that’s handled. You have the choice as to where the dovecot specific files.

Yeah, I wondered if it might be something like that. Although I can’t explain why some accounts came over “subscribed” and others – as far as Apple seems concerned – don’t exist even in the properties box. (I’m not sure if there’s some place where Apple’s clients support subscribing, but I don’t think I’ve seen that option on the Apple side of things.) I’ve tried completely deleting and adding the accounts back, but no dice…

---

<div class="post-metadata">

**Author:** ![tbutler](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/t/c77e96/32.png) [@tbutler](https://forum.virtualmin.com/u/tbutler)\
**Post date:** [July 30, 2024, 3:53am UTC](https://forum.virtualmin.com/t/missing-imap-folders-after-cpanel-account-migration/128232/5 "2024-07-30T03:53:22Z")

</div>

Not sure if this has relevance, but Apple Mail is having a hard time doing secure login for IMAP now, too, if I login using the individual virtual server’s domains as opposed to the main server domain. I wonder if something is amiss with Dovecot’s virtual server configuration?

---

<div class="post-metadata">

**Author:** ![tbutler](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/t/c77e96/32.png) [@tbutler](https://forum.virtualmin.com/u/tbutler)\
**Post date:** [July 30, 2024, 4:17am UTC](https://forum.virtualmin.com/t/missing-imap-folders-after-cpanel-account-migration/128232/6 "2024-07-30T04:17:04Z")

</div>

Thank you @stefan1959. No joy, unfortunately, but it’s a good tool to add to my tool belt. I appreciate it!

---

<div class="post-metadata">

**Author:** ![tbutler](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/t/c77e96/32.png) [@tbutler](https://forum.virtualmin.com/u/tbutler)\
**Post date:** [July 30, 2024, 4:32am UTC](https://forum.virtualmin.com/t/missing-imap-folders-after-cpanel-account-migration/128232/7 "2024-07-30T04:32:39Z")

</div>

Actually, I take that back. Things have been fluxating enough, it feels like, I hate to declare victory just yet, but I think @stefan1959 's suggestion might have fixed it!

---

<div class="post-metadata">

**Author:** ![ID10T](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/id10t/32/7895_2.png) [@ID10T](https://forum.virtualmin.com/u/ID10T)\
**Post date:** [July 30, 2024, 4:33am UTC](https://forum.virtualmin.com/t/missing-imap-folders-after-cpanel-account-migration/128232/8 "2024-07-30T04:33:10Z")

</div>

There seems to be different permissions on the dovecot files. But it seems to be most, if not all of them.

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [September 28, 2024, 4:33am UTC](https://forum.virtualmin.com/t/missing-imap-folders-after-cpanel-account-migration/128232/9 "2024-09-28T04:33:56Z")

</div>

Closed on September 28, 2024, 4:33am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
