Click here to Skip to main content
16,022,536 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi there everybody

I have a dedicated server and can configure IIS

locally when i test to send mail everything's ok but on server it gives "sending mail failure"

please help me what's the problem and how can i solve that

thanks in advance
Posted
Comments
Manfred Rudolf Bihy 1-Jan-11 17:11pm    
Update: See my comment on my answer.

1 solution

Open a command prompt on your server and type somthing like this:
telnet name.of.your.mailserver 25

If the connection fails you can't reach your mail server from the server your application runs on. Likewise typing this:
nslookup name.of.your.mailserver

will tell you if your server can resolve the mailservers name to an IP address. Try these commands and tell me in a comment to my answer what results you received. You shouldn't tell me any IP addresses though just comment if nslookup command was able to resolve the name.

Best Regards,

Manfred
 
Share this answer
 
Comments
M0$!98 1-Jan-11 16:36pm    
thanks for your answer.couldn't open connection for telnet
and can't find server name for nslookup was the result.
now what can i do!?
Sergey Alexandrovich Kryukov 1-Jan-11 16:49pm    
This is a good answer (5 from me).
M0$!98148, now you have some diagnostics. Everything else is the configuration of your mail server. As far as I understand you, the server is under your control, is that right? If so, this is your responsibility to set up the mail server properly :-)
Manfred Rudolf Bihy 1-Jan-11 16:56pm    
@M0$!98: As SAKryukov said in his comment above, now it is time you ask yourself (and someone who knows your network) some questions:
- Why can I reach name.of.my.mailserver from my local machine but not from my server?
- Why can't my server resolve the name of my mailserver to an IP address?
- Is my server in a DMZ?
- Is my server protected by a firewall?
- Where exactly is my mailserver at in relation to my server?
etc. etc.

There are many possiblities that can cause that kind of behavior and it would be hard to nearly impossible solving that here in a discussion.
Sergey Alexandrovich Kryukov 1-Jan-11 18:33pm    
@M0$!98, I advice you to accept this answer first and get to your server.
Any further questions will not fit in the scope of this Web page. If you have more specific question on the server installation down the road, pose a brand new question and provide enough information.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900