Line 93: |
Line 93: |
| Simply do : | | Simply do : |
| yum remove smeserver-learn | | yum remove smeserver-learn |
| + | |
| + | === Automatic creation of folders === |
| + | A script posted in the forum by Cactus and send to me by Amir Inbar can be used to create all folders (in skel for futures users and in the existings users too : |
| + | # create skellaton for new users : |
| + | |
| + | mkdir -p |
| + | /etc/e-smith/skel/user/Maildir/{.LearnAsHam/{cur,new,tmp},.LearnAsSpam/{cur,new,tmp},.LearnInWL/{cur,new,tmp}} |
| + | |
| + | # create folders for exsisting users : |
| + | |
| + | pushd /home/e-smith/files/users/; \ |
| + | for u in `ls | grep -v admin`; \ |
| + | do \ |
| + | mkdir -p $u/Maildir/.LearnAsHam/{cur,new,tmp}; \ |
| + | chown -R $u:$u $u/Maildir/.LearnAsHam/; \ |
| + | mkdir -p $u/Maildir/.LearnAsSpam/{cur,new,tmp}; \ |
| + | chown -R $u:$u $u/Maildir/.LearnAsSpam/; \ |
| + | mkdir -p $u/Maildir/.LearnInWL/{cur,new,tmp}; \ |
| + | chown -R $u:$u $u/Maildir/.LearnInWL/; \ |
| + | done; \ |
| + | popd |
| + | |
| + | Thanks to them. |
| | | |
| === Source === | | === Source === |