On 14/07/2020 10:52 gnd <g...@itchybit.org> wrote:
Hello list,
we are experimenting with using Dovecot as part of a simplified mailstack with SQL for a internal messaging / notification system for ourcustomers. Sometimes we need to send a message to thousands of customersat once and we do it by having aliases resolve to 10k and 20k+ mailaccounts.
When we send such a message the server load (obviously) is very high fora few minutes (in case of an alias containing 10k addresses its around6-7 minutes for a 2 core machine with load around 20-30).
Are there any optimizations or ways how to design the system around thisproblem ? Eg. is there a way how to deliver messages more slowly, andspread the load over longer time ?
The stack is very simple with Postfix receiving the messages and Dovecotacting as a LMTP and IMAP server. Mailboxes are in the Maildir format ondisk. Customers get the messages on login, a PHP script connects to themail account associated with their ID via IMAP and sends unseen messagesin the form of a JSON.
Best regards,
gnd/
Can you provide output of doveconf -n?
Also, verbose_proctitle=yes gives more insight what the processes are doing.
Aki