Karta.IPPools.IPAddress (Karta v1.0.0)

A sending address of a pool (Karta.IPPools.IPPool).

  • address - the public address: the one receiving servers see, with its PTR record and its place in SPF records.
  • helo_name - the name Karta gives in EHLO from this address: its PTR name, whose A or AAAA record leads back to it.
  • local_address - only behind one-to-one NAT (a cloud's public address that is not on the node's interfaces): the node's own address that is bound in its place and whose presence on a node decides which node holds it. By default the address itself.
  • warmup_plan_id, warmup_started_on - the warm-up plan (Karta.IPPools.WarmupPlan) that limits how many recipients the address is used for each day, and the day it started (Karta.IPPools.start_warmup/3); none for an address without limits.

Summary

Functions

The address bound on the node: local_address, or else address.

A new address. helo_name is kept in lower case without a final dot; the unspecified address (0.0.0.0, ::) and multicast addresses are refused, and so is a local_address of the other family.

Types

t()

@type t() :: %Karta.IPPools.IPAddress{
  __meta__: term(),
  address: term(),
  helo_name: term(),
  id: term(),
  inserted_at: term(),
  ip_pool: term(),
  ip_pool_id: term(),
  local_address: term(),
  updated_at: term(),
  warmup_plan: term(),
  warmup_plan_id: term(),
  warmup_started_on: term()
}

Functions

bind_address(ip_address)

@spec bind_address(t()) :: :inet.ip_address()

The address bound on the node: local_address, or else address.

changeset(address, attrs)

A new address. helo_name is kept in lower case without a final dot; the unspecified address (0.0.0.0, ::) and multicast addresses are refused, and so is a local_address of the other family.