Change/Importing contacts via CSV using curl

Revision as of 19:58, 28 April 2020 by David Bingham (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Importing contacts via CSV using curl

   KB 23374        Last updated on 2020-04-28  

(0 votes)


When trying to import a contact via CSV file using curl. we get the following error in the mailbox.log file:

 2016-01-22 13:31:04,844 INFO  [qtp509886383-729:https://localhost:7071/home/ [;mid=9;ip=;] UserServlet - POST: https://localhost:7071/home/
 2016-01-22 13:31:04,845 INFO  [qtp509886383-729:https://localhost:7071/home/] [;mid=9;ip=;] mailbox - UserServlet received file unknown - 195 request bytes


  • Ensure the CSV is in the following format:
    "First Name","Last Name","Display Name","Nickname","Primary Email","Secondary Email","Screen Name","Work Phone","Home Phone","Fax Number","Pager Number","Mobile Number","Home Address","Home City","Home County","Home Post Code","Home Country","Work Address","Work City","Work County","Work Post Code","Work Country","Job Title","Department","Organisation","Web Page 1","Web Page 2","Birth Month","Custom 1","Custom 2","Custom 3","Custom 4","Notes"
    "John","Doe","John Doe","John","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""
  • Import using this command:
    curl -k -u --upload-file /tmp/contact.csv https://localhost:7071/home/

Using the above command, the admin can import contacts for all users. Just change to the relevant user's address. If you're using a valid SSL certificate, -k can be omitted.

Submitted by: Shashank Shekhar Tewari
Verified Against: ZCS 8.8 Date Created: 2020-04-13
Article ID: Date Modified: 2020-04-28

Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search