I would appear that all releases are prone to this bug - even latest nightly
Though unfortunately, there does not appear to be any easy way in installing previous versions - my attempt;
#!/bin/bash
# Update your package lists
sudo apt update && sudo apt upgrade -y
# Install necessary packages
sudo apt install curl nano git apt-transport-https ca-certificates gnupg2 software-properties-common -y
# Add the key needed for the Docker repository
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
# Add the repository needed to install Docker
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list
# Update package lists again
sudo apt update
# Install Docker
sudo apt install docker-ce docker-ce-cli -y
# Download Docker Compose
sudo curl -L "https://github.com/docker/compose/releases/download/v$(curl -Ls https://www.servercow.de/docker-compose/latest.php)/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
# Change execution permissions for Docker Compose
sudo chmod +x /usr/local/bin/docker-compose
# Change directory to /opt
cd /opt
# Download Mailcow repository
sudo git clone https://github.com/mailcow/mailcow-dockerized
# Enter the Mailcow directory
cd mailcow-dockerized
# Checkout the specific version or tag
sudo git checkout 2024-06
# Generate Mailcow configuration
sudo ./generate_config.sh <<EOF
mail.domain.com
America/NY
1
EOF
# Prevent automatic updates to the latest version
sudo sed -i 's/latest/2024-06/g' docker-compose.yml
# Download Mailcow images
sudo docker-compose pull
# Start Mailcow container
sudo docker-compose up -d
echo "Mailcow installation and setup completed."