Skip to main content


In small setups or for testing purposes, you can use the in-memory directory type to define users and groups directly in the configuration file. Please note that you will have to restart the server every time you make changes to the accounts and groups included in your configuration file.

To define an in-memory directory, use the type = "memory" attribute in the directory section of the configuration file. For example:

type = "memory"


Users are defined under the directory.<id>.users sections of the configuration file using the following attributes:

  • name: Specifies the username of the account.
  • description: Provides a description or full name for the user.
  • secret: Sets the password for the user account. Passwords can be stored hashed or in plain text (not recommended).
  • email: A list of email addresses associated with the user. The first address in the list is considered the primary address.
  • email-list: Optionally, a list of mailing list addresses that the user is a part of.
  • member-of: A list of groups that the user is a member of.
  • quota: Optionally, a disk quota for the user, in bytes.

For example:

name = "admin"
description = "Superuser"
secret = "changeme"
email = ["[email protected]"]
member-of = ["superusers"]

name = "jane"
description = "Jane Doe"
secret = "abcde"
email = ["[email protected]", "[email protected]"]
email-list = ["[email protected]"]
member-of = ["sales", "support"]

name = "bill"
description = "Bill Foobar"
secret = "$2y$05$bvIG6Nmid91Mu9RcmmWZfO5HJIMCT8riNW0hEp8f6/FuA2/mHZFpe"
quota = 50000000
email = ["[email protected]", "[email protected]"]
email-list = ["[email protected]"]


Groups are defined under the directory.<id>.groups sections of the configuration file using the following attributes:

  • name: Specifies the name of the group.
  • description: Provides a description for the group.

For example:

name = "sales"
description = "Sales Team"

name = "support"
description = "Support Team"

Custom lookup lists

Lookup lists can be defined under the directory.<name>.lookup.<lookup_name> section. These lookup lists are used mainly in the SMTP server from rules or Sieve filters.

For example:

blocked_ips = ["", ""]
domains = ["", ""]