Spam folder inside Inbox

elsevi

Verified User
Joined
Jan 27, 2020
Messages
35
I don't quite understand why there's a spam folder in my inbox. Can anyone help me figure it out?
 
How is your Spam Assassin setup? If I recall correctly the default setting is to put spam into that sub-folder and it gets created when you turn on Spam Assassin.
 
The configuration is the one that comes by default when activated with CB. What should I do to place it in a separate folder?
 
Hello,

It is done per the Dovecot's default configs (all special folders are created in INBO namespace):

Bash:
# cat /etc/dovecot/conf/namespace_private.conf
namespace inbox {
    type = private
    separator = .
    prefix =
    inbox = yes

    mailbox Drafts {
        special_use = \Drafts
        auto = subscribe
    }

    mailbox Junk {
        special_use = \Junk # autocreate Junk, but don't autosubscribe
        auto = create
        fts_autoindex = no
    }

    mailbox spam {
        special_use = \Junk
        auto = no
        fts_autoindex = no
    }

    mailbox Spam {
        special_use = \Junk
        auto = no
        fts_autoindex = no
    }

    mailbox Trash {
        special_use = \Trash
        auto = subscribe
        fts_autoindex = no
    }

    mailbox Sent {
        special_use = \Sent
        auto = subscribe
    }

    mailbox "Sent Messages" {
        special_use = \Sent
        auto = no
    }

    mailbox "Sent Items" {
        special_use = \Sent
        auto = no
    }

    mailbox Archive {
        special_use = \Archive
        auto = no
    }

    mailbox "Archives" {
        special_use = \Archive
        auto = no
    }
}

I don't quite understand why there's a spam folder in my inbox. Can anyone help me figure it out?
 
Yo Do you mean it's by default? It's the only DA installation where it appears like this in emails. I have more than five servers.
 
Yo Do you mean it's by default?

Yes, I do. I posted the default namespace_private.conf which by default is generated from /usr/local/directadmin/custombuild/configure/dovecot/conf/namespace_private.conf

You can even run:

Bash:
doveconf -n | grep mailbox -A 3

to see loaded configuration.

If the situation is different on other servers of yours, then either they have a custom configuration or are old enough and were installed before the namespace_private.conf started to be used in the current revision by DirectAdmin.
 
This is what I have:

Code:
root@host ~ # doveconf -n | grep mailbox -A 3
  mailbox Drafts {
    auto = subscribe
    special_use = "\\Drafts"
  }
  mailbox Junk {
    fts_autoindex = no
    auto = create
    special_use = "\\Junk"
--
  mailbox spam {
    fts_autoindex = no
    auto = no
    special_use = "\\Junk"
--
  mailbox Spam {
    fts_autoindex = no
    auto = no
    special_use = "\\Junk"
--
  mailbox Trash {
    fts_autoindex = no
    auto = subscribe
    special_use = "\\Trash"
--
  mailbox Sent {
    auto = subscribe
    special_use = "\\Sent"
  }
  mailbox "Sent Messages" {
    auto = no
    special_use = "\\Sent"
  }
  mailbox "Sent Items" {
    auto = no
    special_use = "\\Sent"
  }
  mailbox Archive {
    auto = no
    special_use = "\\Archive"
  }
  mailbox Archives {
    auto = no
    special_use = "\\Archive"
  }
root@host ~ #
 
This is what I have:

You might even try:

Code:
doveconf -n | grep mailbox -C 10

but I'm almost sure you will see:

Code:
namespace inbox {
  inbox = yes
  prefix =
  separator = .
  type = private

there.

Anyway you've got there:

Code:
  mailbox Junk {
    fts_autoindex = no
    auto = create
    special_use = "\\Junk"

  mailbox Spam {
    fts_autoindex = no
    auto = no
    special_use = "\\Junk"
 
PAG So it's not the default, right? Does it have something to do with spasassin? Is there something you can change when configuring?
 
Back
Top