Skip to content

Instantly share code, notes, and snippets.

View mikepage's full-sized avatar
🌍
Online

Mike Pagé mikepage

🌍
Online
View GitHub Profile

RabbitMQ Header Overflow: "invalid AMQP data" Error

Problem Summary

Symfony Messenger consumers crash with invalid AMQP data or frame size errors when messages have been retried excessively, causing message headers to grow beyond AMQP frame size limits.

The primary culprit is Symfony's DelayStamp headers when using variable delays (exponential backoff), not the RedeliveryStamp (which is pruned) or RabbitMQ's x-death header.

Error Manifestation

# /usr/local/directadmin/custombuild/custom/dovecot/2.4/conf/mail_max_userip_connections.conf
mail_max_userip_connections = 100
remote 127.0.0.1 {
mail_max_userip_connections = 150
}
@mikepage
mikepage / imunify360-config
Last active November 26, 2025 16:04
Imunify360 optimal config for DirectAdmin with CSF uninstalled
# Admin contact
imunify360-agent config update '{"ADMIN_CONTACTS": {"emails": ["email@example.com"]}}'
# General config with CSF not installed (CSF integration false)
imunify360-agent config update '{"AUTO_WHITELIST": {"timeout": 1440}}'
imunify360-agent config update '{"CONTROL_PANEL": {"compromised_user_admin_notification": true, "generic_user_notifications": true}}'
imunify360-agent config update '{"CSF_INTEGRATION": {"catch_lfd_events": false}}'
# Malware scanning
imunify360-agent config update '{"MALWARE_SCANNING": {"detect_admin_tools": true, "notify_on_detect": true}}'
#!/bin/bash
for file in /etc/virtual/limit_*; do
usern=$(echo "$file"|cut -d '_' -f2)
# Skip limit_unknown
if [ "$usern" = "unknown" ]; then
continue
fi

Directadmin CSF uninstall

Custombuild

Set csf to no

da build set csf no
ddev mutagen reset && ddev config global --performance-mode=none && ddev config --performance-mode=none
# Delta Fiber
62.45.70.100
62.45.71.100
# Replace EMAIL
doveadm force-resync -u EMAIL -f "*"
systemctl restart dovecot

Directadmin, add default ssh keys for new users

Create the custom scripts directory (if it doesn’t exist)

mkdir -p /usr/local/directadmin/scripts/custom

Create the user_create_post.sh script or update existing script when immunify360 is active

Install the required tools:

dnf install cloud-utils-growpart

Use growpart to extend the partition to the end of the disk:

growpart /dev/vda 4