What happens is that email sending gets stuck at "Connecting" (when
using Thunderbird) for a long time before delivery is made. Comparing
exim -bd -d output on the problem server and a "normal" server, the
problem seems to be this:
The problematic exim install is doing dns lookup for every single
recipient and does not continue until it finishes. At 5~15 sec per
recipient, this becomes an enormous lag.
On the normal install, exim starts looking up recipients but does not
hang on to the connection and Thunderbird reports mail sent even while
Exim is still doing dns lookups.
I've tried turning hosts_lookup off as well as set
rfc1413_query_timeout = 0s but neither has any effect.
I can't figure out what else could be causing the difference. Could an
ACL be causing this? Or is there a setting to force exim not to hold
up the sending while it is looking up recipients?