###########################################################################
All the apps these scripts use were free, and covered by the GNU License.
  As for the stuff I came up with, they are also free, and come with
     no warranty that they will work, but I hope they do for you.
     I *DID NOT* write any of the other scripts, and have only
                 included them for convenience.
############################################################################


Okay, now that's out of the way, what to do.

FYI, my login shell is bash, on a BSD/386 BSDI 1.1 flavored OS.
     my local shell is also bash. I use C-Kermit 5A(189), available
     from the major Linux ftp sites under a "non-commercial-use"
     directory as kermit189.tgz. It has better modem hardware
     support, as well as better features.
     I use Smail, and these scripts have been rock solid since
     term 119. 

*     On your remote login box, either alias starterm as "exec term" 
      in your .profile, or write a file with 2 lines, 
           1.)   #!/bin/sh   2.) exec term       .
      then chmod it to a+x, put it in ~/bin, and add it to your PATH.

*     PLEASE READ EVERYTHING, and hack to fit your needs.
      You will definitely need to put the correct loginame & password
      in DEFINE login macro/script in .kermtrc, + maybe change modem
      type, or remove some AT commands your modem doesn't support.

      
###########################################################################   
#   !!! Specially read the .kermtrc & .kermtbye * modem * settings. !!!   #
# If you want to run the login .kermtrc as I do, with my password set in  #
#   stone, and you are in a multiuser box, do a  "chmod go-r .kermtrc"    #
#  (If you trust root). Otherwise, do man kermit to see the askq option.  #
###########################################################################
#    Also read the usr.lib.smail.* config, routers, & transports file     #
#    before using them. They can probably be dropped in with a few path   #
#    or hostname changes, if any, But .bak your original files first      #
###########################################################################

*    I * may * have hacked termsmartmail, I remember used to get
     bounce, bounce  when I was off line, so I did, but due to so many
     changes, I forgot offhand exactly what I did.
        (I couldn't find a copy of tip & tiptest for linux)

*     Cut up the kermtrc.kermtbye.tbye file, name them appropriately,
      and put them where they should be.

*     Rename "bin.or.home.bin.master" to what you want. ex: myhostrc,
      and put it where it should be, in /bin, or ~/bin. 

*     If pop or termsmartmail don't work for you (I might have forgot
      to include something, you can ftp them from

  "sunsite.unc.edu"          as pop-perl something (look in mail)

  "physics.purdue.edu"       as BCRMailHandler314 (I think, somewhere
                                   under bcr/linux )

*     Try mailing to your Internet address, while offline, and see if 
      it bounces, or ends up in /var/spool/smail/input. If it's there,
                             GREAT !
 
*     Login, wait a while, and recheck your mail at the remote, to
      see if it left your box to the remote mailbox. If so, wait
      a little more, keep checking, and if its gone, check your 
      local mail, pop should have brought it back. 

*     Try tin -r ( I alias it as news='tin -r' ). It should say
      connecting to localhost, reading active news file, etc.


Go from there, I guess.

 Thats it !

Term it easy . . . .


--------kermtrc.kermtbye.tbye
	contents:
	1.  ".kermtrc" logs you in, starts term on the remote,
             then quits Kermit totally. Hope your modem supports
             ignore DTR (&D0) Lives at ~.
	2.  "tbye" shuts everything down, and gets kermit to
	    hangup the line. Lives in /bin or ~/bin.
	3.  ".kermtbye" the .rc Kermit uses to hangup. Lives in ~.

          * break them up and "chmod u+x tbye" * Again, if you're
        on a multiuser system, you might wanna chmod go-x tbye, so
        they can't accidentally mess you up.


---------bin.or.home.bin.master

        Starts the whole process, and drops you at your local
        prompt, after having done all your tredirs, etc, etc.
        Rename it whatever you feel is appropriate, just don't
	dup name it to an existing binary in the same directory,
        or you could hose it.

----------usr.lib.smail.termsmartmail

        Shell script that handles queueing mail, when you're not
        online, but sends it if you are. Rename it termsmartmail
        and it lives in, you guessed it, /usr/lib/smail. :-)

-----------usr.lib.smail.config  -  modified to work with termsmartmail.
-----------usr.lib.smail.transports -           -do-
-----------usr.lib.smail.routers-               -do-    
-----------usr.bin.pop             - Perl script to pick up mail via the
				           post office protocol.
                              !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 

                                For pop to work, you must create a 
			       ".pop" file in your home directory 
                                      with the format :

                                *localhost_port_login_password*

                              ex: localhost 2110 schliesk QuickSilver

                                and permissions must be: -rw---------   

                              !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Sorry if I forgot anything .......

Questions, 
       comments, E-mail:     to    <schliesk@sos.sos.net>
                             or  <72324.1430@compuserve.com>

            finger at             schliesk@axposf.pa.dec.com
