Karta. Servers. Server
(Karta v1.0.0)
A mail server: one sending/receiving unit inside an organisation, with its own credentials, routes and message store.
track_opens, track_clicks and list_unsubscribe turn on open and
click tracking and the one-click List-Unsubscribe header for its
outgoing mail (Karta.Tracking); all are off by default.
A server with suspended_at set is suspended (Karta.Servers.suspend/2):
its credentials are refused and its queued mail waits until it is
resumed. suspension_reason says why, for the organisation.
ip_pool_id is the IP pool its mail is delivered from (Karta.IPPools;
set only by Karta.IPPools.assign_server/2); without one it goes from
the node's own address.
tracking_host_id is the tracking host its mail uses when the author's
domain has none of its own (Karta.Tracking.Hosts; set only by
Karta.Tracking.Hosts.assign_server/2).
suppression_soft_bounce_threshold, suppression_soft_bounce_window_days
and the four suppression_*_days say when an address goes onto the
server's suppression list by itself and how long an entry of each reason
lasts (Karta.Suppressions.Policy); off and never by default.
mode is always :live: holding the mail of a server in development
mode, as Postal does, needs held messages, which Karta does not have
yet. The field is kept for that, and is not changed by input.
Summary
Functions
Only these fields can come from user input; everything else is set by the context.
Suspends the server now (or keeps the time it was suspended), for reason.
Types
@type t() :: %Karta.Servers.Server{ __meta__: term(), id: term(), inserted_at: term(), ip_pool: term(), ip_pool_id: term(), kept_storage_cap_mb: term(), list_unsubscribe: term(), mode: term(), name: term(), organisation: term(), organisation_id: term(), retention_days: term(), retention_size_mb: term(), send_limit_per_minute: term(), slug: term(), suppression_complaint_days: term(), suppression_hard_bounce_days: term(), suppression_manual_days: term(), suppression_soft_bounce_threshold: term(), suppression_soft_bounce_window_days: term(), suppression_unsubscribe_days: term(), suspended_at: term(), suspension_reason: term(), token: term(), track_clicks: term(), track_opens: term(), tracking_host: term(), tracking_host_id: term(), updated_at: term() }