Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ColdFusion and mail authentication

Status
Not open for further replies.

snix1

Programmer
Joined
Dec 12, 2000
Messages
107
Location
US
Hi! I'm running CF 4.5. We have routing turned on for our Exchange server to handle the mail (cfmail). Recently, our mail server has been used by others outside the company to generate spam emails. So we turn routing off and then cfmail won't work. I hope this makes sense. Does ColdFusion MX authenticate? Is there another way around this problem?

Thanks!
 
The way we handle this is to enable email relaying (on the Exchange Server) only for mail originating from the IP address of the ColdFusion server.
 
Thanks, but we already did that. However, email are still coming in and filling up the input queues. The mail is rejected, but this takes up all the server's time and no mail gets through...does this make sense? Is there any product I can buy to filter these out before they hit the queue?
 
Can you try blocking the IP addresses of the spammers at the firewall? You do have a firewall, right? ;o)
 
Hi pcorreia: Thanks for your response. We have a firewall and haven't tried that yet...but we found a ColdFusion Custom tag that may help. It's this one:

<CFX_AuthSMTP TO=&quot;user@domain.com&quot;
FROM=&quot;testuser@domain.com&quot;
SUBJECT=&quot;Test email from the CFX_AuthSMTP tag by Jesse Druehl&quot;
MESSAGE=&quot;It Works, and it relays because it has an authenticated session...&quot;
HOST=&quot;mailserver.domain.com&quot;
USER=&quot;fred&quot;
PASSWORD=&quot;fredspassword&quot;

Allows authentication and you turn relaying off. Will let you know how it works.
 
Sorry to dig this up, but anyone know where yto find this tag CFX_AuthSMTP ? I am in the same jam and need something quick.

Thank you.
Val
 
Sorry I found it, but I do still have a problem as it seems not to support HTML meassages, anyone know of a tag that supports Exchange server login and HTML?

Thanks agian.
 
Val,

I've downloaded the tag and I'll take a look at it over the weekend to see if there's any way to make it work with HTML mail. There's a real need in the ColdFusion community for a single tag that accomplishes all the advanced functionality available in SMTP, like HTML and multipart mail, SMTP Auth, custom headers, etc.

I'll let you know how I make out.
 
I looked at the source code for CFX_AuthSMTP and it should be no big deal to modify it to allow HTML mail. Unfortunately, there is no license information included with the tag and I am having trouble contacting the author to get his permission to modify and redistribute his code. I'm no crack Java programmer, so without using his code as a base it will take me much longer to complete this new tag.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top