Re[2]: External mail attachments storage cleanup

2016-06-30 Thread Николай Мананков
then   cd $i     for j in * do     if [ -d $j ]; then     dovecot purge -u $j@$i     fi done    cd ..    fi   done === >Четверг, 30 июня 2016, 13:53 +03:00 от Alexander Moisseev ><mois...@mezonplus.ru>: > >On 30.06.16 12:51,

Re[2]: External mail attachments storage cleanup

2016-06-30 Thread Николай Мананков
then   cd $i     for j in * do     if [ -d $j ]; then     dovecot purge -u $j@$i     fi done    cd ..    fi   done === >Четверг, 30 июня 2016, 13:53 +03:00 от Alexander Moisseev ><mois...@mezonplus.ru>: > >On 30.06.16 1

Re[2]: External mail attachments storage cleanup

2016-06-30 Thread Николай Мананков
Thank you very much for your help! My mail users are stored in the SQL base, therefore, using the fact that the my dovecot mailbox folder names correspond to the names of mail users in the domain , I wrote a simple scrpt  and just threw it in a "/etc/cron.daily" folder. -screenshot

External mail attachments storage cleanup

2016-06-29 Thread Николай Мананков
Hi! Thanks it worked! But only when I have a specific user instead wldcard (i mean -u *@example.org). Now I think I need to write a script that searches for users in the domain , and starts each of them this command . And apparently it is necessary to add to the cron job..

External mail attachments storage cleanup

2016-06-27 Thread Николай Мананков
Hi, I have set up mdbox backend witch saving mail attachments to external files option. Dovecot store attachments to external files but never delete them. Why?