Domains import

A sample of the YAML Domains import format is provided below.

domains:
- aliases:
  - name: !!python/unicode 'mojo.com'
    status: true
  - name: !!python/unicode 'mojo2.com'
    status: true
  authservers:
  - address: !!python/unicode '192.168.1.150'
    enabled: true
    ldapsettings: []
    port: 993
    protocol: 2
    radiussettings: []
    split_address: true
    user_map_template: !!python/unicode ''
  - address: !!python/unicode '192.168.1.150'
    enabled: true
    ldapsettings:
    - basedn: !!python/unicode 'cn=users,dc=topdog-software,dc=com'
      binddn: !!python/unicode 'uid=andrew,cn=users,dc=topdog-software,dc=com'
      bindpw: !!python/unicode ''
      emailattribute: !!python/unicode 'mail'
      emailsearch_scope: !!python/unicode 'subtree'
      emailsearchfilter: !!python/unicode 'mail=%u@topdog-software,dc=com'
      nameattribute: !!python/unicode 'uid'
      search_scope: !!python/unicode 'subtree'
      searchfilter: !!python/unicode ''
      usesearch: false
      usetls: true
    port: 389
    protocol: 5
    radiussettings: []
    split_address: true
    user_map_template: !!python/unicode ''
  delivery_mode: 1
  dkimkeys: []
  high_score: 0.0
  highspam_actions: 2
  language: !!python/unicode 'en'
  ldap_callout: false
  low_score: 0.0
  message_size: !!python/unicode '0'
  name: !!python/unicode 'home.topdog-software.com'
  report_every: 3
  servers:
  - address: !!python/unicode 'build2.home.topdog-software.com'
    enabled: true
    port: 25
    protocol: 1
  signatures: []
  site_url: !!python/unicode 'https://standalone.home.topdog-software.com'
  smtp_callout: true
  spam_actions: 2
  spam_checks: true
  status: true
  timezone: !!python/unicode 'Africa/Johannesburg'
  users:
  - account_type: 3
    active: true
    addresses:
    - address: !!python/unicode 'angel+*@home.topdog-software.com'
      enabled: true
      username: !!python/unicode 'angel@home.topdog-software.com'
    created_on: 2016-04-29 16:49:33.315026
    email: !!python/unicode 'angel@home.topdog-software.com'
    firstname: null
    high_score: 0.0
    last_login: 2016-04-29 17:18:45.828066
    lastname: null
    lists: []
    local: false
    low_score: 0.0
    password1: !!python/unicode ''
    password2: !!python/unicode ''
    send_report: true
    signatures: []
    spam_checks: true
    timezone: !!python/unicode 'Africa/Johannesburg'
    username: !!python/unicode 'angel@home.topdog-software.com'
  virus_actions: 2
  virus_checks: true
  virus_checks_at_smtp: true
- aliases: []
  authservers:
  - address: !!python/unicode 'mail.tdss.co.za'
    enabled: true
    ldapsettings: []
    port: 110
    protocol: 1
    radiussettings: []
    split_address: true
    user_map_template: !!python/unicode ''
  delivery_mode: 1
  dkimkeys: []
  high_score: 0.0
  highspam_actions: 2
  language: !!python/unicode 'en'
  ldap_callout: false
  low_score: 0.0
  message_size: !!python/unicode '0'
  name: !!python/unicode 'baruwa.com'
  report_every: 3
  servers:
  - address: !!python/unicode '192.168.1.150'
    enabled: true
    port: 25
    protocol: 1
  signatures: []
  site_url: !!python/unicode 'https://standalone.home.topdog-software.com'
  smtp_callout: true
  spam_actions: 2
  spam_checks: true
  status: true
  timezone: !!python/unicode 'Africa/Abidjan'
  users: []
  virus_actions: 2
  virus_checks: false
  virus_checks_at_smtp: true