Skip to main content
Inspiring
February 18, 2010
Question

CF9 spooling mail VERY slowly

  • February 18, 2010
  • 5 replies
  • 5381 views

I recently moved my site from CF7 to CF9. We normally send out several bulk emails and newsletters in the 20,000 - 50,000 message range. I send these emails in chunks of around 500 messages at a time and then wait for the spool directory to have less than 50 messages before sending another chunk. This has worked great for us for several years but now with the move to CF9 the messages are leaving the spool directory very slowly. It seems to process one message every 1 to 2 seconds. A list of 40,000 emails would in the past take say 8 hours is now taking 30 + hours to go out.

Here are things that I have already looked into:

Running Symantec Endpoint Protection and have set a rule up to exclude the CF Mail directory as well as it's child directories. I had to make the same change on my old server as the AV scanning was slowing the process tremendously.

When running CF7 I was using a smtp server on the same machine, but now the smtp server is a different machine on the same network. This should not cause these issues and the smtp server is not bogged down or having issues.

Has anyone else run into these issues with cfmail on CF9? How many messages should leave the spool on each interval? I know on my CF7 server it did not send only 1 message per interval, why might this be the case on CF9? Any help or insight on this issue would be greatly appreciated as I desperately need to solve this issue.

    This topic has been closed for replies.

    5 replies

    kesharmehra
    Participant
    August 28, 2015

    Don't know if I have found a solution to this problem.

    I am having this problem with standard version of CF9. I notice that the moment you add more scheduled tasks, the mail spooling goes very slow.

    Now I have removed the tasks and shifted them to another server and its working fine.

    Hedge
    Inspiring
    May 12, 2014

    Has any solution been found to this problem? We have 3 separate CF machines and a separate mail server. Two of the machines are CF 9 and 1 is CF 8. Cf 8 had been working find sending emails in big chunks at the time then all the sudden like 3 days ago it sends one every 5 seconds. I can FTP the cfmail files from the CF8 machine to either of the CF9 spool folders and it goes out quickly. Very frustrating because we had a completely different CF8 server do this to us in the past and the only way we could fix it was to completely rebuild the box.

    Participant
    February 28, 2013

    I can confirm that my spool on CF9 was working great for a couple of months and now BAMM! slow as ever!! 1-2 messages a second. This is rediculous!! I have not done anything to the settings! @Adobe can you please fix this!! or atleast give me a good option to speed this back up?

    Thanks

    Anit_Kumar
    Community Manager
    Community Manager
    March 1, 2013

    Did you check, wether the problem lies at SMTP end or at ColdFusion? Also, please check the logs after changing the mail logging to "debug" for any errors.

    October 29, 2010

    I am experencing the same issue. Is Adobe aware of the problem?

    It seems a bit silly, that it would take 3 months to get a patch out for this critical of a problem.

    Inspiring
    October 29, 2010

    Not sure, after installing a local mail server that is relaying to my actual server the problem went away for me. I would be curious if it will ever be resolved as I did not have the issue at all when running on CF7.

    October 29, 2010

    I can confirm that it has definately NOT been resovled. All this money for CF 9 and it doesn't even perform as well as 2 versions ago.

    Inspiring
    February 19, 2010

    What's your spool interval set to?  Have you switched mail logging to "debug" and see if the logs tell you anything?

    Have you verified it's the speed CF is sending them to the SMTP server, or whether it's the SMTP server taking its time to send them on?

    --

    Adam

    Inspiring
    February 19, 2010

    Thanks for the reply Adam! I should have added all of these details from the start. My spool interval is set at 20 seconds. I also tried at the default setting of 15 seconds as well. I did set the logging to debug and the only thing that I noticed was an occasional, "Error","scheduler-0","02/18/10","14:39:02",,"Exception reading response". Looking at the exception log it appears to be a timeout waiting for a response from the smtp server. There was several of these in a row over a ten minute period in the middle of the night and then 2 more spread out over a couple of hours today.

    It appears to be an issue with the CF server to me, from observing the behavior, but I could be wrong. When I watch the spool directory on the CF9 server it just consistently sends one email at a time about every one and a half to two seconds. As it was taking over 24 hours and my newsletter still had a 1/4 of its recipients to go, I sent the remainder of emails this evening from my CF7 server and they went from the spool to the mail server in large chunks like usual. The behavior that I have watched will typically send around a messages during a spool interval if there are around 500 in the spool directory. As the total number of messages in the spool directory decreases so does the number of messages sent from a spool interval.

    The big difference in this is that the CF7 is also the mailserver so it is not having to send the mail across the network. All of my experience with using cfmail for large emails has been with using a local smtp server. Could it be that there is just this large of performance drop when using a remote smtp server? If I have to use a local smtp server I can do that but I thought it would be nice to use my existing Exchange server for sending out mail from the site.

    Inspiring
    February 19, 2010

    What is the ping time like between the two boxes?  Unless you have a network problem (which could - of course - be the case!), I can't see your performace drop off like that.

    I was gonna suggest perhaps sending an email or two manually using telnet and see if you notice anything, but I'm not sure you'd be able to get much useful info from doing that.

    What sort of server is the CF one?  If it's a Windows box (it sounds like it is), how about using the in-built SMTP server for a bit whilst you're troubleshooting?  Even if you can't actually send email from it, you could at least check the speed that emails go from the spool to the undeliverable dir, which might tell you something.

    I wonder whether there's any authentication overhead between the CF and SMTP boxes, if they're on disparate systems?

    --

    Adam