Bug in the copyDir function prevented the "mail" group being set when the files were copied. Refers to the processes active running group, not a chgrp. The issue wasn't noticed as dovecot and exim can both function happily with mail files set to user:user, since they read as 'user:mail' so as long as the file has one of the 2, it will still work.