all groups > iis smtp nntp > september 2004 >
You're in the

iis smtp nntp

group:

SMTP relay properties


SMTP relay properties -D-
9/19/2004 12:11:32 PM
iis smtp nntp:
I've made several attempts to setup the default SMTP Virtual Server on my
home testing server. The sole purpose is to test mail scripts using
CDO...nothing else.

I've read several articles and tutorials to no avail. I think the problem
is related to my linksys router, the port forwarding setup and the SMTP
relay properties. But, I'm not sure?

Here is what I've configured:

I setup the Email Settings under Server Extensions as follows:
Web server's mail address: @localhost
Contact address: @localhost
SMTP Mail server: local host
Mail encoding: use default encoding
Character set: use default encoding

I setup the Default SMTP Virtual Server Properties under the general tab as
follows:
Name: Default SMTP Virtual Server
IP address: (All unassigned)

I setup the Default SMTP Virtual Server Properties under the relay tab as
follows:
Access: grant
IP address (Mask)/Domain Name: 127.0.0.1

I'm using a linksys router, which has the default IP of 192.168.1.1
I have three pc's connected to the router including the server.
Each machine is set to obtain IP address automatically and DNS server
address automatically with DHCP enabled.
I checked the IP address for each machine using ipconfig and the results
show
IP address: 192.168.1.100
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1
The results are the same for the other machines except the IP addresses are
192.168.1.101 & 192.168.102

If I reboot the PC,s the IP address can switch between the PC's, but still
remain 192.168.1.100, 192.168.1.101 & 192.168.1.102

Finally, I setup the PORT Forwarding for the linksys router as follows:
service port range: 25 ~ 25
IP address: 192.168.1.102
This was the IP for the server, but if I reboot all the PC,s then the IP can
change to one of the other IP's listed above. Do, I need to add the IP for
the other two IP address: 192.168.1.100 & 192.168.1.101

What about the relay IP address as described above? Does that need to be
changed?

I have no idea where the problem is and what I configured incorrectly? I
know the mail scripts work, because I've tried them on the remote web host
and they work fine. I just want to setup my testing server so I can do all
the testing locally, make sure the scripts work smoothly with AOL, Hotmail,
Yahoo, etc.

If anyone can lend some help, it would be greatly appreciated. Thank you.
-D-

Re: SMTP relay properties m.marien
9/19/2004 4:17:51 PM

[quoted text, click to view]

Servers normally have a static IP address. Your port forwarding won't work
if the server IP address changes. Since the DHCP server seems to assign
addresses above 192.168.1.100, configure your SMTP server with a static
address of say 192.168.1.2. The port forwarding for port 25 can then point
to 192.168.1.2 which you know is always your SMTP server. Don't forget to
fill in the default gateway and DNS IP addresses for the SMTP server in the
TCP/IP properties.

If you want your other PC's to send mail through the SMTP server, you'll
have to add their addresses to grant access for relaying. Since the
192.168.1 subnet is a private address range behind your gateway, you can
grant access to a Group of computers using a subnet address of 192.168.1.0
and mask of 255.255.255.0.


Re: SMTP relay properties -D-
9/19/2004 8:04:53 PM
Thank you for replying to my post. I appreciate the information.

When I setup the static IP for the server, what DNS IP addresses do I use?
I wasn't sure about this? I noticed in the router settings in the status
tab for WAN there were two DNS IP addresses listed:
209.206.199.16
209.142.136.85
Are those the DNS addresses I use?

When setting up the grant access for relaying do I only grant access to the
IP address: 192.168.1.0? Or do I need to include the IP address 127.0.0.1
too? I assumed only the 192.168.1.0 IP address, but wasn't certain.

Finally, is the only setting I need to change in the router the PORT
FORWARDING address for the range of:
25~25
IP Address: 192.168.1.2

Thank you for your help. If there is anything I'm missing, please let me
know. Thanks again!
-D-


[quoted text, click to view]

Re: SMTP relay properties m.marien
9/19/2004 10:01:58 PM

[quoted text, click to view]

Yes, use the same ones that the router specifies. These are probably the DNS
servers that your ISP supplies and would be the same ones that the DHCP
server uses.

[quoted text, click to view]

You can just grant access for just 192.168.1.2 or both 192.168.1.2 and
127.0.0.1. They both refer to the same computer so it wouldn't matter. You
can also grant access to the entire subnet 192.168.1.0/255.255.255.0 so that
all the computers on your subnet can send mail through your SMTP server.

[quoted text, click to view]

Yes. Any SMTP traffic from the Internet will then be routed to your SMTP
server.

[quoted text, click to view]

Re: SMTP relay properties -D-
9/20/2004 1:58:35 AM
I tried all the settings you provided, but I'm unable to access the internet
on the server, and I can't ping the server from the other PC's? I'm not
sure where the problem is in the configuration? Any suggestions on what I
need to troubleshoot?

Thanks,
-D-

[quoted text, click to view]

Re: SMTP relay properties -D-
9/20/2004 3:25:32 AM
I was researching how to setup a static IP behind a linksys router and found
a thread on linksys support page that explained to configure TCP/IP as
follows:
IP: 192.168.1.20 (multiple static IP's on other PC's would be .25, .30, etc.
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1
Preferred DNS: 192.168.1.1

I tried the following configuration and still cannot get internet access?
Any ideas?

I also read a thread about setting up port forwarding which indicated the
following configuration for SMTP:
25~25
IP: 192.168.1.3

Does that seem correct?

Either way, I'm just trying to get the configuration right so I can get
internet access. Then I can see if the SMTP Server works with my mail
scripts.

Any suggestions would be helpful.
Thanks,
-D-
[quoted text, click to view]
Re: SMTP relay properties -D-
9/20/2004 11:22:44 AM
Hi m.marien,

I did finally get the static IP address on the server working where I
can get internet access. I also setup the port forwarding for the port
range of 25~25 for IP: 192.168.1.20 (the static IP of the server).

When I try to run a mail script using CDO I get the following error:
"Fields update failed. For further information, examin the status property
of the individual field objects."

..Item(sch & "sendusing") = 25 ' cdoSendUsingPort
..Item(sch & "smtpserver") = "localhost"

Do, I set the name of the smtp server as "localhost"? I was curious if the
problem was related to the name of the smtp server?

Any thoughts?
-D-


[quoted text, click to view]
Re: SMTP relay properties m.marien
9/20/2004 3:24:53 PM

[quoted text, click to view]

I checked a script I got off the MS site and the sendusing field should be 2
rather than the port number.

Flds("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
'CDO.CdoConfiguration.cdoSMTPServer
Flds("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "majm"
Flds.Update

As far as the server name, localhost always resolves to 127.0.0.1 so it
should work. You might want to add this IP to the Granted Access for
Relaying. Otherwise use the computer name as shown on the Computer Name tab
on the System Properties dialog. Again, make sure that the IP address
192.168.1.20 is granted access in the relaying properties.

[quoted text, click to view]

OK, that's also correct. The router will act as a caching relay for DNS. Any
requests for name resolution will be forwarded to the DNS servers that you
mentioned earlier.

Are you now able to ping your smtp server from the other PC's using the
computer name or IP address ? Localhost won't work as it always resolves to
the local computer.


Re: SMTP relay properties -D-
9/20/2004 5:34:45 PM
Yes, I can ping the server from my other pc's on the lan using the server
IP: 192.168.1.20.

I'm guessing, but my assumption is that I have something configured
incorrectly with the SMTP server.

Just so I can clarify. In the Server Extension tab for Email Settings, I
have the following:

Web server's mail address: @localhost
Contact address: @localhost
SMTP Mail server: localhost
Mail encoding: use default encoding
Character set: use default encoding

That is exactly how I entered the information. Should I change "localhost"
to the name of my server? i.e. "dwayne-server"
So, instead I would have:

Web server's mail address: @dwayne-server
Contact address: @dwayne-server
SMTP Mail server: dwayne-server
Mail encoding: use default encoding
Character set: use default encoding

For the relay restrictions, I set the following for grant access to only the
list below:
Granted: 192.168.1.0(255.255.255.0)
Granted: 127.0.0.1
Granted: 192.168.1.20

Are there any other configurations that I need to make for the SMTP server?
Something that I've missed?

While I've been researching the issue, I came across some information about
registering the CDO components. I wasn't sure if this had anything to do
with the problem. I have both the CDONTS.dll and CDOSYS.dll files in the
C:/WINNT/SYSTEM directory. The article mentioned registering the components
by executing the line:
REGSVR32.EXE C:/WINNT/SYSTEM/CDOSYS.dll
&
REGSVR32.EXE C:/WINNT/SYSTEM/CDONTS.dll

I hesitated doing this until I had more information because this is making
changes to the registry. I didn't want to make changes to the registry
unless I knew that was the appropriate step to make.

Thank you for taking the time to help me with this issue. Being a novice to
SMTP setup, I'm really in the dark with all this.
-D-



[quoted text, click to view]

Re: SMTP relay properties -D-
9/20/2004 5:39:29 PM
Correction to my previous post:
I meant to say that I have both the CDONTS.dll and CDOSYS.dll files in the
C:/WINNT/SYSTEM32 directory.
-D-



[quoted text, click to view]

Re: SMTP relay properties m.marien
9/20/2004 6:43:12 PM

[quoted text, click to view]

If you're using IIS5 then the cdosys.dll is the correct library. It should
be registered already when you installed IIS. Before you start trouble
shooting CDO, perhaps make sure your SMTP server is working. If you create a
file with two lines as follows:

from: someone@somewhere.com
to: youremail@hotmail.com

and drop it into the c:\Inetpub\mailroot\pickup folder it should get
delivered, providing the to: address is a valid address.

As far as the Server Extensions for the Web server, I'm not all that
familiar with that aspect of IIS. Once you have the SMTP server working,
perhaps check with the n/g that deals with server extentions for the web
server.

[quoted text, click to view]

Re: SMTP relay properties -D-
9/20/2004 8:09:25 PM
Okay, tried the test you suggested. It went straight to the badmail folder.
So, I guess that indicates it is a smtp server problem?

-D-



[quoted text, click to view]

Re: SMTP relay properties -D-
9/20/2004 10:26:43 PM
Hi Ken,
I tried using my email address in the from: field and my email address in
the to: field. Still went directly to the badmail folder.

My server can hit www.hotmail.com in the browser. No problems getting
internet access and hitting sites.

I tried pinging the ISP DNS IP's and I can hit those as well.

I was able to telnet to my server name through port 25 too.
I used "telnet myservername 25" at the command prompt and the session
opened.

It's frustrating...it's murphy's law that this will end up some really
simple problem that was right in front of me the whole time that I'm just
not seeing.

Any ideas?
-D-


[quoted text, click to view]
for
Re: SMTP relay properties -D-
9/20/2004 10:41:36 PM
Ken,
Correction to the previous message. Using Telnet was a failed
connection. It showed -0500 when I issued the command:
telnet myservername 25

Does that indicate that port 25 is not forwarding?
-D-


[quoted text, click to view]
Re: SMTP relay properties -D-
9/21/2004 11:17:14 AM
Okay, I'm making small steps here.

I tested the SMTP server by creating a test file and moving it into the
pickup folder. Previously when I tested the SMTP server, the file was
immediately dumped into the badmail folder under the mailroot.

Now, the test file is moving to the drop folder. But, the file is still not
sent to the email address in the to: field. I opened up the test message in
the drop folder and it display the failure message:
"Domain of sender myservername@myservername does not exist."

Anyone know how I can correct this? Thanks.
-Dman100-



[quoted text, click to view]
Re: SMTP relay properties -D-
9/21/2004 12:35:10 PM
I finally have it working. It took several days and a bottle of Excedrin,
but I got there. My CDO scripts are working good too. I just wanted to
thank you both for lending your help and time. Thanks a bunch!
Regards,
-D-



[quoted text, click to view]