Changing the "Junk" folder

SYSTEM INFORMATION
OS type and version AlmaLinux 9
Virtualmin version 7.30.8

I’m like, 99% sure I keep skipping over this… but I for the life of me cannot find the option that changes the default “spam” folder and lets me change it to something else for the email.

Just tired of Thunderbird fighting me when I’m setting up new users and it defaults to “spam” instead of Junk.

I think “virtualmin” creates the spam folder not thunderbird, thunderbird can do its own filtering and use junk by the docs.

Yeah for some reason it always creates a seperate “Junk” folder before I had a chance to do anything. Like just after the account creation in Thunderbird.

I found the virtualmin settings

1 Like

Besides the templates, I have no idea how to get to that page.

Thats Virtualmin Configuration.
I’ll update the screenshot

1 Like

AHA! There it is!

Thanks for that.

1 Like

I just want to add here that mail clients manage their own folders. Virtualmin can’t dictate what Thunderbird or other mail clients do, in terms of where stuff ends up. You can only configure what Virtualmin does, and what Usermin does. Other mail clients may also be configurable (probably are), but Virtualmin has no control over them. All you can do is try to use the same defaults as the majority of your clients, and you’ll still have outliers that need a bit of tweaking on one side or the other, if you want everybody to agree about where stuff goes.

1 Like

I thought you could set spam folder to either spam or junk in dovecot.

I guess Dovecot does support RFC 6154: IMAP LIST Extension for Special-Use Mailboxes

Which covers things like \Junk special use flag for folders. I don’t know which mail clients support that, but I guess most do (and I don’t think Usermin does, but it should).

But, this is advisory, it doesn’t force anything to happen and it can’t. Except for what Dovecot does, but Dovecot does not make spam filtering decisions in a Virtualmin system (it would if you were using the Sieve implementation in Dovecot, but that’s not how mail processing happens on a Virtualmin system).

But, since you control Usermin and Virtualmin, you can configure Dovecot with the special_use directive and Usermin and Virtualmin to match whatever you think everyone should use for spam, and that will cover most cases, I guess. At least most modern cases that support recent-ish RFCs.

This isn’t specifically about this, as it assumes Dovecot is involved in spam filtering which is not the case in a Virtualmin system, but it shows an example of what I’m talking about with configuring that folder:

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.