I have an Ubuntu 14.04 server set up with LDAP authentication for Virtualmin. I would like to pre-populate the Maildir directory with the basic mail folder (spam, trash, etc.). To do this, I created the folders in the /etc/skel directory and created another, empty /etc/skel.dom directory and set the new domain template directory to that. However, when new users are created, the contents of the /etc/skel directory are not copied.
I've tried setting the "Copy files into new home directories from" setting in the LDAP Users and Groups module, but that didn't help. Creating a user in the LDAP Users and Groups module works correctly and copies the files.
Alternatively, is there a way I can specify a script to run at user creation, but not at domain creation?