Doveadm Move Query

Paul Kudla (SCOM.CA Internet Services Inc.) paul at
Tue Aug 2 10:58:00 UTC 2022

ok user at needs to exist before any operations can be done on it.

I discovered that dovecot does not consider a virtual mailbox active 
until it is returned in the user database

see : doveadm user '*'

both accounts MUST be returned in the list (user at .net & user at .com)

from there it should work as expected.

i went through this with my django email user interface as the user was 
not being saved in the database until the django model had completing 
saving a new entry, thus when creating the new account i had to put a 
delay check in my create email account that continued to loop until 
django had finished it's processing, very anoying (not dovecot's issue) 
but i think you are facing something similiar?

it seems you might be renaming the mbox ?

again both user at .net & user at .com must exist along the way before the 
account(s) can be accessed.

if renaming the mbox is your intention than add the user at .com account

move should now work

then delete the user at .net account.

Happy Tuesday !!!
Thanks - paul

Paul Kudla Internet Services <>
004-1009 Byron Street South
Whitby, Ontario - Canada
L1N 4S3

Toronto 416.642.7266
Main 1.866.411.7266
Fax 1.888.892.7266
Email paul at

On 8/2/2022 6:49 AM, Simon B wrote:
> I have a production Dovecot problem and although I searched the mailing 
> lists, I could not find an answer and I hope you can give me a quick 
> answer/pointer in the right direction.
> I have mails for a user (user at <mailto:user at>) 
> under /var/spool/mail/virtual/ <>  
> and I want to move ALL the mails to 
> /var/spool/mail/virtual/ <>
> If I use
> #doveadm -Dv move -u user at 
> <mailto:user at>  Maildir:/var/spool/mail/virtual/ <>  Maildir:/var/spool/mail/virtual/ <> ALL
> I get
> doveadm(root): Fatal: Unknown argument 
> MAILDIR:/var/spool/mail/virtual/ <>
> if I use
> #doveadm -Dv move -uuser at 
> <mailto:user at> Maildir:/var/spool/mail/virtual/ 
> <> /var/spool/mail/virtual/ 
> <>ALL
> doveadm(root): Fatal: Unknown argument 
> /var/spool/mail/virtual/ <>
> What the hell am I doing wrong!? :)
> Thanks.
> Simon
> -- 
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <>, and is
> believed to be clean.

More information about the dovecot mailing list