How to prevent Coldfusion 6 CFMAIL from being blocked from Hotmail, Yahoo, etc

Posted on 2009-04-20
Medium Priority
Last Modified: 2013-12-20
Basically the issue is that we cannot send domain using CFMAIL to any emails other than the domain we are sending it from. For example, if our domain is http://www.foo.com, we can send emails using CFMAIL fine to bill@foo.com and bob@foo.com but not to bill@yahoo.com and bob@hotmail.com. It just doesn't get sent.

I've been reviewing information such as http://www.carehart.org/blog/client/index.cfm/2008/4/8/cfmail_messageid_solution_for_CF6and7, but to no avail. We do have SpamAssassin enabled, would that be blocking outgoing mail?

In the code sample, the cfscript and the cfmailparam were added as of recent after doing some research, it did not work before either.
sysObj = CreateObject("java", "java.lang.System");
sysObj.setProperty("mail.host", "mail.mailserver.com");
<cfmail to="Joe Schmoe <joe@yahoo.com>" from="Bill Bob <bill@foo.com>"  subject="This is a test email">
<cfmailparam name="Reply-To" value="bill@foo.com">
this is a test email

Open in new window

Question by:427
LVL 27

Accepted Solution

azadisaryev earned 2000 total points
ID: 24184799
if you can't send mail using cfmail to ANY other domain, not just yahoo.com or hotmail.com, but ANY domain other your domain, then the problem is in your mail server config - it is probably configured NOT to relay messages. talk to your mail sysadmin about it or check docs for your mail server on how to enable relaying.

another thing to check is: some mail servers require full authentication before you can relay messages through it. in this case you should specify valid SERVER, USERNAME and PASSWORD attributes in your <cfmail> tags.

other than that, all i can say is that it IS a problem most of the time to send emails to Yahoo and Hotmail accounts, as well as AOL (now that's THE PITA!). i have pretty much resorted to showing all users registering on my sites a warning like "If you are signing up with a Hotmail or Yahoo email address to sign up - we can't guarantee you will receive a confirmation email from us due to overly strict spam prevention policies on those webmail services. You can try adding our email address xxx@xxxx.xxx to your address book and/or whitelist, but even then we can't guarantee you will always receive our email communications. If you have access to another email account, you are probably better off using that one to sign up...".  

Yahoo is the second biggest PITA after AOL... You just never know when their system might decide to NOT allow an email sent by cfmail through... And it's useless to contact them about it - I have tried for a long time to get ANY info out of Yahoo about what can be done to guarantee mail delivery to @yahoo.com accounts, but all they say is "make sure your email conforms to email standards"...

Making sure the address cfmail is sent FROM in @yahoo.com account's address book seems to help more than anything else...


Author Closing Comment

ID: 31572234
The username/password did the trick. A 7 month issue solved!

Featured Post

What Security Threats Are We Predicting for 2018?

Cryptocurrency, IoT botnets, MFA, and more! Hackers are already planning their next big attacks for 2018. Learn what you might face, and how to defend against it with our 2018 security predictions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Operating system developers such as Microsoft (https://www.microsoft.com) and Apple have made incredible strides in virus protection over the past decade. Operating systems come packaged with built in defensive tools such as virus protection and a f…
Phishing emails are a popular malware delivery vehicle for attack.  While there are many ways for an attacker to increase the chances of success for their phishing emails, one of the most effective methods involves spoofing the message to appear to …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month14 days, 17 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question