Skip to main content

SSH command to detect if domain is using mdbox or maildir

Comments

3 comments

  • codepoet
    Actually to add to this. If a domain is using mdbox, wouldn't it be impossible to empty a specific amount of message in the spam folder since mdbox stores one or more messages per file ?
    0
  • cPanelMichael
    Hello @codepoet, Good question! The mdbox format does in-fact stores multiple messages in a single file. To manually delete messages, you'd use the expunge feature with doveadm: Tools/Doveadm/Expunge - Dovecot Wiki Here's an example of a command you can use to delete all messages from an email account's INBOX folder:
    doveadm expunge -u test1@domain.tld mailbox INBOX all
    Thank you.
    0
  • codepoet
    Thank you @cPanelMichael Sorry for the late reply :S
    0

Please sign in to leave a comment.