IIS and SMTP - 4006 error

This is Interesting: Free IT Magazines  
Home > Archive > IIS and SMTP > November 2005 > 4006 error





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author 4006 error
pau

2005-09-19, 7:50 am

Hi!
I'm getting the 4006 error, from an IIS 6, when I try to send a message to
certain domain which mail server is the known qmail server. The Event
viewer, says to me something like: "Message delivery to the host
'XXX.XXX.XXX.XXX' failed while delivering to the remote domain 'domain.com'
for the following reason: The connection was dropped by the remote host".
This is the 4006 error.

I'm building a message using a php page, who calls to the php mail()
function and attempts to send an email to the localhost SMTP server (the IIS
6 in a 2003 server), who, when reciving, resend the email to the appropiate
address. The domains which I've detected that ar

As I've read here: http://www.dylanbeattie.net/docs/ii...e_linefeed.html
a possible solution is to add a \r before all the \n from our code!! but
I've been trying to do it and it does'nt work for me. Perhaps this solution
is valid only for ASP pages??

anybody has the same problem and can help me?

thanks a lot.

pau.


Steve Manatt

2005-11-08, 6:28 pm

Try adding the IP address of the web server in the Relay Restrictions of its
SMTP server. In other words,

Say the IIS Server that sends the e-mail has an IP address of
192.168.168.25.

1. Go to the IIS Admin MMC ~ the SMTP Server properties ~ Access
~ Relay
2. Choose "Only the list below" and add 19.168.168.25 to the list
3. Leave bottom checkbox checked that talks about authenticated users
4. Hit OK and mail should immediately be delivered

Hope this helps, this just worked for me and I have been battling the same
scenario you described for the past 6 days.

"pau" wrote:

> Hi!
> I'm getting the 4006 error, from an IIS 6, when I try to send a message to
> certain domain which mail server is the known qmail server. The Event
> viewer, says to me something like: "Message delivery to the host
> 'XXX.XXX.XXX.XXX' failed while delivering to the remote domain 'domain.com'
> for the following reason: The connection was dropped by the remote host".
> This is the 4006 error.
>
> I'm building a message using a php page, who calls to the php mail()
> function and attempts to send an email to the localhost SMTP server (the IIS
> 6 in a 2003 server), who, when reciving, resend the email to the appropiate
> address. The domains which I've detected that ar
>
> As I've read here: http://www.dylanbeattie.net/docs/ii...e_linefeed.html
> a possible solution is to add a \r before all the \n from our code!! but
> I've been trying to do it and it does'nt work for me. Perhaps this solution
> is valid only for ASP pages??
>
> anybody has the same problem and can help me?
>
> thanks a lot.
>
> pau.
>
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com