Link to home
Start Free TrialLog in
Avatar of Ryan Koolman
Ryan KoolmanFlag for Aruba

asked on

Cold fusion Mail spool folder is growing

hi

we are using ColdFusion 9 standard.
Using CFMAIL, but the spool folder will keep growing because it sends mail only every 3 seconds. and it need to send around 5000 mail every 15 minutes.

our exchange is working properly .
any recommendation to solve this issue  .
Avatar of Pravin Asar
Pravin Asar
Flag of United States of America image

Ryan - check out this post: https://stackoverflow.com/questions/10193325/coldfusion-mail-sending-capacity

I agree with the article in that CF Enterprise version should do what you desire without issue but the standard version ??? Might be too many emails per time period for it.

If you are stuck on the standard version then I don't believe you have a choice other than to throttle back the number of emails you are sending.
You could also test bypassing the spool.

Good luck ...
(No points...)

>> Might be too many emails per time period for it.

Agreed, not sure Adobe has published the specific numbers anywhere but the Standard version is definitely - and deliberately - throttled.
Avatar of Charlie Arehart
Charlie Arehart

Ryan, CF standard is not THAT throttled regarding email. Instead, I would think something is causing this, and it may be outside of CF.

For one thing, could it be an anti-virus solution that has been enabled? I've seen that cause hangups sending email. Or it could be a firewall.

Had you previously been sending so few emails that you didn't see this delay? Or could it be that this delay started recently? You can check your cf mailsent.log (if enabled) to see if it may have sent faster in the recent past.
I checked, CF standard does not support multiple SMTP servers, in Mail server config to distribute mail relays
Pravin, that is true. But it doesn't help explain the slowness that Ryan is seeing.
>> Ryan, CF standard is not THAT throttled regarding email.

@Charlie Arehart - Could you clarify what you mean by "THAT throttled"? I could be wrong, but  my take on the OP's comment "it sends mail only every 3 seconds." was that CF was sending a batch of mail every three seconds, as opposed to sending a single message every three seconds, which didn't sound unreasonable for throttling.  

Also, do you know if Adobe's published any hard numbers about email throughput for Standard vs Enterprise?  I've always been curious what the actual limits are, but have never come across anything concrete, only that Enterprise is more robust than Standard.
agx, I just meant that while CF Standard does impose SOME throttling in general, and while Enterprise adds some additional features regarding email handling, I just meant that if CF were sending only "sending emails only every 3 seconds", that would seem unexpected.

But now that you bring it up, we should clarify that there IS indeed a setting in the CF Admin Mail page (even in the OP's CF9) for the "Mail Spool Interval", which in fact DOES control how often CF should TRY to send emails out of the spool. So Ryan, what is that setting for you? The default is 15 seconds.

And I presumed that in his original question Ryan might not have changed changed that value, and as such if it was indeed "sending emails only every 3 seconds", that might instead indicate another problem, of the sort I discussed previously. I have seen other things cause a throttling of mail being sent out of CF (like antivirus tools on the CF server, or firewalls between CF and the mail server).

To your last question, no, Adobe has not documented anywhere what the mail delivery expectations should be for CF Standard. Again, since many things can influence it, that would be hard for them to quantify. But I will note that Wil Genovese of cfwebtools has blogged on the matter, and in his research of CF11 in 2017, he found that CF Std could send out only about 50 per minute, which does surprise me. I just asked him a comment to check if he would see the same in cf2018 or 2016.

https://www.coldfusionmuse.com/index.cfm/2017/11/27/ColdFusion-MailSpoolService-Performance

But again, the OP here is using CF9, so things could be different still (and I have seen some say that they saw slowness in mail processing in Standard start in CF10).

As such, I still would beg for Ryan to make sure there was not possibly some other explanation for his slowness

Indeed, Ryan, can you clarify for us how many you DO see going out at your indicated spool interval? And have you tried raising the interval, perhaps to 60 seconds, to see if perhaps it may send more at that interval? Of course, the only problem with that is that if you have apps where people would presume that as soon as they do a cfmail, the mail would go out in the default of 15 seconds, this would slow that down, but it may prove helpful, performance-wise. Seems worth testing.

In fact, Ryan, if you may find that someone on your end DID lower that mail spool interval to ONLY 3 seconds, perhaps THAT is the problem. Maybe CF is getting caught up trying to send mail out from one spool interval when suddenly it's being asked to do it again. I could see that perhaps causing a problem, especially in Standard, with its seeming default of only one mail thread.

Do let us know what you find and thing, Ryan.
Good point - I got the impression that he had set the spool to 3 seconds.

Ryan - what is your spool setting?
And have you tested how many emails are sent out at a time?
ASKER CERTIFIED SOLUTION
Avatar of Ryan Koolman
Ryan Koolman
Flag of Aruba image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial