I am using IMAP.
I've updated my config to use "auto = subscribe", then restarted dovecot and postfix.  
I still do not see the folder though. 

On Mon, Nov 22, 2021 at 4:36 AM Christian Mack <christian.mack@uni-konstanz.de> wrote:
Hello

Am 22.11.21 um 00:58 schrieb bobby:
> I have been following the tutorial here:
> https://www.linuxbabe.com/mail-server/block-email-spam-check-header-body-with-postfix-spamassassin
> I notice that when I log into my mail via nextcloud mail, there is no spam
> folder.  Is there something further I need to do so it is generated?
>

Dovecot will autocreate folder when you tell it to do so with "auto" option.
In my example it also automatically subscribes this folder, as most
email clients only show subscribed folders.

The special_use option will tell all email clients, that this is an
folder for Junk.
So if they have some builtin "Mark as Junk/Spam" button, it will use
that folder to move to.

In /etc/dovecot/conf.d/15-mailboxes.conf set:
"[...]
namespace inbox {
[...]
  mailbox Junk {
    special_use = \Junk
    auto = subscribe
  }
[...]"


Kind regards,
Christian Mack

--
Christian Mack
Universität Konstanz
Kommunikations-, Informations-, Medienzentrum (KIM)
Abteilung IT-Dienste Forschung und Lehre
78457 Konstanz
+49 7531 88-4416