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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFMAIL Error log

Status
Not open for further replies.

Sarky78

Programmer
Oct 19, 2000
878
GB
We host a couple of web sites that have got a news subscription service. This week things have started to go a little weird. When a client sends an email out (one with 500+ subscribers, another with < 100), I get an email for both (I am in the subscriber list) but the error log gets most of the rest, with an error '550 Relaying is prohibited'. We have had these services running for a while now without a glitch. The mailserver is running exchange, and is on another machine. It it possible that there is a maximum number of emails that CFMAIL can send at a time ??

Does anyone know what the 550 error means, and a possible reason for/solution to the problem ?
 
Here's the article fro Allaire Support dealing with Errors when using CFMAIL:
-------------------------------
Mail Is Not Being Sent From The ColdFusion Server

When using the CFMAIL tag to send email from the ColdFusion Server, the mail is never sent or received.

Here are a few things to check if ColdFusion server is not sending mail properly:

Go into ColdFusion Administrator and into the Mail section. Make sure you can verify your connection to your mail server. If you cannot, you will need to resolve this before proceeding any further. A common problem when verifying or attempting to use a mail server is getting a &quot;550 - Relaying is prohibited&quot; error. Most mail servers come with relaying disabled and you will need to contact your mail server's vendor for information on configuring the mail server to allow the ColdFusion server to send mail through it.

There is currently a maximum of 40 total (To, CC and BCC combined) recipients per email. This limitation should be removed in future versions of ColdFusion server.
The account that ColdFusion Server runs under (Windows NT default is System, Solaris default is nobody) must to have full rights (read, write, execute) to the \coldfusiondir\mail directory and all directories under it as this is where mail messages are spooled.

Look in the /cfusion/mail/log/errors.log for any error messages which might indicate any errors communicating with the mail server. If you do find errors in here, you should research them with your mail server vendor.

Set up an email client (Eudora, Outlook Express, Netscape Mail, etc.) on the ColdFusion Server and try sending an email message from that server using the same mail server name that is specified in your ColdFusion Administrator or in your CFMAIL tag.

Make sure your ColdFusion Server can resolve the fully-qualified domain name (e.g., server.domain.com) of your SMTP server (or whatever you entered into the Mail section of ColdFusion Administrator) by logging into the ColdFusion Server and pinging the mail server by it's name (e.g., ping smtp.domain.com). An even better (more fault-tolerant) approach is to put the SMTP server's IP address in the Mail section of ColdFusion Administrator instead of the fully qualified domain name. This way, even if there is a problem with DNS resolution, your ColdFusion Server will always be able to communicate with your mail server.
 
Cheers for the quick response, CF can see the amil server, it is verified without any errors, we are using a CFLOOP with the CFMAIL tag inside the loop, so it is only sending one at a time (so that dismisses the 40 records at a time), and we are using an IP address to identify the server, so that is the DNS out the way. Our email server is still up and running, as I have just sent an email outside the company, and that was fine.

Any other ideas ?
 
The error &quot;550 - Relaying is prohibited&quot; is not generated by CF, but by Exchange.

------------------------
From Microsoft Exchange

Message relay occurs when a client or remote SMTP server connects to the Internet Mail Service and submits messages for non-local recipients. If the Internet Mail Service does not restrict message relay, it may be used to relay UCE messages.

If your server configuration prevents the client from relaying mail, SMTP RCPT (receipt) commands that specify a non-local recipient are refused, and the following message is displayed:

550 relaying prohibited.

------------------------

This might explain why you get the email, but outside recipients do not because it is disabled on the mail server. CF still can connect to the Mail server, but the Mail Server won't Relay messages to outside recipients.
 
sounds fair enough, will get network admin to have a look at exchange then. Don't know why/how that got knocked out. Cheers for the help !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top