How can I force postfix to send out mails sequentially and not simultaneously? It should open only one SMTP connection at a time.
It should only affect outgoing SMTP connections. Incoming connections can still be handled simultaneously.
Why?
My VPS Provider (contabo.de) had the very funny Idea to tie the hands of spammers by limiting the number of simultaneous SMTP connections to 1. I'm not sending SPAM, but a script is sending important order mails to 3 recipients at the same time once a day. This is then blocked with Connection refused in postfix and the mails are deferred. Sometimes it takes over two hours to send the mails out, because at every try the simultaneous connections are blocked.
StealExpand awesome comment from HBruijn to not-so-awesome answerSnippet from postfix docs:
One reason why postfix can deliver simultaneously is because it has
smtp
delivery services ready in charge. So if you want to limit it, reduce the value onmaxproc
column onsmtp
service in postfix so the only onesmtp
delivery service works in the same time.