Hello all, I am a little ashamed to ask this, but my scripting power is very bad.
I have inherited a mail server, and it has the maildir on another location than we used to have.
Our structure looks like the following.
The server I inherited has it almost like this.
Only this way
Now I want a little copy script that creates the Maildir folder in the /usr/local/domain1/user folder and then copy everything from the /usr/local/domain/user folder to the created Maildir folder.
I have tried some options, but it does not run through all the username folders, and sometimes it stops at the different domains.
There are in total 11 domain folders, and each domain has about 400 to 500 user folders.
Thanks for your time.
Gr
Johan
I have inherited a mail server, and it has the maildir on another location than we used to have.
Our structure looks like the following.
Code:
/usr/local/domain1/users/Maildir
/usr/local/domain2/users/Maildir
The server I inherited has it almost like this.
Only this way
Code:
/usr/local/domain1/users
/usr/local/domain2/users
Now I want a little copy script that creates the Maildir folder in the /usr/local/domain1/user folder and then copy everything from the /usr/local/domain/user folder to the created Maildir folder.
I have tried some options, but it does not run through all the username folders, and sometimes it stops at the different domains.
There are in total 11 domain folders, and each domain has about 400 to 500 user folders.
Thanks for your time.
Gr
Johan