Karta.IPPools.IPPool (Karta v1.0.0)

A pool of sending addresses (Karta.IPPools.IPAddress). Servers that send from it (Karta.Servers.Server.ip_pool_id) have their mail delivered from its addresses, by the node that holds them (Karta.IPPools).

name (lower-case letters, digits and hyphens, at most 40 characters, unique) names the pool's delivery queue, so it is set when the pool is created and does not change. The pool's own settings (settings_changeset/2), each nil for the default:

  • concurrency - the delivery jobs of the pool each node runs at once (default KARTA_OUTBOUND_CONCURRENCY, Karta.IPPools.Monitor).
  • destination_limits - limits per destination for the pool's mail, in place of KARTA_OUTBOUND_DESTINATION_LIMITS, in the same form (Karta.Outbound.Throttle).

Summary

Functions

A new pool: only the name.

Deleting a pool: refused while servers send from it.

Changing a pool's settings: concurrency and destination_limits.

Types

t()

@type t() :: %Karta.IPPools.IPPool{
  __meta__: term(),
  addresses: term(),
  concurrency: term(),
  destination_limits: term(),
  id: term(),
  inserted_at: term(),
  name: term(),
  servers: term(),
  updated_at: term()
}

Functions

create_changeset(pool, attrs)

A new pool: only the name.

delete_changeset(pool)

Deleting a pool: refused while servers send from it.

settings_changeset(pool, attrs)

Changing a pool's settings: concurrency and destination_limits.