Difference between revisions of "Zimbra"

From Michael's Information Zone
Jump to navigation Jump to search
(Created page with "==Import Emails using CLI== <pre> su zimbra cd <directory of emails to be imported> zmprov prov> selectMailbox user@domain.com mailbox: user@domain.com...")
 
 
Line 1: Line 1:
 
==Import Emails using CLI==
 
==Import Emails using CLI==
 +
<ref>https://community.spiceworks.com/how_to/1640-zimbra-direct-import-of-msg-files-into-an-account</ref>
 +
<ref>http://docs.zimbra.com/docs/os/6.0.10/administration_guide/A_app-command-line.13.12.html</ref>
 
<pre>
 
<pre>
 
su zimbra
 
su zimbra
Line 13: Line 15:
  
 
for i in *; do zmmailbox -z -m user@domain.com addMessage /recovery ${i}; done
 
for i in *; do zmmailbox -z -m user@domain.com addMessage /recovery ${i}; done
<pre>
+
</pre>

Latest revision as of 15:12, 5 May 2021

Import Emails using CLI

[1] [2]

su zimbra
cd <directory of emails to be imported>
zmprov
prov> selectMailbox user@domain.com                        
mailbox: user@domain.com, size: 63.75 GB, messages: 277352, unread: 48640
authenticated as user@domain.com
mbox user@domain.com> createFolder /recovery
394951
mbox user@domain.com> exit
prov> exit

for i in *; do zmmailbox -z -m user@domain.com addMessage /recovery ${i}; done