---
title: "[Zimbra] Instruction to import list user into Mail Server"
description: You are deploying an email service for your enterprise and there are plenty of users need to be added to the mail server. This article will show you how to import list user into Mail Server through an XML file.…
url: "https://vhost.vn/tai-lieu/email-server-quan-tri/zimbra-instruction-to-import-list-user-into-mail-server/"
updated: "2025-01-09"
category: "Email Server / Email Server - Cấp độ quản trị"
---

# [Zimbra] Instruction to import list user into Mail Server

You are deploying an email service for your enterprise and there are plenty of users need to be added to the mail server.

This article will show you how to import list user into Mail Server through an XML file.

**Step 1: Create an XML file**

```
<code><ZCSImport>
<Options>
<importMails>1</importMails>
<importContacts>1</importContacts>
<importTasks>1</importTasks>
<importCalendar>1</importCalendar>
<importDeletedItems>1</importDeletedItems>
<importJunk>1</importJunk>
<ignorePreviouslyImported>0</ignorePreviouslyImported>
<InvalidSSLOk>1</InvalidSSLOk>
</Options>
<ZimbraServer>
<serverName>mail.domain</serverName>
<port>7071</port>
<adminUserName>admin</adminUserName>
<password>password admin</password>
<adminSSLEnabled>0</adminSSLEnabled>
<domain>domain</domain>
</ZimbraServer>
<ImportUsers>
<User>
<sn>Dai</sn>
<givenName>The</givenName>
<displayName>The Dai</displayName>
<RemoteEmailAddress>thedai@domain</RemoteEmailAddress>
<password>thedai123</password>
<zimbraPasswordMustChange>TRUE</zimbraPasswordMustChange>
</User><User>
<!– Repeat the script above to add another user –>
</User>
</ImportUsers>
</ZCSImport>
```

Use notepad to save this script as a file ending with **.xml**extension.

Parameters you need to note:

```
<serverName> :Replace with your mail.domain
<adminSSLEnabled> : Replace with 0 if there is SSL Certificate
<port>: your mail server port. By default: 7071
<domain>: replace with your domain
<sn>: Username
<givenName>:  Last name
<displayName>: Full name
<RemoteEmailAddress>: User account
<password>: Password
<zimbraPasswordMustChange>: Prompt user to change password on first login
```

**Step 2: Login to Mail Server with admin account and import**

Follow steps below:

[![](https://vhost.vn/wp-content/uploads/2025/01/image-64.png)](https://vhost.vn/wp-content/uploads/2025/01/image-64.png)

![](https://howto.nsupport.asia/wp-content/uploads/2021/04/image-1-1024x306.png)

![zimbra](https://howto.nsupport.asia/wp-content/uploads/2021/04/image-2-1024x285.png)

![](https://howto.nsupport.asia/wp-content/uploads/2021/04/image-3.png)

Review your options then press **Next.**

![](https://howto.nsupport.asia/wp-content/uploads/2021/04/image-4.png)

Choose **Import from an XML file **then **Next.**

![](https://howto.nsupport.asia/wp-content/uploads/2021/07/BMD7O0TGPl.png)

Browse the XML file you create at step 1.

![](https://howto.nsupport.asia/wp-content/uploads/2021/04/image-4.png)

Choose **Import from an XML file **then **Next.**

![](https://howto.nsupport.asia/wp-content/uploads/2021/07/BMD7O0TGPl.png)

Browse the XML file you create at step 1.

![](https://howto.nsupport.asia/wp-content/uploads/2021/04/image-6.png)

![](https://howto.nsupport.asia/wp-content/uploads/2021/04/image-7.png)

You have successfully imported the list into the mail server.

Press **F5** to refresh the browser to check if users are added.

![](https://howto.nsupport.asia/wp-content/uploads/2021/04/image-8-1024x284.png)

Good luck.
