Script para vaciado de correos en alojamiento plesk

cd /var/qmail/mailnames/domain.com/
dirlist=$(find $1 -mindepth 1 -maxdepth 1 -type d)

for dir in $dirlist
do
(
cd $dir/Maildir
rm -rf *
)
done