6

The IMAP mailbox that Dovecot sets up has no SENT folder or TRASH folder. How do I set those up? Is there a way to place them outside of the INBOX hiearchy? I want to make sure that these folders work with the iPhone email client or any other mobile email client.

3

So just to be aware, there's no "standard" here, different clients sometimes use different folders for Sent, Drafts, Trash etc.

Saying that, if you have a standard for your clients to use (or you're just using one client), you can auto-create and auto-subscribe clients to folders.

See the autocreate plugin

  • Also clients like Kmail or Thunderbird allow for changing the location folders to some custom ones – Hubert Kario Nov 17 '12 at 14:24
  • Note that the autocreate plugin has been deprecated in Dovecot 2.1. Now, you have to configure a mailbox with auto=create. – bortzmeyer Jan 20 '18 at 17:20
4

I got a similar problem, the Samsung Android app was creating its own TRASH folder, instead of using the existing Trash one. After fixing it, as described below, I had to remove then add again the account so it update its configuration.

The solution is the Dovecot namespace configuration:

See https://wiki.dovecot.org/ MailboxSettings and Namespaces (I cannot post more than 2 links...)

I personally use this (from here):

namespace inbox {
  type = private
  separator = .
  inbox = yes
  mailbox Drafts {
    special_use = \Drafts
    auto = subscribe
  }

  mailbox Junk {
    special_use = \Junk
    auto = create
  }

  mailbox spam {
    special_use = \Junk
    auto = no
  }

  mailbox Spam {
    special_use = \Junk
    auto = no
  }

  mailbox Trash {
    special_use = \Trash
    auto = subscribe
  }

  mailbox TRASH {
    special_use = \Trash
    auto = no
  }

  mailbox Sent {
    special_use = \Sent
    auto = subscribe
  }

  mailbox "Sent Mail" {
    special_use = \Sent
    auto = no
  }

  mailbox "Sent Messages" {
    special_use = \Sent
    auto = no
  }

  mailbox Archive {
    special_use = \Archive
    auto = create
  }

  mailbox "Archives" {
    special_use = \Archive
    auto = no
  }
}

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.