Zimbra

From Michael's Information Zone
Revision as of 15:12, 5 May 2021 by Michael.mast (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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