Solved

Web Server can't send mail to external e-mail.

Posted on 2004-04-21
14
1,246 Views
Last Modified: 2010-04-20
I used asp script  'objMail = Server.CreateObject("CDO.Message")' to send mails.
It works when I send the mail to an internal e-mail account, but not external emails (eg.yahoo, hotmail) ? Any idea how to slove it. Below are the spec.

Web server running IIS6.0 without Exchange installed.
There is another server running Exchange.

How do i get the sendmail working when sending to external e-mail? What are the settings to be configured on my Web Server? IIS? Virtual SMTP?
0
Comment
Question by:zarzar
  • 5
  • 5
  • 3
  • +1
14 Comments
 
LVL 50

Expert Comment

by:Ryan Chong
ID: 10890790
0
 
LVL 2

Expert Comment

by:jagoodie
ID: 10893380
Which server are you specifying in teh objMail settings? (local or exchange?
Regardless, you need to configure your SMTP server to allow relaying.  Let me know which SMTP server you are using and i can tell you how to configure it.
0
 

Author Comment

by:zarzar
ID: 10895448
I'm not using any cdo.dll to communicate with the Exchange server. Currently all the mails are relaying on the local Web Server's Virtual STMP.

This is my mail code:
----------------------------
Set objMail = Server.CreateObject("CDO.Message")
objMail.To = frmMailTo
objMail.From = frmMailFrom
objMail.Subject = frmSubject
objMail.HTMLBody = frmMessage
objMail.AddAttachment (Server.MapPath(frmPath))
objMail.Send
-----------------------------
So how do I configure it? And also the Web server is running under a Cisco PIX Firewall.

This is the rejected mail that is send back to objMail.From e-mail
-----------------------------
Your message did not reach some or all of the intended recipients.

      Subject: My Subject
      Sent:      23/Apr/2004 9:27 AM

The following recipient(s) could not be reached:

      me@yahoo.com on 23/Apr/2004 9:27 AM
            The e-mail system was unable to deliver the message, but did not report a specific reason.  Check the address and try again.  If it still fails, contact your system administrator.
            <mydomain.net #5.0.0>
-------------------------------
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
LVL 2

Expert Comment

by:jagoodie
ID: 10900908
try to send me an email to jay@topdogwebsolutions.com and lets see if that goes through.
0
 
LVL 23

Expert Comment

by:rama_krishna580
ID: 10911439
Hi,

you must check the permission for SMTP enabled in Web server running IIS6.0 or not, since it has lot of security restriction u need to check and enable the 25 port also, if its not opened..and check the other options also..then try..u will get...

best of luck..

R.K
0
 

Author Comment

by:zarzar
ID: 10917584
Nope jagoodie, can't get through.

-----------------
Your message did not reach some or all of the intended recipients.

      Subject: Send this file...
      Sent:      26/Apr/2004 7:57 PM

The following recipient(s) could not be reached:

      jay@topdogwebsolutions.com on 26/Apr/2004 7:57 PM
            The e-mail system was unable to deliver the message, but did not report a specific reason.  Check the address and try again.  If it still fails, contact your system administrator.
            <mydomain.net #5.0.0>
------------------
0
 

Author Comment

by:zarzar
ID: 10917602
can't seems to get it working still..... only thing that i haven't try is relaying... How do i set that, lets say my exchange server ip is 111.222.33.444

Any idea....

Can i just relay the mail to my exchange server with the current code, or do i need to write some dll to link/create new mail object stuff???

0
 
LVL 2

Expert Comment

by:jagoodie
ID: 10918735
I recomend getting away from CDO, and moving towards and SMTP product... I have used http://www.aspemail.com/ for years.  Pretty easy to set up, and works great.
You will need to configure an SMTP server to relay FROM your web server (put your web server's IP address in the list of IP's that are allowed).

Let me know if this works/doesn't work for you..
0
 
LVL 23

Expert Comment

by:rama_krishna580
ID: 10923941
HI,

I would suggest doing an NSLookup from your Exchange Server and get the MX
records for that domain and then do a Telnet to that Server and this should
give you the specific reason you cannot send to them.

203204 XFOR: How to Obtain Internet Mail Exchanger Records with the
http://support.microsoft.com/?id=203204

153119 XFOR: Telnet to Port 25 to Test SMTP Communication
http://support.microsoft.com/?id=153119

Hope this helps,

R.K
0
 
LVL 23

Expert Comment

by:rama_krishna580
ID: 10923951
0
 

Author Comment

by:zarzar
ID: 10926721
rama_krishna580,
 
I tried to Telnet to Port 25 to Test SMTP Communication AND IT WORKED FINE! I can create mail with telnet and send it both to my internal e-mails and my external (yahoo, hotmail) account !!!!

Now how do i configured my Exchange or Web server to make it work, since Telnet comfirms that i CAN. I don't wanna to do any stuff on my DNS server, Web and Exchange is fine.

Thanks.
0
 
LVL 2

Accepted Solution

by:
jagoodie earned 500 total points
ID: 10928130
really, try out aspemail. it is free, and good.
0
 

Author Comment

by:zarzar
ID: 10992798
aspemail works fine!!! Thanks. Still i don't get i why i can't relay my mail from my web server. Can do it with Telnet why not with ASP?
0
 
LVL 2

Expert Comment

by:jagoodie
ID: 10995246
CDO is not a relay issue, it is an issue with how your exchange server is set up.  Relay is an SMTP issue - being that telnet to port 25 and ASPEmail work, you are indeed able to relay.  CDO does not use SMTP
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

839 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