Author |
Topic |
|
Actionscripter
Starting Member
Singapore
14 Posts |
Posted - 07 March 2002 : 14:31:29
|
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
|
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 ====== |
|
|
bikedude
Starting Member
38 Posts |
Posted - 07 March 2002 : 20:21:11
|
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.
|
|
|
Actionscripter
Starting Member
Singapore
14 Posts |
Posted - 07 March 2002 : 21:47:50
|
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?
|
|
|
bikedude
Starting Member
38 Posts |
Posted - 08 March 2002 : 12:37:49
|
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.
|
|
|
Actionscripter
Starting Member
Singapore
14 Posts |
Posted - 08 March 2002 : 13:52:16
|
I have another question. Why must I add myself (192.168.1.3, NOT 127.0.0.1) to the relay list?
|
|
|
bikedude
Starting Member
38 Posts |
Posted - 08 March 2002 : 16:13:10
|
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.
|
|
|
Actionscripter
Starting Member
Singapore
14 Posts |
Posted - 09 March 2002 : 01:50:43
|
Thanks for your replies. I appreciate it. They are most helpful to me.
|
|
|
|
Topic |
|