Top Poster
#1 ramon fincken 405
#2 Site admin 3
#3 Ber|Art 2
#4 braddmark 1
#5 accentmedia 1
#6 Xarzu 1
#7 khadish 1
#8 moxxx 1
#9 nistelrock 1
#10 Justin-ServerPilot 1
[solution] convert linux mdbox compressed to maildir directories and separate mail



Rating : 3 / 5

 
Post new topic   Reply to topic    Ramonfincken.com Forum Index -> Bash, perl, python and CLI linux
Beta
Want to be notified by email when this topic gets a reply?  
View previous topic  
Author Message
ramon fincken
Site's programmer

Get a free globally recognized avatar
It's free!


Joined: 03 Aug 2007
Posts: 405
Location: A'dam/Diemen, The Netherlands

PostPosted: Fri Aug 20, 2021 1:44 pm    Post subject: [solution] convert linux mdbox compressed to maildir directories and separate mail Reply with quote

please note:
do this on a separate server! Then Imapsync the result once you are done.
Also note: not all doveadm version support this ->
Error: Couldn't load plugin /usr/lib/dovecot/doveadm/lib10_doveadm_zlib_plugin.so: Module is for different ABI version 2.1.1 (we have 2.3.ABIv15(2.3.15))


Code:
# Change the owner of the files in mdbox so doveadm has access.
chown -R mail /home/myDomain/imap/myDomain.nl/myUser/mdbox
# Convert mdbox to Maildir. Do this in a temporary folder and not straight into the existing Maildir of the user because this will result in a permission error.
doveadm -o first_valid_uid=1 -o namespace=inbox -o namespace/inbox/inbox=yes -o namespace/inbox/separator=. -o mail_location=mdbox:/home/myDomain/imap/myDomain.nl/myUser/mdbox backup -u mail maildir:/home/myDomain/imap/myDomain.nl/myUser/Maildir_test
# Now copy the converted Maildir into the existing Maildir of the user.
cp -rf /home/myDomain/imap/myDomain.nl/myUser/Maildir_test/. /home/myDomain/imap/myDomain.nl/myUser/Maildir
# Change the owner of the files in Maildir so the user has access.
chown -R myDomain:mail /home/myDomain/imap/myDomain.nl/myUser/Maildir


Source
https://forum.directadmin.com/threads/m...ion.63538/
Back to top
View user's profile Send private message Visit poster's website
Google adsense
Advertisement





PostPosted: Fri Aug 20, 2021 1:44 pm    Post subject: [solution] convert linux mdbox compressed to maildir directories and separate mail

Advertisement
Back to top
GravityForms
Advertisement





PostPosted: Fri Aug 20, 2021 1:44 pm    Post subject: [solution] convert linux mdbox compressed to maildir directories and separate mail

Advertisement
Gravity Forms Plugin for WordPress
Back to top
Post new topic   Reply to topic    Ramonfincken.com Forum Index -> Bash, perl, python and CLI linux All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
General forums
The world of freelance
Programming
Other projects
Poll
I love gifts

Yes goodies and presents! [3]
No but I love polls ! [1]

Related google ads