How can I set up a self-hosted email queue system for sending 5 million emails a month?

January 22, 2026 5 answers
Asked by CuriousCoder42
I'm currently using an SMTP provider that supports a high volume of email sends, but I'm facing issues with hourly rate limits that often disconnect my sending inbox from my newsletter software. Unfortunately, they denied my request for an increase in rate limits. I'm looking for a self-hosted Mail Transfer Agent (MTA) solution that can queue emails to help manage these rate limits. I want to stick with smarthosts while managing the MTA myself and routing everything through my existing SMTP providers. We're not considering switching to any marketing software or vendors at this time.

Answers

EmailNinja42
Just a note, if you're relying heavily on your current SMTP provider, that might be the crux of your bottleneck. Your best bet could be discussing enterprise-level solutions with companies like Brevo or Klaviyo that cater to high-volume senders.
Reply to this answer
TechSavvy123
Honestly, it might just be better to work with a professional email marketing service. Running a self-hosted solution requires constant monitoring, and you might end up needing dedicated personnel just to manage deliverability. These services usually have systems in place to deal with these challenges efficiently.
Reply to this answer
EmailExpert01
Setting up a self-hosted email system for that volume sounds challenging! Many self-hosted solutions can easily end up on spam blacklists. You might want to explore distributing your email goals across multiple SMTP accounts to reduce the risk of being rate limited and blocked as spam. Just throwing all that volume through one channel is a bit risky.
Reply to this answer
PostfixFanatic
Consider using Postfix for your setup. You can configure smtp_destination_rate_delay and smtp_destination_concurrency_limit to manage your sending pace. Additionally, setting up a queue runner with proper retry rules could help in handling delivery without running into rate limits.
Reply to this answer
QueueMaster
I once built a similar system using HAProxy in front of several Postfix servers configured for round robin. You can make one Postfix instance handle immediate deliveries while a second one manages the queuing. Make sure to keep track of your volume to avoid hitting limits.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions