Repository navigation
Description
Spam messages sent to a public mailbox address are not stored in that public mailbox. They are moved into a hidden "Junk" folder that no user can see, so nobody can check them for false positives or recover them.
Steps to reproduce
- In the Mail application settings, keep the default "Move spam to the Junk folder" option enabled
- Create a public mailbox, for example
sales, and give a user read/write access to it - Create an address, for example
sales@example.org, with that public mailbox as destination - From an external sender, send a message that the spam filter marks as spam (for example, a message that fails the SPF check of its sender domain)
- Log in with the user that has access to the public mailbox and look for the message
Expected behavior
Spam messages sent to public mailboxes can be found and reviewed by the users who manage those mailboxes, like the spam messages of a personal mailbox.
Actual behavior
The message is not in the sales public mailbox. It is stored in a "Junk" folder at the top level of the internal vmail account, the one that holds all public mailboxes. That folder has no access permissions (ACLs), so it is not listed among the public mailboxes and no user can open it. It cannot be managed from the Public mailboxes page either.
All spam sent to any public mailbox ends up in that single hidden folder. It was checked with doveadm mailbox status -u vmail messages '*' inside the dovecot container: the test messages to the public mailbox address were in Junk, and the public mailbox itself was empty.
Proposed solution
Handle the spam folder of vmail like a normal public mailbox:
- list it on the Public mailboxes page, with the name of the spam folder setting (default
Junk); - let the administrator set its ACLs like any other public mailbox, so the users who manage public mailboxes can review it, move false positives back, and train the spam filter;
- keep it when it is empty, and do not allow it to be removed while the spam folder option is enabled.
The spam retention setting should also apply to it, like the spam folder of each user. This needs a check: the cleanup procedure (spam-expunge) may not include vmail today.
Alternative solutions
- A spam subfolder inside each public mailbox (for example
sales/Junk): spam stays close to its mailbox and inherits its permissions, but every public mailbox gets an extra folder. - Do not move spam for public mailboxes: the message stays in the public mailbox with the spam subject prefix. Simple, but spam mixes with legitimate messages.
Components
Mail 1.9.3 and 2.0.0-beta.6 (Dovecot 2.3 and 2.4): the behavior is the same, it is not a regression of Mail 2.0.
See also
- https://github.com/NethServer/ns8-mail
- Found during the QA of Mail: upgrade to Dovecot 2.4 #8267
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsToDo
Activity