I recently had to create a number of home directories from the user accounts in the /etc/passwd file because Webmin didn't create them when the user was created. Don't ask me why. Webmin is a mystery and only does things it feels like doing at the time it does them. But I digress..
The first thing I did was to create file with all users that have directories.
Edit the file you created and remove things like the postfix directory and other non-user account directories.
Next, run the command to create all of the home directories and then change their ownership to the user.