1

Change Default 'Spam' folder path set in filter to match Roundcube


M
MagicSpam Support Team

While I am aware that one can modify the templates located in for example:
/usr/local/directadmin/data/templates/filter_filteruserspamfolder
I believe it would make more sense for stock DirectAdmin to change the value of the folder that gets injected into provisioned /etc/virtual/[domain]/filter files to no longer be '.INBOX.spam', but rather '.Junk'.
The reason for this is that the IMAP (dovecot) configuration in DirectAdmin is not set up to use 'INBOX' as a prefix - so when a message is delivered to Spam folder, it shows up as a sub folder underneath Inbox labeled 'spam', with no association with the registered 'Junk' folder - or any of the associated names set in /etc/dovecot/conf/namespace_private.conf as 'Junk' special folders:

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
}

mailbox spam {
special_use = Junk
auto = no
}

mailbox Spam {
special_use = Junk
auto = no
}

mailbox Trash {
special_use = Trash
auto = subscribe
}

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
}
}

A