SSH command to detect if domain is using mdbox or maildir
Hello, I was wondering if there was an official way to detect using ssh if a domain is using mdbox or maildir. The reason why is because I am building a little script that would run on cron and empty the spam assassin spam folder. But since the mdbox and maildir storage directories are different I need a way to find out
Thanks in advance
-
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 -
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 -
Thank you @cPanelMichael Sorry for the late reply :S 0
Please sign in to leave a comment.
Comments
3 comments