Communication Channels Workflow
General Structure
When a campaign is launched, the campaign binary is executed. It:
- processes the template and business logic (blocklists, limits, subscriptions, filters, etc.);
- builds the message structure for delivery;
- sends the prepared messages to RabbitMQ queues;
- records errors in the campaign log.
Each message then goes to the corresponding processing service depending on the channel.
Email
Several types of senders are supported for the email channel: AKMTA (the Altcraft sender) and external senders. The workflow may vary depending on the sender used.

Sending Process
AKMTA
The campaign sends messages to the following queues:
akmta_<sender_id>— standard queue;akmta_prior_<sender_id>— priority queue.
Messages from the queues are processed by the akmtad service. Its behavior depends on the queue type:
- For a non-priority queue, it writes messages to disk, periodically reads them, and sends them according to the sending strategy configured for the specific
sender_id; - For a priority queue, it makes an attempt to send immediately; if it fails, it writes the message to disk.
The sending flow looks like this:
campaign → RMQ Queue (akmta / akmta_prior) → akmtad → SMTP
Other Senders
External senders receive messages via an HTTP request from the campaign binary. If the platform cannot send a message, a campaign error is logged. Note that such an error is not considered a “Non-Delivery” and is not included in the non-delivery report.
Status Registration
AKMTA
Delivery statuses are registered immediately using:
- the SMTP server response code;
- bounce patterns (analysis of bounce templates).
Other Senders
Tracking service of the platform handles event status.
Retry Logic
AKMTA
- Retry rules are defined separately in the Admin Panel. Details are available in the administrator documentation;
- Based on the SMTP code, hard bounce or soft bounce statuses are registered;
- Retry logic differs for soft and hard bounce cases.
Other Senders
External senders do not support retry attempts. If an HTTP request fails, the platform does nothing further.
SMS

Sending Process
The campaign sends messages to a single queue — sms_sender. The procintegras service then sends messages from the queue. Some gateways support batch sending.
Status Registration
Status registration works in one of the following ways:
- The gateway sends a message status via a webhook. The status is processed by
procsmslisten; - The platform polls the gateway. The status is processed by
procsmsev.
The lifetime of an SMS message is defined by the configuration parameter SMS_DEFAULT_TTL (default — 1 day). The platform registers a non-delivery if no status is received within this time.