Bounce patterns
Description
Bounce patterns are templates of responses from email providers (ISPs) about delivery problems. The platform analyzes these responses and classifies them to determine the reasons for delivery failures and correctly handle unsuccessful sends. The templates are applied both to direct sending via AKMTA and to sending through Altcraft Cloud SMTP.
Types of negative ISP responses
Negative response templates are divided into three main categories:
-
Hard bounce (HB) is a template for responses meaning that the recipient’s mailbox does not exist. Usually these are server-class errors (5xx), but the type is determined by a template match, not by the response code. Sending to such addresses is blocked to avoid damaging the domain and sender IP reputation. The customer’s email subscription is marked as Hard bounced, preventing further delivery attempts.
-
Soft bounce (SB) is usually client-class errors (4xx) indicating temporary unavailability of the mailbox. In such cases, retry or temporary blocking scenarios can be applied.
-
Bounce (B) — this type includes other delivery errors that are not Hard or Soft bounce. Typically, retrying delivery is not advisable, and the message is marked as Undelivered.
Applying the templates
The templates are applied to direct sending via AKMTA and to bounces received from the Altcraft Cloud SMTP webhook: the relay passes the response text of the receiving server, and the platform classifies it with the same templates.
Matching order
The response text of the receiving server is matched against the templates as follows:
- The ISP is determined by the recipient domain using the domain bindings from the ISPs section. If the domain is not bound to any ISP record, the domain itself is used as the ISP and only common templates apply.
- The templates of the selected ISP are checked first, then the common ones (All ISPs).
- Within each group, the types take priority in this order: Hard bounce, then Soft bounce, then Bounce.
The matched template determines the bounce type, and the response code (4xx or 5xx) does not affect the result:
| Template type | Direct sending via AKMTA | Altcraft Cloud SMTP |
|---|---|---|
| Hard bounce | Hard bounce and undelivery: the profile status changes to Hard bounced, the address is added to the global suppression list | Hard bounce and undelivery: the profile status changes to Hard bounced, the address is added to the global suppression list |
| Soft bounce | Soft bounce and undelivery | Undelivery only |
| Bounce | Undelivery | Undelivery only |
| No match | Undelivery with the undefined type | Undelivery with the undefined type |
A template takes precedence over the response code. A 4xx response whose text matches a Hard bounce template produces a Hard bounce. A 5xx response that matches no template produces undelivery only — no Hard bounce is registered and the profile is not blocked. This way provider reputation rejections, such as 550 spam message rejected from Mail.ru, do not move the recipient to Hard bounced.
Updating the templates
When sending through Altcraft Cloud SMTP, changes to templates and ISP domain bindings are applied without restarting services: the webhook handler reloads the settings within LISTENER_REFRESH_PERIOD (30 seconds by default). If the settings are temporarily unavailable, the last successfully loaded set of templates is used. If there are no templates at all or none has been loaded yet, the classification of webhook bounces degrades — such responses are registered as undeliveries with the undefined type.
Creating, Editing, and Deleting
To manage ISP response templates, in the main menu select Settings — MTA — Bounce patterns.

The opened list displays existing templates of negative ISP server responses. For most responses, entries already exist in the default AKMTA configuration. To edit an existing entry, click the quick action button on the right side of the list or the entry identifier on the left. To create a new entry, click + Create.
Only custom ISP response templates can be deleted.

Each response template is configured with:
Name — the template name.
Type — the type of server response (Hard bounce, Soft bounce, Bounce).
ISP — the email provider. You can select an ISP record or the All ISPs option to match responses from any provider.
Pattern — the pattern used to match the response.
Message — the delivery error message text.
