Skip to main content
Participant
May 9, 2008
Question

Mail "Maintain Connection" Setting Inverted

  • May 9, 2008
  • 2 replies
  • 1495 views
While investigating a problem with mail not getting handed off to our mail server by ColdFusion Enterprise 8.0.1, I discovered that the "Maintain connection to mail server" setting has the reverse effect of it's stated role, if the debug logging is accurate.

When I turned on debugging logging for the email with ColdFusion administrator Mail "Maintain connection to mail server" setting turned ON, I saw log entries as follows every 15 seconds :
"Debug","scheduler-1","05/09/08","11:57:30",,"Closing mail server connections."
"Debug","scheduler-1","05/09/08","11:57:30",,"Next mail spool run in 15 seconds."
When I removed the "Maintain connection" checkmark, the "Closing mail server connections" log entries stopped and only the "Next mail spool run" entries continued.

I am submitting a bug report on this, but thought others might like to know. It's too soon for me to tell whether this will take care of my original problem. (I was seeing emails moving to the Undelivr folder with errors as follows in my exception log:
"Error","scheduler-0","05/08/08","16:01:14",,"[EOF]"
com.sun.mail.smtp.SMTPSendFailedException: [EOF] )
    This topic has been closed for replies.

    2 replies

    July 29, 2008
    Thanks. I'll keep it deselected.
    steve1122Author
    Participant
    May 12, 2008
    Follow-up note: Removing the checkmark does seem to have resolved my initial problem. I am no longer seeing [EOF] errors (which were causing ColdFusion to move .cfmail files into the Undelivr folder).

    Also, a bit more information about my configuration: I'm spooling emails to disk, and I'm running 64-bit ColdFusion on Windows 2003 Server SP2.
    July 29, 2008
    Hi Steve,

    Do you still have "Maintain connection to mail server" deselected? I have the same problem with EOF errors and was curious if you found any other solutions?

    Thanks
    Jeff
    steve1122Author
    Participant
    July 29, 2008
    Yes, I still have it deselected. And it still seems that ColdFusion's handling of the setting is reversed from what the administrator interface states. I checked the detailed logging again after I installed Cumulative Hotfix 1, and the logging still indicates that the connection is maintained when the setting is deselected and the connection is repeatedly reset when the setting is selected. I have not had any problems since deselecting "Maintain connection".

    I would certainly recommend deselecting "Maintain connection to mail server".

    Steve