Your software
- My Mautic version is:
5.2.5
- My PHP version is:
8.1
(frommautic/mautic:latest
Docker image) - My Database type and version is:
MySQL 5.7
(running in a Docker container)
Your problem
My problem is:
Campaign emails are not being sent even though everything appears to be configured correctly. Here’s the full situation:
- Contacts are correctly assigned to the segment via dynamic filter (
Email is not empty
) - Segment shows the contacts in the UI and is verified in the database (
lead_lists_leads
) - Campaign is active, published, and wired to the segment with a “Send Email” action
- Email is published, set as a marketing email, and sends successfully via the “Send Test Email” button
- Cron jobs are being executed manually using the following CLI commands inside the container:
makefile
CopyEdit
mautic:segments:update
mautic:campaigns:rebuild
mautic:campaigns:trigger
mautic:messages:send
- These run without error, but result in
Messages sent: 0
These errors are showing in the log:
Please advise
No errors appear in the Mautic logs or output. Everything completes successfully, but messages are not queued or delivered.
Steps I have tried to fix the problem:
- Confirmed contacts are correctly listed in the segment using SQL:
sql
CopyEdit
SELECT * FROM lead_lists_leads WHERE leadlist_id = 1;
- Re-saved contacts and segment filter
- Cleared Mautic cache (
cache:clear
) - Cloned the campaign and email to create a fresh flow
- Ensured email is not scheduled for future publish/unpublish dates
- Verified the
campaigns:rebuild
andcampaigns:trigger
CLI output shows correct execution of campaign events - Confirmed segment contact count is
3
via SQL and UI - Verified that test emails send successfully through Azure SMTP (ACS)
Additional context:
- Mautic is running inside Docker (
mautic/mautic:latest
) - Emails are configured using Azure Communication Services SMTP
- CLI is being run from the Docker host using
docker exec