Author |
Topic |
|
bjlt
Senior Member
1144 Posts |
Posted - 03 September 2003 : 08:12:24
|
I want to use smtp of iis to send emails locally, however, it seems messages are in gueue forever.
I tested it with an email client, messages sent to gueue successfully but then they remain there.
log below
11:51:59 127.0.0.1 AUTH - 334 11:51:59 127.0.0.1 AUTH - 235 11:51:59 127.0.0.1 MAIL - 250 11:51:59 127.0.0.1 RCPT - 250 11:51:59 127.0.0.1 DATA - 250 11:51:59 127.0.0.1 QUIT - 240
What's wrong this time?
I have NAV and Norton Internet Security run but it seems nothing changes when they are disabled.
Thanks in advance. |
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 03 September 2003 : 09:19:11
|
When you say "send locally" what are you trying to send the mail too ? you have a full SMTP/POP server running on your network somewhere as well ? |
Kiwihosting.Net - The Forum Hosting Specialists
|
|
|
bjlt
Senior Member
1144 Posts |
Posted - 03 September 2003 : 10:06:23
|
Just normal messages sent from local email client with smtp set to 127.0.0.1. also the messages from asp pages using cdonts.
it worked fine before when I did tests on a win2k server, or with another smtp application I tried. |
Edited by - bjlt on 03 September 2003 13:59:42 |
|
|
bjlt
Senior Member
1144 Posts |
Posted - 03 September 2003 : 14:02:47
|
I found similar questions asked in EE, yet I cannot solve it.
quote:
http://www.experts-exchange.com/Web/Web_Servers/IIS/Q_20703537.html
I have a program written in C# (.NET framework 1.0) that sends e-mail, the program is fine (honestly)...
When I send mail to something@hotmail.com it gets stuck in \inetpub\mailroot\queue When I send mail to something@myMachine.myDomain it works ( goes to \inetpub\mailroot\drop )
I have 127.0.0.1 in the delivery of the SMTP setting and also as the SmartHost. anonymous can send and relay e-mail. port 25 is open. my ISP isn't blocking anything.
funny thing is, if I uninstall SMTP server, sending e-mails externally (ie. to hotmail.com) works great. the main issue is that my localhost pc on the intranet cannot send mail to external e-mail addresses when the SMTP service is running...but why ???
========
Remove 127.0.0.1 from SmartHost. Cut a file from queue dir and put it in pickup dir. See if it goes back to queue. Open event viewer and look SMTP messages. If you see a DNS error read the following and perform the test step by step given in this article ...
http://support.microsoft.com/?kbid=263237
Don't skip any step. 2nd step is very important.
Do you use any router that has firewall in it? If yes, open port 25 and 53 for both tcp and udp.
Even after all this all your mails may not go if you don't have a reverse lookup setup (PTR record) for your IP. Is it fixed?
================================ ================================ http://www.experts-exchange.com/Web/Web_Servers/IIS/Q_20426422.html
I've installed SMTP for IIS 5.0, but the mail stays in the Queue folder and it wont send.
"The error message an internal DNS error caused a failure to find the remote server" appears in the Event Viewer.
I can telnet 127.0.0.1 25 and get a response. I am not using Smart Host, and have set relay to accept 127.0.0.1.
In the following article, it says that the computer name must be "able to resolve in DNS". I am not sure what this means? http://aspfree.com/aspnet/setupcdonts.aspx
I am running Windows 2000 Server SP3
Any help would be appreciated.
================================ you will need to give the server a different ip address than 127.0.0.1... this will not work other than when your on the same computer due to its the local host ip address..
you will also need to specify a vaid dns server to lookup other email servers ip addresses which is critical for mail servers otherwise it wouldn't know what whatever@domainname.com is..
you can usually get this information from the network administrator or a Internet service provider...
========================== =============================
|
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 04 September 2003 : 01:47:56
|
when it worked fine before on a w2k server, are you trying to get it working on sometihing different now ? or did it just stop working on the w2k server for no apparant reason ? |
Kiwihosting.Net - The Forum Hosting Specialists
|
|
|
bjlt
Senior Member
1144 Posts |
Posted - 04 September 2003 : 02:56:01
|
It worked fine on a w2k server, which was installed a long time ago and is currently removed. I've just reinstalled a w2k pro and set up a web site I'm working on to have some tests, and noticed the mails are not sent out. besides the difference between the server and pro version, the firewall and anti-virus application are different. However, it seems even if I disable the firewall messages are not sent still. I can't remember what exactly I configured in the server before, but I did a search on google and follow the instructions on articles on how to send mails with w2k smtp from local host yet failed to send them out.
pick up works fine, messages can be sent to my local machine, dns tests fine, no error messages were given or logged.
|
Edited by - bjlt on 04 September 2003 02:59:30 |
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 04 September 2003 : 03:24:15
|
The only thing I can think of is the relaying not being set correctly, but based on what you've said above it sounds like you've already checked that avenue out already. |
Kiwihosting.Net - The Forum Hosting Specialists
|
|
|
bjlt
Senior Member
1144 Posts |
Posted - 04 September 2003 : 03:33:57
|
Thanks.
maybe it's caused by no valid dns? I set it to send failure notice in one minute, and got the failure message sent to the email address used. I'm now reading an article related and will come back later. |
|
|
bjlt
Senior Member
1144 Posts |
Posted - 04 September 2003 : 03:51:50
|
Dear Gremlin, thank you for your help.
I think the problem is caused by the dns I used. I'd followed the instructions in the article in EE to have the dns tested, and I'd thought it worked fine for mx record. However, it seems it does not actually, at least for the email address I was trying to senm messages to.
|
Edited by - bjlt on 04 September 2003 03:58:06 |
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 04 September 2003 : 05:24:37
|
ahh yes that does make sense the MX is pretty critical to getting mail to work properly. :) |
Kiwihosting.Net - The Forum Hosting Specialists
|
|
|
|
Topic |
|