On Wed, Jul 30, 2014 at 11:33:31PM +0100, Andrew Beverley wrote: > One more similar question: is there much value in reusing the same > connection to send each email? Obviously that removes the expense of > creating a connection, but prevents parallel submission. Should I be > trying to do both?
Connection re-use does not prevent concurrency, you'd need a pool of connections or parallel submission processes pulling messages from the application queue. Concurrency is more important than connection re-use. Connection setup is generally cheap, unless your IP to name lookups are broken and slow for internal IPs. > I'm using Perl's Mail::Transport::SMTP module, which I would need to > patch for multiple emails per connection, but am wondering whether it is > worth doing do. Probably not important... -- Viktor.