Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Microsoft SMTP Service
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Actionscripter
Starting Member

Singapore
14 Posts

Posted - 07 March 2002 :  14:31:29  Show Profile  Send Actionscripter an ICQ Message
When using the SMTP service (the one that accompanies IIS) to send an email, I can't use an invalid email address as the "from" address. Below are some examples of invalid addresses:

fai@fjowiajfow.com
feajwl@faewjjfwp.com
fjwao@fawjfaowjf.com

I can only send emails when the "from" address is valid. Below are some examples of valid addresses:

testing@hotmail.com
testing@yahoo.com
testing@msn.com

As you can see, my server doesn't care whether the email address actually exist or not, but the domain part of the email address MUST be valid.

My question is, how to make the SMTP service accept ANY address (including invalid addresses)? I was wondering why my server doesn't allow invalid email addresses when other servers DO allow.

I'm using Windows 2000, IIS 5.0.

Doug G
Support Moderator

USA
6493 Posts

Posted - 07 March 2002 :  16:06:14  Show Profile
I am guessing it's because the MS SMTP service included with IIS is not designed to be a complete mail system. The configuration settings are in the MMC snap-in. Many SMTP servers have the same restriction on senders addresses to keep spammers from hijacking the server.

If you can't configure the MS SMTP service to do what you want, yust use some other mail component and a different mail server.


======
Doug G
======
Go to Top of Page

bikedude
Starting Member

38 Posts

Posted - 07 March 2002 :  20:21:11  Show Profile
Doug G:
IIS's SMTP server is a fully implemented SMTP server. The fact that it is not a "complete mail system" has nothing to do with the problem at hand. You don't need mailbox delivery just to send/route mail. You can set up IIS's SMTP server to receive all your mail locally if you want (just like in unix) rather than retrieving it from another server via POP or IMAP.

Actionscripter:
The problem may not be with IIS's SMPT server. It could be that the receiving mail system is rejecting the message because of the invalid from address domain.

Also, if you relaying mail through another SMTP server (in other words, you're using a smart host), problem may be that the smart host is rejecting the mail and not IIS's SMTP service.

If you want, you can send me the to address and I can test it from my system. I am able to send w/ any from address to mail systems that accept bogus from addresses.


Go to Top of Page

Actionscripter
Starting Member

Singapore
14 Posts

Posted - 07 March 2002 :  21:47:50  Show Profile  Send Actionscripter an ICQ Message
Hi!

Another problem I faced was that I can't use localhost or 127.0.0.1 as the mail server IP address, because I'm behind a router in order to share a cable modem. I have no choice but to use the IP address that the router assigned me, 192.168.1.3. I find that my scripts can't use the SMTP service to send emails, so I resorted to a trickery. I set a relay to point to actually allow MYSELF (192.168.1.3) to use the SMTP service! Isn't this ridiculous?

Anyway to use localhost? Will that actually solve my problem of not being able to use invalid email addresses?

Also, how does the server know whether the domain is valid or not?

Go to Top of Page

bikedude
Starting Member

38 Posts

Posted - 08 March 2002 :  12:37:49  Show Profile
quote:

Another problem I faced was that I can't use localhost or 127.0.0.1 as the mail server IP address, because I'm behind a router in order to share a cable modem.

*snip*

Anyway to use localhost?



If you add 127.0.0.1 to the permitted relay list in IIS's virtual SMTP server properties, you'll be able to use that address.
quote:

Will that actually solve my problem of not being able to use invalid email addresses?


Maybe, but probably not. I think it's actually the destination SMTP server rejecting your mail. Can you post the actual faliure message w/ all the headers?
quote:

Also, how does the server know whether the domain is valid or not?


The receiving SMTP server looks at the from address and does a DNS lookup on the domain. If the domain exists, it accepts the mail. If it does not, it rejects it.

Go to Top of Page

Actionscripter
Starting Member

Singapore
14 Posts

Posted - 08 March 2002 :  13:52:16  Show Profile  Send Actionscripter an ICQ Message
I have another question. Why must I add myself (192.168.1.3, NOT 127.0.0.1) to the relay list?

Go to Top of Page

bikedude
Starting Member

38 Posts

Posted - 08 March 2002 :  16:13:10  Show Profile
You have to add yourself to the relay list because you're probably specifying your machine name as the SMTP server rather than the name localhost. When your system looks up the IP address of the machine name, it gets back the address associated with that name.

For example, lets say your machine is named webserver. If you lookup the name webserver you get the 192.168.1.3 IP address back. If you lookup the name localhost you'll get 127.0.0.1 back.

Even though these ip addresses are on the same physical box, the SMTP server doesn't know is OK to relay mail for either of these addresses. Also, the SMTP server does not assume it's OK to relay mail from the same server it's running on.

With IIS's SMTP server, you can permit relaying by entering IP addresses in the relay list or use SMTP authentication.


Go to Top of Page

Actionscripter
Starting Member

Singapore
14 Posts

Posted - 09 March 2002 :  01:50:43  Show Profile  Send Actionscripter an ICQ Message
Thanks for your replies. I appreciate it. They are most helpful to me.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07