When Sent, Drafts or Trash do not sync over IMAP, the usual cause is that the client and the server disagree about which folder plays which role. The client is saving sent mail or drafts in a local folder, or in a differently named server folder, so other devices never see them. Fix it by mapping each special folder to the matching server folder in the account settings, subscribing to the folders you want, and turning on the option that stores sent messages on the server.
IMAP keeps mail on the server and lets every device show the same state, but the roles of Sent, Drafts, Trash, Junk and Archive are conventions that clients must discover or be told. This guide explains how that discovery works, how to see what the server really offers, and the exact settings to check in the most common clients.
How IMAP folder roles work
A mailbox on an IMAP server is a tree of folders, one of which is always named INBOX. The names of the others are not fixed: one server calls the sent folder Sent, another Sent Items, another INBOX.Sent. To help clients, the special-use extension (RFC 6154) lets a server mark folders with attributes such as \Sent, \Drafts, \Trash, \Junk and \Archive. A modern client reads these attributes and maps the roles automatically. If the server does not advertise them, the client guesses from the names, and guesses can go wrong. For background on the protocol see what IMAP is and how it works.
Typical symptoms and causes
| Symptom | Likely cause |
|---|---|
| Sent mail visible on one device only | That client stores sent messages locally, or in a folder the server does not expose |
| Duplicate Sent folders (Sent, Sent Items, Sent Messages) | Role guessed differently by different clients, or each client created its own |
| Drafts do not appear on the phone | Drafts mapped to a local folder, or the server folder is not subscribed |
| Deleted mail does not go to Trash | Client set to delete immediately or mark as deleted without moving |
| A folder created on the server is missing | Not subscribed in this client |
| Folder list is empty or only INBOX shows | Wrong IMAP path prefix or a namespace problem |
| Changes appear after a long delay | Folder is not checked regularly or IDLE push is disabled |
| Messages marked deleted but still visible | Server expunge not performed |
See what the server really offers
Before changing client settings, find out what the server lists. You can do this with a raw IMAP session, which removes any client from the equation. Use a throwaway test password, or an app password where required.
openssl s_client -connect imap.example.com:993 -quiet
a1 LOGIN [email protected] "PASSWORD"
a2 LIST "" "*"
a3 LSUB "" "*"
a4 LOGOUTThe output of LIST shows each folder with its attributes and the hierarchy delimiter, for example:
* LIST (\HasNoChildren \Sent) "/" "Sent Items"
* LIST (\HasNoChildren \Drafts) "/" "Drafts"
* LIST (\HasNoChildren \Trash) "/" "Deleted Items"
* LIST (\HasNoChildren) "/" "Archive"
* LIST (\HasChildren) "/" "INBOX" LSUB lists subscribed folders, which is what many clients display. A folder in LIST but missing from LSUB is not subscribed. Note the exact names, the delimiter and any prefix such as INBOX., since they must match the client configuration. Server names and attributes differ by provider, so treat the examples as illustrations.
Fix the settings by client
| Client | What to check (menu names change between versions) |
|---|---|
| Thunderbird | Account Settings, Copies and Folders: place sent messages and drafts in the server folders, not Local Folders. Right click the account, Subscribe, tick the folders. |
| Outlook (classic and new) | For IMAP accounts, set the Sent Items and Deleted Items folders to the server folders. Folders may need a refresh or a profile repair. |
| Apple Mail | Mailbox Behaviors for the account: store sent, draft and deleted messages on the server and choose the matching mailbox for each. Then rebuild the mailbox if needed. |
| iPhone and iPad | Mail account Advanced settings: choose the Drafts, Sent, Archive and Deleted mailboxes from the server list. |
| Android mail apps | Account settings, folders: select the server folders for sent, drafts and trash, and enable syncing for them. |
| Webmail | Usually correct by default. If a desktop client disagrees, trust the webmail view as the server state. |
Different clients often create their own folder on first connection, which is how Sent and Sent Items both appear. Choose one, point every client at it, and delete the empties afterwards once their contents have been moved.
Step by step repair
- Open webmail and note which folders exist and where your recent sent mail and drafts actually are.
- In each client, open the account's server settings and note the IMAP server, port and the path prefix.
- Set the special folders (Sent, Drafts, Trash, Junk, Archive) to the matching server folders. Do not leave them on local or on this computer folders.
- Subscribe to the folders you want to see and refresh the folder list.
- Enable storing sent messages on the server. If you send through your provider's SMTP server, check whether the provider already saves a copy itself so that you do not get duplicates. Gmail is an example, see below.
- Move any messages saved in the wrong local folder into the correct server folder by dragging them, and wait for the sync to finish.
- Restart the client and, if it still disagrees with the server, remove and re-add the account. This forces a fresh folder discovery; your mail stays on the server.
Gmail and labels
Gmail presents labels as IMAP folders, and its behaviour differs from conventional servers. A message with several labels appears in several folders though it is stored once. Deleting from a folder may only remove the label, and the settings under Forwarding and POP/IMAP in Gmail control what appears and what deleting does. Gmail also files a copy of mail sent through its own SMTP server in the sent label automatically, so a client that saves a second copy produces duplicates. Check the options in the Gmail settings and in the client, and read IMAP settings for common providers and Gmail SMTP settings. Gmail's menus change, so check its current help pages.
Sent mail not appearing even though the sending works
If a message is delivered but never shows in Sent, the SMTP side worked and the IMAP save did not. Many clients perform two separate operations: send over SMTP, then append a copy to the Sent folder over IMAP. If the append fails because the folder name is wrong, the account is over quota, or the connection drops, you see no copy and often no error. Check the free space, as explained in mailbox full and over quota errors, and see the dedicated guide sent emails not showing in the Sent folder.
Troubleshooting
| Problem | Likely cause | What to do |
|---|---|---|
| Folder list empty | Wrong IMAP path prefix | Clear the prefix, or set it to the one shown by LIST |
| Two Trash folders | Client created its own | Set the Trash role to one folder and delete the other |
| Slow or incomplete sync | Large folder, limit on sync window, no IDLE | Raise the sync window, and enable push or shorten the poll interval |
| Server error when saving draft | Over quota or invalid folder name | Free space, correct the mapping |
| Works in webmail, not in the app | App configured with wrong role mapping | Re-map folders and re-add the account if needed |
| POP3 account, not IMAP | POP downloads and removes mail, so no folder sync | Switch the account to IMAP. See IMAP, POP3 and SMTP compared |
Prevention and next steps
- Use IMAP, not POP3, on every device that should share state.
- Set the folder roles on the first device and verify them in webmail.
- Avoid local folders for anything you want to see elsewhere.
- Keep the mailbox under quota, because a full mailbox breaks saving drafts and sent copies.
- After a server migration, check the folder names and re-run discovery on every client.
Sending application mail rather than personal mail? Use an authenticated relay for outgoing messages and keep your mailboxes for people.
References and further reading
Frequently asked questions
Why is my Sent folder not syncing over IMAP?
Your client is probably saving sent mail in a local folder or a differently named server folder. Map Sent to the server folder in the account settings.
What are special-use folders?
Folders that an IMAP server marks with attributes such as Sent, Drafts and Trash (RFC 6154) so that clients can map them automatically.
Why do I have two Sent folders?
Different clients created their own folder or guessed the name differently. Choose one, point all clients at it and delete the other.
How do I check which folders the server has?
Log in with an IMAP session and run LIST and LSUB, or compare with the webmail folder list.
Will removing and re-adding the account delete my mail?
No. IMAP mail is stored on the server, so re-adding the account only forces the client to rediscover the folders.