The mailbox import page allows the administrator to create one or more mailboxes by importing their definition from an XML or CSV file.

 

XML Format

<?xml version=”1.0″ encoding=”ISO-8859-1″ ?>
<mailboxes>
<mailbox>
<name>mailbox_name</name>
<type>7</type>
<password>password</password>
<givenname> firstname</givenname>
<sn>lastname</sn>
<initials>initials</initials>
<cn>nick name</cn>
<o>organisation</o>
<ou>department</ou>
<title>title</title>
<postaladdress />
<l>town</l>
<st>street</st>
<c>country</c>
<postalcode>post code</postalcode>
<telephonenumber> tel number </telephonenumber>
<facsimiletelephonenumber> fax number </facsimiletelephonenumber>
<otherpager>mobile number</otherpager>
<url> web url</url>
<homepostaladdress> home address</homepostaladdress>
<homephone>home phone</homephone>
<otherfacsimiletelephonenumber> homefax</otherfacsimiletelephonenumber>
<mobile> mobile number</mobile>
<info> notes</info>
</mailbox>
</mailboxes>

The <mailbox>…</mailbox> can be repeated multiple times with different mailbox data. Any fields that are not required can be omitted.
The minimum file for creating a single minimal mailbox would be:

<?xml version=”1.0″ encoding=”ISO-8859-1″ ?>
<mailboxes>
<mailbox>
<name>mailbox_name</name>
<type>7</type>
<password>password</password>
</mailbox>
</mailboxes>

 

CSV Format

The fields in order are:
mailbox
first name
last name
initials
nick name
company name
department,
title
street
town
state
country
postcode
telephone
fax
other fax
url
home address
homephone
homefax
mobile
None of these fields may have a comma in them.
Fields must appear in this order, missing fields should be empty.