Changing the default delivery mailbox to something other than INBOX

Ron Garret ron at flownet.com
Sun Jan 17 22:08:13 EET 2021


Is there an easy way (i.e. a built-in configuration setting) to change the name of the mailbox that the dovecot LDA delivers mail into?  The default is INBOX but I’d like mail to be delivered to some other mailbox.  The reason for this is that I want all incoming mail to be invisible to the user by default until it has been screened for viruses and spam.  I know I could do this with Sieve, but that is a PITA.

More details in case anyone is interested:

The goal of this filter is to make it work with very little training.  To bootstrap the process, the filter is given access to outgoing mail (via a milter) which it uses as a reliable training corpus for good messages.  It then leverages that information to filter incoming messages.  For example, messages from senders which have been the recipients of outgoing messages are presumed to be good.  There is also a spam honeypot to provide a reliable spam corpus.

One of the heuristics I want to use is to look for the same subject line in multiple messages from unknown users received over a period of an hour or so because those are almost invariably spam.  But that requires a time delay between when a message is received and when it is filtered, and that in turn requires a place to store messages for a while before they are processed.  While they are in that temporary storage, I don’t want them in the user’s face, but I do want them to be accessible if the user wants to see them (e.g. if they know that an important message is coming in which may be stuck in the temp storage).  So I’d like to make something like an INCOMING mailbox where all mail is delivered.  The messages in INCOMING are scanned by the filter and moved to Junk or INBOX as appropriate.

Thanks,
rg



More information about the dovecot mailing list