CFMail SMTP connection limit

604 Views Asked by At

Currently using ColdFusion 8 enterprise on 32 bit linux box to send out our mail to a third party provider who do the delivery (relay). Currently we have maintain mail server connections checked in the ColdFusion admin but they'd like us to limit the connections to each one of their servers to 5 and I'm not sure if you can make ColdFusion do that, I'm pretty sure not, at least not officially...

Looking at a max of 4000 / minute being spooled but more likely in the region of 2000 / minute.

Two questions:

  1. Is it possible to "hack" ColdFusion to limit the amount of connections it creates and maintains (in an xml file within lib or SERVER-INF somewhere maybe?)
  2. How much performance loss would you expect from not maintaining the connections?

If anyone has any experience with this it'd be appreciated.

2

There are 2 best solutions below

3
On BEST ANSWER

Does "Mail Delivery Threads" on the Mail spool settings not do this?

0
On

if the above doesn't give you what you want, then you can always use the javax.mail libraries. Those libraries give you a lot of flexibility and can generally configure it how you want to. Of course, this option works best when your a java developer.