Receiving mail

Karta receives mail on its mx listener (port 25) for the addresses that mail servers route, and passes each message on to the server's endpoints: an application over HTTP, another mail server over SMTP, or people's addresses as a forward. A server's Routes and Endpoints pages show them and let the organisation's owners and admins change them; they are managed over the Karta API too (scopes routes:read and routes:write). The Received page shows the messages the server received and what became of each delivery, and lets members send a waiting or failed one again.

Routes

A route belongs to a mail server and names an address of a verified domain of the server's organisation: only the organisation that verified a domain can route it, and a domain that loses its verification stops receiving at once. A domain's addresses may be routed by several servers of the organisation, each address by one.

Local partReceives
infoinfo@example.com (letters, digits, ., _ and -, compared in lower case)
info with plus addressing (the default)also info+anything@example.com, unless info+anything has a route of its own
*every other address of the domain

Without a matching route an address is refused (550 5.1.1), and a domain without routes is not served (550 5.1.2): Karta is never an open relay.

A route's mode says what happens to its mail:

ModeWhat happens
endpointthe message goes to the route's endpoint
acceptthe message is stored, nothing more
reportthe message is stored and read as a DMARC aggregate or failure report or a TLS report (DMARC reports)
holdthe message is stored and marked held, and delivered to the route's endpoint when it is released (Spam and virus scanning)
rejectthe address is refused when the sender names it (550 5.1.1)

There is no mode that accepts a message and bounces it later, as Postal's "Bounce" did: the sender of received mail is not known to be genuine, and a bounce to a forged sender is spam to an innocent party (backscatter). Use reject, which refuses while the sender is still connected.

A route's dmarc_reject (true by default) says whether mail that fails DMARC for a domain whose owner asks for rejection is refused; see Checking the sender.

A route also says what its mail is when the scanners call it spam, and how a scanner that cannot answer is treated (spam_mode, spam_threshold and fail_closed; see Spam and virus scanning). A route that holds mail, by its mode or by its spam mode, has an endpoint: that is where a released message is delivered.

A server has at most 1,000 routes and 100 endpoints.

DMARC reports

A domain owner who publishes rua=mailto:dmarc@example.com in its _dmarc record asks the receivers of its mail to send it DMARC aggregate reports (RFC 7489 §7.2): XML saying, for each source address, how many messages claimed to be from the domain, whether SPF and DKIM passed and what the receiver did with them. With ruf= it asks for failure reports (§7.3), one per failed message; with a TLS-RPT record (_smtp._tls, see TLS reports) it asks senders for TLS reports (RFC 8460). A route whose mode is report receives all three at one address: its message is stored as accept stores one (and the Received page shows it), and Karta reads the report in it, telling the kind by what the message holds.

  • Aggregate reports. A report is the message itself, a gzip stream, or one zip archive holding the XML. Each is bounded: a message of at most 10 MiB, a report of at most 32 MiB after unpacking, 50,000 records and 1,024 bytes per field. The XML is read with no document type declaration, no entity and nothing from outside the document, and nothing is looked up while a report is read.
  • Failure reports. An Abuse Reporting Format message (RFC 5965) whose Feedback-Type is auth-failure (RFC 6591). Karta keeps the fields the reporter gives about the failure (which check failed, the source address, the reported domain, the envelope addresses, the arrival date, the authentication results, at most 255 characters each) and the quoted message's Message-ID. It does not keep the quoted message or its headers: a failure report can quote mail a stranger wrote. A feedback report of another type is kept as failed; complaints are matched by return path, not by what arrives at a report address.
  • TLS reports. JSON, as application/tlsrpt+json, application/tlsrpt+gzip or JSON in any of the shapes above, of at most 8 MiB. A report has at most 200 policies; it is refused beyond that. Of its failure details Karta keeps the first 1,000, and the report's page says when more were sent (the reporter's counts are kept whole). A report without organization-name, report-id, date-range or policies is refused.
  • Whose report it is. A report is attributed to a verified domain of the receiving server's organisation when the domain it names is one: policy_published/domain for an aggregate report, Reported-Domain for a failure report, and the policy domain of a TLS report whose policies all name the same one. A report about any other domain is kept, unattributed. A report is data, never authority: it cannot verify a domain, change a policy, suppress an address or make Karta accept mail.
  • What goes wrong. A message that is not a report, is too large or cannot be read is kept with the reason, which the reports page shows; a report delivered twice is recorded once.
  • Where to see it. The organisation's Reports page lists the reports it received with their kind, and a report's page shows its records (aggregate), its failure fields (failure) or its policies and failure details (TLS). Reports are kept for 90 days. Summaries (a button on that page) adds them up over the last 7, 30 or 90 days: for DMARC the messages, how many passed SPF and DKIM and what receivers did with them, by domain and by reporter; for TLS the sessions that succeeded and failed, by domain and by reporter, and the failure reasons. The summaries are the reporters' own numbers, read when the page is opened, from at most the latest 20,000 reports of a kind.

Karta sends DMARC aggregate reports and TLS reports too; see Reports.

Endpoints

KindSettingsWhat Karta does
httpurl, format (karta, raw, postal, postal_hash, mailgun, sendgrid, postmark), encoding (each format's own)POSTs each message to the URL
smtphost, port (25), tls (opportunistic, encrypted, verified)relays each message to that mail server
addressaddresses (one to ten)forwards each message to them

An endpoint's kind, and an HTTP endpoint's format, are chosen when it is added. An endpoint that a route uses cannot be removed.

HTTP endpoints

Every format carries the message as it is stored: Karta's Authentication-Results: and Received: fields and the message as it arrived, byte for byte, without the Authentication-Results: fields that claimed to be Karta's (Checking the sender).

karta (the default): JSON, signed as Standard Webhooks with the endpoint's secret (whsec_..., shown once when the endpoint is added).

{"type": "message.received", "timestamp": "2026-12-20T10:00:00.000000Z",
 "data": {"id": "<delivery id>", "message_id": "<message id>",
          "server_id": "...", "route_id": "...",
          "mail_from": "ann@example.org", "rcpt_to": "info@example.com",
          "header_message_id": "<m1@example.org>", "from": "ann@example.org",
          "subject": "Hello", "size": 1234,
          "received_at": "2026-12-20T09:59:58.120000Z",
          "authentication": {"ip": "192.0.2.1",
                             "spf": {"result": "pass", "domain": "example.org"},
                             "dkim": [{"result": "pass", "domain": "example.org", "selector": "s1"}],
                             "dmarc": [{"result": "pass", "domain": "example.org"}],
                             "authserv_id": "mx.example.com"},
          "raw": "<the message, base64>"}}

authentication is what Karta found out about the sender when it received the message, as the inbound API shows it (SPF, DKIM, DMARC and ARC; Checking the sender); null for a message that was not checked. An endpoint that acts on who sent a message (for example by accepting a calendar invitation) can read it here rather than parse the message's Authentication-Results: field.

webhook-id is the delivery's id, the same on every attempt: drop requests with an id you have seen. A field Karta does not know (no Message-ID, no subject) is null.

raw: the message itself as the body (Content-Type: message/rfc822), signed the same way, with X-Karta-Mail-From, X-Karta-Rcpt-To (bytes beyond printable ASCII percent-encoded) and X-Karta-Message-Id.

postal: Postal's RawMessage, so an application written for Postal's HTTP endpoints (such as an Action Mailbox ingress for Postal) keeps its code: id, rcpt_to, mail_from, message (base64 in lines of 60 characters, as Postal writes it), base64: true and size, as JSON or form data (encoding). It is signed as Postal signs, with the key of the endpoint's organisation: X-Postal-Signature-KID, X-Postal-Signature (RSA-SHA1) and X-Postal-Signature-256, verified with the key published at the organisation's JWK set (Webhooks). One difference: id is the delivery's UUID where Postal sent a number.

postal_hash: Postal's parsed Hash, for applications that read Postal's fields rather than the message: id, rcpt_to, mail_from, token, subject, message_id, timestamp (seconds with microseconds, as a number), size, spam_status (NotChecked until Karta scans received mail), bounce (false), received_with_ssl, to, cc, from, date, in_reply_to, references, html_body, attachment_quantity, auto_submitted, reply_to (every Reply-To field, as Postal sends the list), plain_body and attachments. As JSON or form data (encoding); form data carries the attachments as attachments[0][filename], [content_type], [size] and [data], and a base64 line length of 60 characters, as Postal's encoders write them. Signed with the organisation's Postal key, as postal is. to is the last To field, as Postal sent it; rcpt_to is always this delivery's address.

mailgun: a Mailgun route's forward() post, for applications that read Mailgun's fields: subject, sender (the envelope sender), from, recipient (this delivery's address), message-headers (every field, in order, as a JSON array of [name, value]), body-plain, body-html (a list), the attachments, and timestamp, token and signature — an HMAC-SHA256 of timestamp and token under the endpoint's signing key, which is its secret (shown once when the endpoint is added). This is the key you configure in a receiver written for Mailgun, in place of Mailgun's own signing key. encoding:

  • form (the default): form data with body-plain and body-html, and the attachments as attachment-count and attachment-<n> parts of a multipart/form-data body (plain form data when there are none);
  • mime: form data with the whole message as body-mime instead of the bodies and the attachments — what an Action Mailbox Mailgun ingress requires;
  • json: one JSON document with message-headers as an array and attachments as {filename, content-type, content}, signed with X-Mailgun-Signature (over the body) and X-Mailgun-Timestamp instead of the fields.

Mailgun's stripped-text, stripped-html and stripped-signature (the body without its quoted reply) are not sent: Mailgun leaves them out when it cannot parse a reply, and Karta does not parse one.

sendgrid: SendGrid's Inbound Parse with "POST the raw, full MIME message": one multipart/form-data post with the message in email, so an Action Mailbox SendGrid ingress takes it. The fields are SendGrid's: email, headers (the header block), to, from, subject, text, html, envelope (from, and a one-element to for this delivery's address), content-type, charsets, sender_ip, spam_score (0.0), spam_report, attachments (0), attachment-info, content-ids, dkim and SPF (the authentication results in {@domain : result} form).

postmark: Postmark's inbound webhook, with the raw message included, so an Action Mailbox Postmark ingress takes it: From, FromName, FromFull, To, ToFull, Cc, CcFull, Bcc, BccFull, OriginalRecipient, ReplyTo, Subject, MessageID, Date, MailboxHash, TextBody, HtmlBody, StrippedTextReply (empty), Tag, Headers and Attachments ({Name, Content, ContentType, ContentLength, ContentID}; ContentID is empty), and RawEmail, the message as received written as UTF-8 (bytes that are not are replaced): use raw for a byte-exact copy. To and OriginalRecipient are this delivery's address, never another recipient of the message.

Karta parses the message once for all these formats (Karta.Inbound.MailFields); a message over the parser's limits fails that delivery with the reason, and nothing is posted.

A URL may carry a user name and password (https:// only), as Postal's endpoints often did: they are kept apart from the URL and encrypted, sent as Basic authentication, and never shown again (the API shows basic_auth_user). SendGrid's and Postmark's ingresses authenticate with them (actionmailbox and a password of your choice). URLs must be https:// unless the instance allows http:// (KARTA_INBOUND_ALLOW_HTTP).

An HTTP endpoint may also carry one extra header of your choosing with a secret value, for a receiver that cannot check a signature: auth_header and auth_header_value over the API. It is sent in addition to the format's signature, never instead of it, its value is shown once, and it has the same rules and limits as a webhook's (Header authentication). It does not protect the body's integrity or a request sent again.

Requests go through the NetGuard: no private or special addresses unless the operator allows them, no redirects, at most 30 seconds, messages of at most 25 MiB.

Answers. A 2xx answer delivers the message. In Karta's formats, 408, 429 and 5xx answers and requests without an answer are tried again; any other answer fails. In Postal's formats, as Postal: 5xx and no answer are tried again, anything else fails (429 too). In Mailgun's, as Mailgun: 406 fails, and anything else is tried again. In Postmark's, as Postmark: 403 fails, and anything else is tried again.

SMTP endpoints

The message is relayed with the envelope it arrived with (the original sender and recipients) to the addresses of host that the NetGuard allows: once per message, in one transaction with every recipient that routes to the endpoint, each delivered, tried again or failed by the server's answer to it. tls: opportunistic uses STARTTLS when offered; encrypted requires it; verified requires it and a certificate valid for host. The server's acceptance delivers the message, a temporary failure or no answer is tried again, a refusal fails.

Address endpoints (forwarding)

A forward is a new outgoing message of the same server to the endpoint's addresses, delivered like any other (Delivery). A message is forwarded once per endpoint, however many of its recipients route there: mail to a@ and b@ that both forward to one address arrives there once, and a message to a hundred addresses of a catch-all makes one forward, not a hundred.

  • SRS. Its envelope sender is rewritten by the Sender Rewriting Scheme into Karta's SRS domain (SRS0=HHHHHHHH=TT=example.org=ann@srs.example.net), so the receiving server checks SPF against a domain that names Karta. The address carries a tag made with the vault key and the day, valid for 21 days and across a vault key rotation. A sender that another forwarder rewrote already gets an SRS1 address that leads back to that forwarder. The null sender stays null.
  • Delivered-To. A Delivered-To: field for each recipient the forward carries (at most the listener's 100 recipients) is added in front; nothing else changes (no tracking, no List-Unsubscribe), so the original DKIM signature stays valid.
  • No notifications. The forward asks for no delivery status notifications (NOTIFY=NEVER), and keeps its SRS sender when the instance uses VERP return paths.
  • ARC seal. When the message was checked on arrival and the domain it was received at has an active RSA DKIM key, the forward carries an ARC set (RFC 8617) on top, sealed with that key (d= the domain, s= the key's selector): the next receiver learns what Karta found when the message arrived (its Authentication-Results: field, in the ARC-Authentication-Results: field), although the forward fails SPF and may fail DKIM. Receivers that trust the domain's seal can then accept mail of p=reject domains forwarded through it. The seal covers the Delivered-To: fields. Mail received before Karta checked ARC, a domain with only an Ed25519 key, and a chain that an earlier sealer marked broken (cv=fail) or that already has 50 sets are forwarded without a seal.

Bounces of forwards come back to the SRS address. Karta accepts them when the address is valid and the message is a bounce (the null sender), and refuses anything else, so nobody can relay through an SRS address. It does not pass them on to the original sender yet: that needs Karta to know that the forwarded message's sender was genuine, which it does not record for forwards yet.

The SRS domain is KARTA_SRS_DOMAIN, by default the return path domain (KARTA_RETURN_PATH_DOMAIN). Its MX records must lead to Karta and its SPF record must name Karta's sending addresses. Without one, forwards fail ("no SRS domain is configured").

Bounces of sent mail

With KARTA_RETURN_PATH_DOMAIN set, every delivery Karta sends has an envelope sender of its own in that domain (the VERP return path, Karta.Outbound.ReturnPath), so a mail server that cannot deliver a message later has somewhere to report it. The mx listener accepts those reports:

  • a return path of that domain is accepted only when its tag is one Karta made and it is no older than KARTA_BOUNCE_MAX_AGE_DAYS (default 30): 550 5.1.1 for a forged one and 550 5.2.1 for an expired one;
  • it accepts only the null sender (a delivery status notification), and one recipient per message: 550 5.7.1 for another sender and 452 4.5.3 beside another recipient.

At the end of the message Karta reads it as a delivery status notification (RFC 3464): the Action and Status of each recipient's block in the message/delivery-status part say whether the failure is permanent (5.x.x) or temporary (4.x.x). A message without such a part is read as a bounce of the kind some systems send, from the status codes in its text. The report is recorded against the recipient its return path names (Karta.Bounces.Bounce), as a delivery attempt, and with the webhook event message.bounced or message.deferred; a permanent failure also puts the address on the server's suppression list (Suppressions), unless its status is a policy rejection (5.7.x), which says nothing about the address. Nothing is stored as a message and nothing is sent in reply: a bounce of a bounce would be backscatter to someone who did not send the message.

A return path whose recipient or message is gone (or older than the age limit) is refused with 550 5.1.1, and the same report delivered twice is recorded once. A feedback-loop report (RFC 5965) that arrives at a return path is a complaint: it is read, recorded against the recipient the return path names, and the address is suppressed with complaint (Suppressions); not-spam suppresses nothing.

Checking the sender

Before it answers the end of a message, the mx listener checks who sent it, as receiving servers of the large mailbox providers do:

  • SPF (RFC 7208) for the envelope sender's domain (for a bounce, the HELO name) and for the HELO name: is the client's address one the domain names?
  • DKIM (RFC 6376, RFC 8463): every signature, RSA and Ed25519.
  • DMARC (RFC 9989) for the domain of the From: address: did SPF or DKIM pass for a domain aligned with it (the same domain, or the same organisational domain), and what does the domain's owner ask for when neither did (p=none, quarantine or reject)? The policy and the organisational domains are found by the DNS tree walk of RFC 9989, at most 8 queries per name; a record at a public suffix (by the Public Suffix List) never makes two domains under it aligned.
  • ARC (RFC 8617): the chain of ARC sets that forwarders and lists added (none, pass or fail): every set present, the newest ARC-Message-Signature: and every ARC-Seal: valid. At most 50 sets; any error, a DNS failure included, is a fail, which counts as no chain.

The checks have 20 seconds in all; DNS answers are cached. Hostile records cannot make them work much harder: SPF stops at 10 terms that look up DNS and at 2 lookups that find nothing, DMARC walks only identifiers under the author's own organisational domain, and an ARC chain costs at most two key lookups per set. When the sending server goes away before the answer, the checks stop.

What is refused. Mail that fails DMARC for a domain whose policy is reject (and not in test mode, t=y) is refused with 550 5.7.1 Email rejected per DMARC policy for <domain>, and so is mail that names more than five author domains; nothing is stored and nobody is sent a bounce (the sending server tells its own user). Nothing else is refused for its authentication:

  • not an SPF fail alone: a forwarded message fails SPF and may still pass DMARC with its DKIM signature;
  • not a quarantine policy: the message is accepted and marked, and the application decides;
  • never a check that could not finish (temperror: a DNS failure or the time limit): the message is accepted and marked, never lost.

Forwarders that change a message without rewriting its From: (some mailing lists) break DKIM, so their mail of p=reject domains fails DMARC. Two ways to receive it anyway:

  • Trusted ARC sealers (KARTA_ARC_TRUSTED_SEALERS, none by default): the operator names the domains whose ARC seals Karta takes at their word. Mail that fails DMARC is not refused when its ARC chain passes, the newest set was sealed by one of those domains (exactly that domain, d= of its ARC-Seal:), and that set's ARC-Authentication-Results: say dmarc=pass for the same From: domain. The result stays fail and says why it was accepted (reason="accepted for a trusted ARC sealer"; override: arc in the API). Results that claim Karta's own authserv-id are never taken from a message, whoever sealed them.
  • Per route, dmarc_reject set to false: its mail is then accepted and marked as failing. A message is refused only when every one of its recipients' routes says dmarc_reject.

What is recorded. The message is stored with an Authentication-Results: field (RFC 8601) on top, above Karta's Received: field:

Authentication-Results: mx.example.net; spf=pass smtp.mailfrom=example.org;
 spf=none smtp.helo=mail.example.org; dkim=pass header.d=example.org
 header.s=s1 header.a=ed25519-sha256 header.b=Bv6yFdCs; dmarc=pass
 policy.dmarc=reject header.from=example.org; arc=none

A message with an ARC chain gets arc=pass or arc=fail with the client's address (smtp.remote-ip) and, for pass, the oldest set whose message signature still verifies (header.oldest-pass, 0 when all do). The ARC-* fields that arrived with the message are kept as they are: they are the chain the next receiver checks.

Its first word is Karta's authserv-id (KARTA_AUTHSERV_ID, by default the listener's host name): an application should trust only the Authentication-Results: fields with that id. Any field with that id that a message already carried when it arrived is removed before the message is stored, so a sender cannot forge one; others' fields stay. The same results are kept with the message and shown by the API (authentication of a received message).

Spam and virus scanning

Before it answers the end of a message, the mx listener may ask two scanners about it (Karta.Scan): rspamd for spam and ClamAV for viruses. Both are off until the operator configures them (Configuration); with neither configured nothing is scanned and no field is added.

The message is sent to rspamd's HTTP API (POST /checkv2, streamed from the spool file) and streamed to clamd (INSTREAM, in chunks of 64 KiB), so neither ever holds a copy of it. The whole scan has one time budget (KARTA_SCAN_TIMEOUT, 5 seconds by default) and a size (KARTA_SCAN_MAX_SIZE): a scanner that has not answered when the budget ends is stopped, and the message is treated as unscanned.

Sent mail is not scanned, and that is intended for 1.0. Scanning guards what comes in from strangers; mail that applications send has been authorised (an API key or an SMTP login of a mail server, from the organisation's verified domains, under its limits and suppression list). Scanning it as well would add a scanner to every send and a place where a send can fail. Karta adds the tools for the sender's side instead: sending limits, the trust level, suspension and complaint and bounce handling. Scanning sent mail may come later as an option of a mail server.

What a route does with spam

Route settingDefaultWhat it does
spam_threshold6.0the score from which the message is spam for this route
spam_modemarkmark: deliver it as it is; hold: keep it held until an owner releases it; reject: refuse it while the sender is connected (550 5.7.1)
fail_closedtruea scanner that is configured but cannot answer refuses the message (451 4.7.1), so nothing arrives unscanned; false accepts it, marked

A message is refused as spam when any of its recipients' routes says reject: a refusal is the whole transaction's. Otherwise the score is compared with each route's own threshold: a route that holds gets a held delivery, and the others get their message. A virus is always refused (554 5.7.1), whatever the route says.

A route that holds (mode hold, or spam_mode hold) has an endpoint: the held deliveries are delivered there when they are released, with POST /api/v2/inbound/messages/{id}/release (the API) or on the message's page in the admin interface, by someone who may manage the server.

What is stored

The message is stored with the scan's fields on top, above the Authentication-Results: field:

X-Spam-Scanned: yes
X-Spam-Score: 6.50
X-Spam-Action: add header
X-Spam-Symbols: HFILTER_HOSTNAME_UNKNOWN(2.50) MISSING_SUBJECT(2.00)
X-Virus-Scanned: yes

A scanner that is configured but did not answer writes X-Spam-Scanned: no and X-Virus-Scanned: no instead; one that is not configured writes nothing. The symbols are rspamd's, with the scores that made the decision, highest first, as many as fit in 900 bytes of the field (a cut list ends in ...; the stored scan keeps up to 50). A symbol whose score is 0 is left out, so a message that rspamd forced to an action (the GTUBE test string) shows its score and action and no symbols. The same results are kept with the message and shown by the API (scan of a received message), in a "Scan" panel on the message's page in the admin interface, and the formats that carry them report them (Postal's spam_status, SendGrid's spam_score and spam_report).

Karta acts on rspamd's score, never on its action: a route's spam_threshold is compared with the score, and rspamd's own reject or greylist action only appears in X-Spam-Action. rspamd needs to be asked with the real client address (Ip), the HELO, the envelope sender and the first recipient, which is what Karta sends; its DNS-based checks (blocklists, SPF, DKIM) make a message take a few seconds when a name does not answer, so set KARTA_SCAN_TIMEOUT to 10 to 15 seconds rather than the 5 of the default.

A message the scan refuses is stored nowhere. Karta writes one line to its log for each: scan refused a message (550 5.7.1) from 203.0.113.9, envelope sender ann@example.org: spam 15.00 (reject), virus clean (never a recipient), and a warning when a message is accepted although a scanner did not answer (... was accepted unscanned: spam unavailable (econnrefused), ...).

At the SMTP level

The mx listener answers every RCPT from the routes in memory, never from the database: they are loaded when a node starts, every minute, and on every node as soon as a route changes. With the database down, a node that has loaded them keeps receiving (the message itself is then refused with a temporary failure, as it cannot be stored); a node that started without the database answers 451 4.3.2 until it can load them.

ReplyWhen
550 5.1.2 Recipient domain not served hereno route for the domain
550 5.1.1 Recipient address rejectedno route for the address, or a route that rejects; an invalid SRS address or return path; a return path whose recipient or message is gone
550 5.2.1 Return path has expireda VERP return path older than KARTA_BOUNCE_MAX_AGE_DAYS
550 5.7.1 This address accepts only delivery status notificationsan SRS or VERP address with a sender that is not null
452 4.5.3 Too many recipients, send the others in another messagea recipient of another server than the first recipient's (a message goes to one server; the sender sends it again for the others), or a return path beside another recipient (one bounce names one recipient)
451 4.3.2 System not accepting network messagesthe node has not loaded the routes yet
554 5.4.6 Too many hops, the message is looping50 or more Received: fields
554 5.4.6 Mail forwarding loop for <address>a Delivered-To: field naming a recipient: the message has been there before (a forward names every recipient it carries)
550 5.7.1 Email rejected per DMARC policy for <domain>the message fails DMARC for a domain whose policy is reject, and every recipient's route has dmarc_reject
550 5.7.1 Too many author domainsthe From: fields name more than five domains, and every recipient's route has dmarc_reject
550 5.7.1 Message rejected as spamthe scanners scored the message above a route's threshold, and that route's spam_mode is reject
554 5.7.1 Message contains a virus (<name>)the virus scanner found a virus
451 4.7.1 Scanning the message failed, try again latera scanner that is configured could not answer, and a recipient's route is fail_closed
451 4.3.0 Temporary failure, try again latera route changed between RCPT and the end of the message, storing failed, or a bounce could not be recorded
552 5.3.4 Message size exceeds fixed maximum message sizea bounce larger than 5 MiB

Deliveries

Each recipient of a received message gets a delivery (the recipients relayed or forwarded together share the outcome of their one transaction or forward): pending while it goes to an endpoint, delivered, failed, accepted (mode accept) or held (mode hold, or spam a route holds). A delivery that fails temporarily is tried again after 1, 5, 15 and 30 minutes, 1, 2, 4, 8, 12 and 16 hours and a day (12 attempts over about three days), then fails. Nobody is sent a bounce when a delivery fails: everyone in the organisation sees it on the server's Received page and through the API (GET /api/v2/inbound/messages/{id}), with the last answer.

Received messages, their deliveries and forwards are kept as long as the server keeps messages (Retention).

Not yet

  • DSN parameters passed on with forwards: the mx listener does not offer DSN.
  • Bounces of forwards passed on to the original sender.
  • Webhook events for received mail.