Mautic 7.0.0: How to Re-Enable AMQP Queue Support?

Hello,

With the release of Mautic 7.0.0, support for AMQP queues appears to have been removed, reportedly due to the complexity they introduce for future upgrades.

https://github.com/mautic/mautic/pull/14883

We are developing messaging and integration capabilities using AMQP queues to connect Mautic with other systems in our infrastructure, so this functionality is very important for our use case. During earlier discussions, we had also expressed that we preferred for AMQP support not to be removed, as it plays a key role in our messaging, automation, and integration workflow strategy.

https://forum.mautic.org/t/keep-rabbitmq-support-in-mautic-7/36551

Could the developers please help clarify a few points:

1. What specific upgrade complexities did AMQP support create in Mautic 7?

2. Are these challenges related to Symfony Messenger changes, dependency maintenance, or overall architectural direction?

3. Is there an officially recommended way to re-enable or re-integrate AMQP queue support in Mautic 7?

4. If it is no longer officially supported, could you please advise:

* Which components or integrations were removed

* What would be required to patch or extend Mautic to add AMQP back
* Any risks or upgrade considerations we should be aware of

Any guidance, documentation, or architectural context would be greatly appreciated, as this is important for teams running distributed, queue-based environments.

Thank you in advance for your help.

Please refer to the Mautic 7 documentation for AMQP queue support:

Hello matbcvo,

Thanks for your reply regarding point 3.

The documentation link refers to Symfony 5.4 and provides very little detail about the actual process. Since Mautic 7.x uses Symfony 7.x, the current docs are not very helpful in this case.

If reinstalling the feature is meant to be straightforward, could you clarify why it was removed unilaterally from the default M7 build after being part of Mautic for such a long time? At the moment, I’m struggling to see the reasoning behind that decision.

I would really appreciate it if the developers could address all of the points raised, so I can better understand the rationale for removing this important connectivity feature, as well as receive clear, step-by-step instructions on how to reinstall it. That would help me greatly in getting it working again in M7.

Thanks.

Hello Developers,

Since the developers removed AMQP support and presumably followed a defined set of steps to do so, it would be helpful if they could kindly provide the corresponding instructions required to add it back again. I would appreciate there help in this matter.

Thanks

AMQP wasn’t removed from Symfony Messenger in Mautic 7; it’s just no longer bundled or configured by default. Mautic now ships only with the sync:// transport.

You can re-enable RabbitMQ by restoring the dependency and configuring the transport.

1. Install required packages

If using the native AMQP transport:

composer require symfony/amqp-messenger

Make sure the PHP AMQP extension is installed:

php -m | grep amqp

If not installed, add it via PECL:

pecl install amqp

Alternatively, use the php-amqplib-based transport if you don’t want the extension.


2. Configure the transport

Add a Messenger transport config (similar to 6.x):

$container->loadFromExtension('framework', [
    'messenger' => [
        'routing' => [
            \Mautic\MessengerBundle\Message\PageHitNotification::class
                => \Mautic\MessengerBundle\MauticMessengerTransports::HIT,
        ],
        'transports' => [
            \Mautic\MessengerBundle\MauticMessengerTransports::HIT => [
                'dsn' => '%env(MAUTIC_MESSENGER_TRANSPORT_DSN)%',
            ],
        ],
    ],
]);

And define:

MAUTIC_MESSENGER_TRANSPORT_DSN=amqp://user:pass@rabbitmq:5672/%2f

3. Run the consumer

bin/console messenger:consume hit

Note: I haven’t tested this on Mautic 7 yet, but given how MessengerBundle is structured, this should be sufficient to get AMQP running again.

AMQP isn’t gone- it just needs to be explicitly installed and configured.

1 Like

Hello rahul.shinde,

Thanks for taking the time to put together such clear step-by-step instructions on how to re-add AMQP support back into Mautic 7 — it’s really appreciated.

I haven’t migrated yet, but I’ll definitely be giving this a go when I move to M7 shortly.

Just to add a bit of context for anyone coming across this thread: in the Mautic 7 release announcement, under “What we removed”, the exact wording is: AMQP queue support

The release notes also specifically mention:
“Removing support for AMQP queues by @escopecz in #14883.”

So AMQP support was included in the base of Mautic 6, and its removal in Mautic 7 was intentional by design. As things stand, M7 now only ships with the sync transport, as you mentioned.

One thought/suggestion: would it make sense to have separate Composer scripts (or optional packages) to add and remove support for AMQP and potentially other transports as extra steps? That kind of modular approach could be really helpful for the community and make it much easier for people who still need those integrations.

Thanks again for documenting the process — it’s really helpful for those of us who still rely on AMQP.