tracker issue : CF-3376568

select a category, or use search below
(searches all categories and all time range)
Title:

CFMAIL sent to smtp server supposedly is returned to CF Server but never arrives in .../Undelivr/ and is lost.

| View in Tracker

Status/Resolution/Reason: To Fix//

Reporter/Name(from Bugbase): Eugene Colucci / Eugene Colucci (ecolucci)

Created: 12/03/2012

Components: Net Protocols, MAIL

Versions: 9.0.1

Failure Type:

Found In Build/Fixed In Build: 9.0.1 /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Win 2008 Server R2 64 bit

Vote Count: 2

Problem Description:
On the machine in question, we use 32-bit ColdFusion 9.0.1 on Windows Server 2008 R2 with IIS 7.5.  The machine has two IP addresses but only one IP address is bound to our IIS Web site, and we have only one Web site on this machine.

Recently, we were instructed to use a different SMTP server to relay our ColdFusion-generated E-mail.  Before we could access the new SMTP server, our central IT staff needed to provide our ColdFusion server permission so we had to provide our central IT staff the IP address of our ColdFusion server.  I know that CF Server is tied to IIS so I assumed I needed to provide our central IT staff only the IP address that is bound to our Web site.

After a day or two of switching to the new SMTP server, our central IT staff informed us that they saw error messages in their logs suggesting that mail being sent to their new SMTP server was rejected and should have been returned to us.  Furthermore, we were informed that the mail was coming from our machine using our machine's second IP address.  Upon receiving that news, I checked all our CF logs and found in mailsent.log that all the messages supposedly returned to us were "successfully sent using" the new SMTP server.  I also checked the .../Spool/ and .../Undelivr/ directories and found them empty.  We resolved part of our problem by providing our central IT staff with our machine's second IP address so that new outgoing mail from our CF server now gets relayed properly through our new SMTP server.

However, this incident leaves me with two questions--at least one of which might be a ColdFusion bug.  First, how is it that the ColdFusion server uses both IP addresses assigned to our machine when only one IP address is bound to IIS?  Second, what happened to the mail that our central IT staff states was rejected by their SMTP server but was nowhere to be found on our ColdFusion server and now appears to be lost despite our CF server logs' stating that the mail "was successfully sent"?

Eugene


Steps to Reproduce:  See above.

Actual Result:  See above.

Expected Result:  Please answer my two questions above in detail and notify me if in fact there is at least one ColdFusion bug.

Any Workarounds:  See above.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3376568

External Customer Info:
External Company:  
External Customer Name: ecolucci
External Customer Email:  
External Test Config: My Hardware and Environment details:

VMware virtual machine with 4 CPU and 4 GB RAM

Attachments:

Comments:

My department telephone number is 1-716-645-3210.
Comment by External U.
17049 | December 03, 2012 01:29:48 PM GMT
I've encountered this many times in CF 6, 7, 8 & 9 and haven't been able to find anything online regarding why it occurs. My mail server is configured to accept all mail from originating within our IP class and occasionally it won't have any record of being connected to from ColdFusion, but CF will have a false log entry of successfully sending the message. As a result, we've started creating backup logs of messages being generated in case ColdFusion fails to connect via SMTP. Recently happened on CF9,0,1,274733 installed on Win64 w/IIS7.5. I wish I could recreate this error on demand, but it seems to happen unexpectedly under various conditions.
Comment by External U.
17050 | December 03, 2012 07:07:38 PM GMT
Regarding sending email from a different IP address that's bound to the server, is there any way to specify this? I've had similar issues where a server reboot/restart caused ColdFusion to start using a different IP address when performing CFHTTP requests. I can't tell you how frustrating this is to troubleshoot when working with secure third-party APIs that whitelist your IP address. ColdFusion occasionally chooses a random IP when connecting. For all outbound connections (including CFMail), it'd be extremely beneficial if there were some sort of optional parameter to manually assign the HOST IP. Is this possible?
Comment by External U.
17051 | December 03, 2012 07:16:49 PM GMT
please correct very important.
Vote by External U.
17053 | March 27, 2013 02:20:57 PM GMT
I have seen this in ColdFusion 10 as well.
Comment by External U.
17052 | June 04, 2013 09:35:54 PM GMT
This bug completely disables smtp connection in our case because the wrong sender address is blocked by the firewall on its way back during connection setup.
Vote by External U.
17054 | August 14, 2013 03:13:09 PM GMT