I am trying to set up dovecot to automatically create a Spam mailbox for every user. http://wiki2.dovecot.org/MailboxSettings shows how to do this but not what config file to put it in so I assume 10-mail.conf. When I put it in there as follows... namespace inbox { mailbox Spam { auto = create special_use = \Junk } } ... I get the following error ... doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-mail.conf line 107: Unknown setting: mailbox How do I create the mailbox?
Cliff Hayes wrote on 14.11.2014 06:01:> I am trying to set up dovecot to automatically create a Spam mailbox > for every user. > > http://wiki2.dovecot.org/MailboxSettings shows how to do this but not > what config file to put it in so I assume 10-mail.conf. > When I put it in there as follows... > > namespace inbox { > mailbox Spam { > auto = create > special_use = \Junk > } > } > > ... I get the following error ... > > doveconf: Fatal: Error in configuration file > /etc/dovecot/conf.d/10-mail.conf line 107: Unknown setting: mailbox > > How do I create the mailbox?Try: namespace inbox { mailbox "Spam" { auto = subscribe special_use = \Junk } }
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 13 Nov 2014, Cliff Hayes wrote:> http://wiki2.dovecot.org/MailboxSettings shows how to do this but not what > config file to put it in so I assume 10-mail.conf.In my default config files the template for this resides in 15-mailboxes.conf, 10-mail contains the definition of the namespaces.> > doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-mail.conf > line 107: Unknown setting: mailbox > > How do I create the mailbox?please post your config without that error. - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBVGWxZXz1H7kL/d9rAQJs6ggAhq+/KSLJOrEYg6Gp7erPmV6lSS5gUD6V rxbXzz/CUrFlKjmi1G18zz/LREcpv9DDuPchJ3o7v2AR8hDy4OT2V1KY/8Wtvt7g boxyQJH+6bxlMFd++2xI5VX0WocOFhL6pf626DMIAGdpstmL2f4KowT2PvVsEs9z WL4VfzOBkeGQPn3OJpRjOkPmCGj+X3JDtbKOTRZGLfjS0lN9/XXYAR0uL5XfBZQX b1zwsssAGjfqGGRq5p8q8RR0B8AoyATsBckVQejYSqiSc4vReAN3824Av4F6kFHS kdU2ZPJEgGhFuJ81Jrp9kxJjyQihnGvBy+VqOZKT76pX8beMdXkp+w==bm7g -----END PGP SIGNATURE-----