1. Knowledge Base
  2. MDaemon® Email Server

How to import accounts from a csv file to MDaemon's account database

This is a simple method for importing and automatically generating mail accounts in MDaemon. MDaemon will read a text file and generate new mail accounts using as little as just the first and last names of the user.

If you are careful to setup your account template strings properly you can generate unique accounts using only the first and last names, but you can also include many other options for specific user settings if you want to override the new account defaults.

MDaemon requires a specific format when importing the csv file. All fields must be separated by commas. Each line of the comma delimited text file must contain only a single user's entry. The first line must be a base line giving the names and sequence of the fields in subsequent lines. A sample file would look something like this:

'Mailbox', 'FullName', 'MailDir', 'AllowAccess'
'arvel', 'Arvel Hathcock', 'C:\Mail\Arvel\', Y
'michael', 'Michael Mason', 'C:\Mail\Michael\', N

Please see the MDaemon manual under Accounts Menu | Importing Accounts | Importing Accounts From a Text File for all details on formatting your csv file and values that can be used in the csv file. The manual can be accessed by clicking here

To import your csv file:

  1. Select Accounts
  2. Select Importing
  3. Select Import accounts from a comma delimited text file...mdaemon accounts import menu
  4. Browse to the csv file
  5. Select Open
    mdaemon import selection window
  6. Select Yes to the promptmdaemon import fields
  7. Select a domain to import the accounts into
  8. Select OK
    mdaemon import selection domain

    MDaemon will import the accounts from the csv file
    For a detailed log of the import processing please review the TXIMPORT.LOG within the \MDaemon\APP directory
  9. Select OK
    mdaemon import selection window ok