Issues with sending high volume outbound emails #656
Replies: 2 comments 1 reply
-
1.2mn looks like a lot of emails. maddy currently has a fairly simple queue implementation - it keeps a small in-memory record for each queued email. The reason the started server is not listening on the submission port is that it needs to initialize the queue first, this includes reading all records into memory. This issue discusses potential improvements: #262 |
Beta Was this translation helpful? Give feedback.
-
As a guess, perhaps the issue is the max_parallelism parameter? If it is at the default value, perhaps what is happening is that the queue fills up much quicker than it empties out, so the memory usage goes up. I assume queue management operations probably also get slower as the queue size grows. |
Beta Was this translation helpful? Give feedback.
-
We have been trying out maddy as a replacement for a couple other mailservers for sending newsletters at our organization (nothing really critical). We have around 1.2mn emails that we send out every weekend to our subscribers, and can see that the server OOMs after sending a few mails, and we've had to restart the server a couple times so far. And after the restart, maddy doesn't listen on the submission
:587
port at all anymore (until the remote queue is emptied, I guess?), and there are quite a lot of emails still pending to be sent, which maddy processes slowly.Right now, maddy's the only binary running on the server with 8 cores and 64GB RAM, and we've been unable to really get it to work. While we also understand that maddy isn't really meant for production loads, is there a way we could make it work, or even optimise our configuration for such loads at all? I'm sorry if this is the wrong kind of question to ask since maddy's meant for smaller-scale deployments, but so far maddy looks like a great project and we are willing to contribute in any way possible to make it better.
Here's the current configuration:
Beta Was this translation helpful? Give feedback.
All reactions