Email Queue Management in Virtualmin: Retry Strategies to Prevent Message Loss
Learn how to manage email queues in Virtualmin and set up automatic retry strategies to avoid message loss. Step-by-step guide for reliable email delivery.
Why Email Queue Management is Important
If you run your own server, outgoing emails may not be deliverable immediately—for example due to temporary network issues or overloaded recipient servers. Without good queue management, these messages are lost. Virtualmin provides built-in tools to prevent this.
Step 1: Access the Email Queue
Log in to Virtualmin and navigate to Services → Email Queue. Here you see all pending messages. You can view, delete, or force delivery of individual messages.
Step 2: Configure Automatic Retry Strategies
Virtualmin uses Postfix as the mail server. The retry strategy is controlled via Postfix settings. Go to Services → Postfix Configuration and adjust the following parameters:
- maximal_queue_lifetime – How long a message stays in the queue (default: 5 days). Set e.g.
7d. - minimal_backoff_time – Minimum wait time before a retry (default: 300s). Change to
600s. - maximal_backoff_time – Maximum wait time (default: 4000s). Increase to
8000s. - queue_run_delay – Interval for queue runs (default: 1000s). Set
600s.
After changes, click Save and restart Postfix.
Step 3: Monitor the Queue
Regularly monitor the queue size. In Virtualmin, under Reports → Server Statistics, you can see the number of pending emails. If there are unusually many, check the cause.
Additional Tips to Prevent Message Loss
- Set up bounce notifications to be informed about failed deliveries.
- Use SPF, DKIM, and DMARC to improve deliverability.
- Consider a failover with a secondary mail server.
With these strategies, you ensure that no important message is lost. For reliable hosting of your email services, we offer powerful web hosting packages and VPS servers with Virtualmin pre-installed.