AlertPowerMT        AlertHostsDown        syncLMS-One-MikroTik-DHCP        syncLMS-One-MikroTik-SimpleQueues       

debian

 

poradniki

 

Migracja z courier na dovecot

   13-03-2015 20:00:00       Odwiedziny: 524

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"


Copyright seszu © 30.10.2010-2020.