Re[2]: External mail attachments storage cleanup
30 Jun
2016
30 Jun
'16
2:31 p.m.
Yes "dovecot purge" is certainly my mistake in the script but it really works completely analogous "doveadm purge" probably why I did not notice the difference before :)
It looks like it just launches the doveadm in this case. Adding slashes after asterisks unfortunately they also adds to the variable and the script gives an error like "doveadm(user/@example.org/): Error: User doesn't exist" Thanks for the idea , I think it will be now more correctly :
=== #!/bin/sh
cd /backup/MailRoot/dovecot/domains || exit 1
for i in * do if [ -d $i ]; then cd $i for j in * do if [ -d $j ]; then dovecot purge -u $j@$i fi done cd .. fi done
===
3207
Age (days ago)
3207
Last active (days ago)
0 comments
1 participants
participants (1)
-
Николай Мананков