Posting what I am finding just in case it is helpful to anyone else:
Seems /scripts/resetimappasswds should do the trick but it doesn't for 2 reasons:
1. Its rm -f /etc/vmail/* can't handle the number of entries in the directory. Shouldn't be a show stopper though/
2. It calls /scripts/updateuserdomains However that code specifically doesn't do /etc/vmail updates unless you are running maildir? Looks like a bug to me:
Code:
my $buildvmail = 0;
if ( $cpconf->{'maildir'} ne '1' ) {
print "Warning: deprecated mbox still in use. Please switch to maildir soon.\n";
} else {
if ( !-e '/etc/vmail/' ) {
mkdir( '/etc/vmail/', 0755 );
chown 0, 0, '/etc/vmail';
$buildvmail = 1;
}
if ( ( stat('/etc/passwd') )[9] > ( stat('/etc/vmail') )[9] ) {
$buildvmail = 1;
}
... vmail rebuild here
}