Hello, Finally solved it. The namespace declarations must be like this: namespace inbox { prefix = separator = . list = yes inbox = yes }
namespace virtual { prefix = virtual. separator = . mail_driver = virtual mail_path = ~/Maildir/virtual mail_index_path = ~/Maildir/virtual/ mail_inbox_path = ~/Maildir/virtual/INBOX list = no hidden = yes inbox = no }
Then the dovecot-postlogin.sh script remains and changes the inbox between the two namespaces. The key point here I think are the two lines: mail_index_path = ~/Maildir/virtual/ mail_inbox_path = ~/Maildir/virtual/INBOX
With the above configuration and the rest of the config being equal everything now works again! I also had to delete the dovecot.index* on both ~/Maildir/virtual/ and ~/Maildir/virtual/INBOX Hope this helps somebody else.
Regards, Antonio