Skip to content

Trials: Disable outbound mail in acquia_trials recipe (Platform Email not provisioned for trials) #40

@acquia-el-macro-libre

Description

@acquia-el-macro-libre

Summary

Platform Email is explicitly excluded [...]. However, Drupal's mail system will still attempt to send email for various events (e.g. site-install notifications, update notices) and will error when no mail transport is configured.

This causes confusing error output during provisioning and could result in failed/noisy operations during the trial lifecycle.

Required

Disable all outbound mail in the acquia_trials recipe to ensure Drupal silently discards emails rather than attempting delivery against an unconfigured transport.

Suggested approach

One of:

  1. Configure the mail system to use NullMail (discard all mail) via config in the recipe
  2. Enable and configure the reroute_email contrib module set to discard
  3. Override system.mail config to use a null/dev transport

The goal is zero mail-send attempts — no errors, no dependency on Platform Email being present.

Context

Observed during provisioning testing: after applying the acquia_trials recipe, Drupal attempted to send a "New release available" email, which failed with:

[error] cURL error 6: Could not resolve host: api.acquia.com for https://api.acquia.com/v1/trials
[error] An attempt to send an e-mail message failed ... Platform Email is not setup

Raised in #ai-on-ramp-paas on 2026-04-08.

Linked FR

[...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions