Tools Links Login

MailGateway ( modem sharer and modem sharing )

This code allows several users on a LAN to access their mail
from an ISP by using Windows NT 4.0 RAS services. Only ONE modem is needed for several users.
Please note that this is NOT and e-mail client. The app acts as a gateway between your email client and the ISP
This code dials the ISP and allows several simultaneous connections, I have
tested this for 25 simultaneous connections, so it should be O.K
for a small company. The code also disconnects from the ISP after
a few seconds of innactivity.
All YOU have to do is the following
(1) Make sure that you have RAS services on your NT server, a valid Internet
account, and have this executable code running on the server
(2) There are 2 Winsock controls on the form called
RemoteSMTP(0) and RemotePOP3(0). Change the
"RemoteHost" property for these controls to
your ISP's mail server name
(3) Your mail client must be set to use the IP address (or name )
of your local NT server, not your ISP's mail server. Just the
IP address or the name! Nothing else should change
(4) Configure your Internet dial-up connection to "close on dial", otherwise
you'll have a new window popping up every time the computer dials out
Once the executable is up and running you can test it manually
by running the following command
telnet 127.0.0.1 25
The dial-up screen should appear and the modem should start connecting.
After a few seconds, your telnet screen should show you a message saying
that you have connected to some server somewhere. This indicates that
your server is properly configured.

Original Author: Veve

Inputs

Nothing

Assumptions

This code dials the ISP and allows several simultaneous connections, I have
tested this for 25 simultaneous connections, so it should be O.K
for a small company. The code also disconnects from the ISP after
a few seconds of innactivity.
All YOU have to do is the following
(1) Make sure that you have RAS services on your NT server, a valid Internet
account, and have this executable code running on the server
(2) There are 2 Winsock controls on the form called
RemoteSMTP(0) and RemotePOP3(0). Change the
"RemoteHost" property for these controls to
your ISP's mail server name
(3) Your mail client must be set to use the IP address (or name )
of your local NT server, not your ISP's mail server. Just the
IP address or the name! Nothing else should change
(4) Configure your Internet dial-up connection to "close on dial", otherwise
you'll have a new window popping up every time the computer dials out
Once the executable is up and running you can test it manually
by running the following command
telnet 127.0.0.1 25
The dial-up screen should appear and the modem should start connecting.
After a few seconds, your telnet screen should show you a message saying
that you have connected to some server somewhere. This indicates that
your server is properly configured.

Returns

Nothing

Side Effects

Nothing

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 81 times

Categories

Visual Basic 6

Attachments

CODE_UPLOAD28831162000.zip
Posted: 9/3/2020 3:45:00 PM
Size: 5,629 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.