Kantoor.Mailboxes.Alias (Kantoor v1.0.0)

An extra address in a domain that delivers into an existing mailbox (info@example.com into calvin@example.com).

A nil mailbox_id denotes a forwarding-only alias: its verified destinations live in Kantoor.Forwarding. Such an alias grants no sending identity.

An alias address belongs to its domain. Its mailbox may be in another verified domain using the same organisation credential (Kantoor.Aliases). Its local part must be one Karta can route on its own (letters, digits, ., _ and -; no +, which Karta reads as a plus tag). The target mailbox is fixed at creation; changing it means deleting the alias and making a new one, so an identity that uses the address can never start sending from a mailbox its owner may not open.

Summary

Functions

True when local_part can have a route of its own in Karta.

Types

t()

@type t() :: %Kantoor.Mailboxes.Alias{
  __meta__: term(),
  address: term(),
  domain: term(),
  domain_id: term(),
  id: term(),
  inserted_at: term(),
  mailbox: term(),
  mailbox_id: term(),
  note: term(),
  updated_at: term()
}

Functions

routeable_local_part?(local_part)

@spec routeable_local_part?(String.t()) :: boolean()

True when local_part can have a route of its own in Karta.