recipient bcc and dovecot

Aki Tuomi aki.tuomi at open-xchange.com
Wed Mar 13 09:42:39 EET 2019


Add mail_location setting or return 'mail' from userdb.

Aki

On 13.3.2019 5.53, @lbutlr via dovecot wrote:
> I have a recipient_bcc_maps which contains a bcc map that is updated everyday:
>
> rbcc.pcre:
> if !/backup.*@/
> /^([^+_]*).*@([^.]*)/   backup+071.${1}-${2}@adomain.tld 
> endif
>
> the 071 portion is changed each day to the current day of the year.
>
> Everything works, but I get an error from dovecot on every message:
>
> lda(backup at adomain.tld): Error: User initialization failed: Namespace '': Ambiguous mail location setting, don't know what to do with it: /usr/local/virtual/backup at adomain.tld (try prefixing it with mbox: or maildir:)
>
> The mail is delivered two the right directory anyway, but after a temporary failure.
>
> I'd like to eliminate the error.
>
> the backup user is not a 'real' user (it is not in the lookup map) so should I bypass dovecot entirely in delivering these messages? (and if so, how)
>
> If not, where/how would I add the prefix maildir: 
>
> Is there something I can add to dovecot to specifically deal with messages coming in to backup at adomain.tld and add the maildir: specification there?
>
> (Still on dovecot 2.2.35)
>


More information about the dovecot mailing list