Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 952 Bytes

README.md

File metadata and controls

44 lines (34 loc) · 952 Bytes

mi-core-mailapi

Please refer to https://github.com/joyent/mibe for use of this repo.

mdata variables

  • api_redis_key: base64 encoded spipe key
  • import_urls: list of urls that provide a json dump of mail accounts and aliases. The format is described below.

Services

  • 80/tcp: http api
  • 443/tcp: https api
  • 63790/tcp: spipe encrypted redis master

Legacy JSON import format

Example:

{
	"example.com": {
		"account": [
			{
				"name": "alice",
				"password": "$1$9hW1N3SC$J6vfo890zc50GC1jYHP211"
			},
			{
				"name": "bob",
				"password": "$1$0MhHZVnG$d6rHD1KFLNOJ9EFdMKrB91"
			}
		],
		"alias": [
			{
				"to": "alice@example.com,bob@example.com",
				"name": "office"
			}
		]
	}
}

This creates two email accounts for alice@example.com and bob@example.com. It also creates an email alias office@example.com that forwards mail to both mailboxes.