What this solution does
Email quarantine module for a test copy of 1C-Bitrix: Site Management and the boxed Bitrix24 version. Before running a check, the administrator confirms the environment and enables interception of supported standard email sends. Instead of forwarding the message, the module saves a local record containing only minimal technical details.
Capabilities:
- Observation mode is available during installation, with separate administrator confirmation required to enable quarantine.
- The test profile is bound to an explicit marker, domain, and physical directory of the system copy.
- The local receiver logs the timestamp, a protected recipient fingerprint, body size, number of attachments, and the interception result.
- A log tracks profile activation and restoration events, including the administrator ID.
- Synthetic local verification is performed without invoking the mail transport.
Message content, subjects, open addresses, filenames, and attachment contents are not stored in the receiver. Up to 500 local records are retained, with the last 100 displayed in the interface. The profile transition log is preserved until data is explicitly deleted during module uninstallation.
The module intercepts the standard main:OnBeforeMailSend event. The quarantine applies to all sites in a shared installation that use this mail chain. Direct PHP mail() calls, third-party SMTP libraries, HTTP requests, webhooks, payment gateways, and other integrations require separate isolation. Before restoring a copy with real data, configure network restrictions and test services at the environment level.
By default, the installation activates observation mode. To enable quarantine, an operator manually creates a test environment marker, after which an administrator confirms the action. Disabling quarantine restores standard mail delivery. The platform queue is managed independently: re-running emails from the original queue after removing the interception may result in actual delivery.
Requirements: PHP 8.2 or higher, D7 ORM, and the standard main mail chain. Administrative and ORM checks were tested on MySQL and PostgreSQL. Live external sends were not performed during acceptance testing.
For “Test contour”, General iT can perform integration, configuration and a final check after installation.