Author: Marco Herrn Date: To: exim-users Subject: [exim] exim opening multiple connections to database
Hi,
I have nearly all my configuration parameters for exim in a postgresql database. That is for example, the local domains, email adresses and some tables for spamcheck with spamassassin. Also spamassassin itself stores its configuration, auto-whitelist and bayesdb in a database.
Now I tried to test my spamfilter with 150 spammails. When doing this postgresql rejects a lot of connections because of its maximum connection limit. This connection limit is set to 100 concurrent connections, so I am quite sure that this shouldn't happen. spamassassin opens no more than 5 processes and therefore should not open more than five connections to the database.
How does exim do this? I bounced all 150 spam messages all at once to one address. Does exim process these mails in parallel? The postgresql log for 1 mail looks like this: