find "/var/mail/virtual/" -name courierimapsubscribed -print0 | \
xargs -0r rename -v 's/courierimapsubscribed/subscriptions/'
find "/var/mail/virtual/" -name subscriptions -print0 | xargs -0r sed -i 's/INBOX\.//'
find "/var/mail/virtual/" -name courierimapuiddb -print0 | \
xargs -0r rename -v 's/courierimapuiddb/dovecot-uidlist/'
find "/var/mail/virtual/" -name courierimaphieracl -print0 | xargs -0r rm -vrf
find "/var/mail/virtual/" -name courierimapacl -print0 | xargs -0r rm -vf
find "/var/mail/virtual/" -name courierimapkeywords -print0 | xargs -0r rm -vrf
# zmiana właściciela katalogów/plików
chown -R vmail "/var/mail/virtual" && chgrp -R mail "/var/mail/virtual"