SMTP Buffer version 1.10
Copyright (C) Angus J. C. Duggan 1997-1998
This is a Windows NT service which accepts SMTP connections locally, and
forwards them on to another SMTP service. If the remote SMTP server is not
contactable, the messages will be queued locally and sent when the remote
server responds.
THIS SOFTWARE COMES WITH *NO* WARRANTY, EITHER EXPRESS OR IMPLIED. USE AT
YOUR OWN RISK. THIS SOFTWARE IS UNSUPPORTED. THE AUTHOR RESERVES THE RIGHT TO
IMPLEMENT WHATEVER FEATURES HE DESIRES, AND ACKNOWLEDGES NO OBLIGATION TO
CONFORM TO ANY EXISTING OR FUTURE STANDARDS.
CONFIGURATION ENTRIES IN THE REGISTRY:
In key \\HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\SMTPBuffer:
POSTMASTER
Email address of yourself; this is used for bouncing badly formed
messages sent when off-line.
MAILHOST
Name of the SMTP server to forward connections to.
QUEUEDIR
Directory containing outgoing messages.
SendWait (5 min)
Time in seconds before initially trying to send queued messages
SendInterval (10 min)
Time in seconds between re-trying to send queued messages.
ConnectTimeout (5 sec)
Time in seconds allowed for connecting to mailhost.
DisconnectTimeout (1 min)
Time in seconds to hold connection open waiting for more mail.
ClientPort (25/SMTP)
Client port number to listen for user agents.
ServerPort (25/SMTP)
Server port number for sending messages.
COMMAND LINE ARGUMENTS:
The command line arguments supported are:
-i Installs the program as a Windows NT service
-r Removes the program from the Windows NT services
-q Views the outgoing mail queue
-m mailhost
Sets the SMTP server
-p postmaster
Sets the return address for bounced messages
-d queuedir
Sets the message queue directory
-c portno
Sets the client port number for listening
-s portno
Sets the server port number for sending
-x Stops the service
-K num/patt
Deletes messages from the outgoing mail queue, selected by
number or by subject (globbed patterns can be used to match
subjects).
-F start/stop/abort
Immediately starts, stops and suspends or aborts sending of
queued messages.
-D num Run debug server. Flags are:
0x0000001 File access
0x0000002 Socket access
0x0000004 Data read
0x0000008 Data written
0x0000010 Queue building
0x0000020 Match checking
0x0000040 Summary construction
0x0000080 SMTP filter writes
0x0000100 Server responses
0x0000200 Message bouncing
0x0000400 Connections
0x0000800 Registry access
0x0001000 Reads from client
0x0002000 Writes to client
0x0004000 Reads from server
0x0008000 Writes to server
Only the last specified of -i -r -q -x -D will take effect.
Default action is to start the service.
INSTALLATION:
Compile the programs (or use the executable provided). Create a directory
where you want it installed and copy the executable over. From within the
installation directory, run "smtpbuff -i -mhost -pemail -dqdir",
substituting the mail host to which you want buffered message to go for host,
your own email address for email, and the directory you want to use for
outgoing messages for qdir. This will install the program as an NT service.
Next time you reboot, the service will start automatically. Alternately, you
can start it immediately by opening the Control Panel, starting the Services
applet, selecting "SMTP Buffer Service", and hitting the Start button. It is
a good idea to check the application log to see that it started OK, or what
problems there were if it didn't.
Now set your email client to use localhost for sending SMTP messages.
LOGGING:
Quite a lot of events are logged to the event log service. You can check when
messages are queued and sent by looking at the application log.
AJCD 28th September 1998
Wrapped on 2nd October 1998 by angus@harlequin.com