home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / lampop11.zip / readme < prev   
Text File  |  1993-04-08  |  16KB  |  358 lines

  1. ------------------------------------------------------------------------------
  2.  
  3.                              LamPOP Version 1.1
  4.           OS/2 LaMail POP Interface for IBM's TCP/IP
  5.  
  6.                           David Bolen - db3l@ans.net
  7.  
  8.                                     README
  9.  
  10. ------------------------------------------------------------------------------
  11.  
  12.  
  13.            Note to previous "PopMail" users - this software is now
  14.            called LamPOP, in order to more directly associate it with
  15.            LaMail, as well as to avoid a conflict with an already 
  16.            existing PopMail program
  17.  
  18.  
  19. This file describes the contents of the LamPOP archive, and presents a brief
  20. description of how to get everything up and running.
  21.  
  22. This file contains the following sections:
  23.  
  24.         Archive Contents        Description of the contents of the archive
  25.         Installation            Basic Installation Instructions
  26.         Receiving Mail          Enabling mail receipt via LamPOP
  27.         Sending Mail            Handling mail transmission via LamPOP
  28.         Utilities               Some Additional Utilities
  29.         Other Comments          Some other usage suggestions
  30.         Reporting Problems      What procedure to follow to report problems
  31.         Administrivia           How to contact me
  32.  
  33. There is currently no comprehensive documentation to LamPOP.  It was a short
  34. project of mine for people in my office, and is being made available on an
  35. AS-IS basis.  If you are unable to get anything working using the information
  36. in this readme, please feel free to drop me a note and I'll do my best to see
  37. if I can help.
  38.  
  39.  
  40. +------------------+
  41. | Archive Contents |
  42. +------------------+
  43.  
  44. The LamPOP archive contains the following files:
  45.  
  46.         readme          This file
  47.  
  48.         lampop.exe      The LamPOP utility (sends or receives mail)
  49.         lampopd.exe     A debugging version (to help diagnose any problems)
  50.         lamcheck.exe    Simple program for checking INI file contents
  51.         lamfix.exe      Fixes LAM.INI to use LamPOP to send messages
  52.         makendx.exe     Rebuilds a LaMail index file from a set of messages
  53.         makendxd.exe    A debugging version of makendx
  54.  
  55.  
  56. +--------------+
  57. | Installation |
  58. +--------------+
  59.  
  60. NOTE: LamPOP requires OS/2 version 2.0 or later, and IBM's TCP/IP v1.2.1
  61.       or later.  I also have available versions of LamPOP that support 
  62.       OS/2 1.x and/or TCP/IP v1.1 - contact me for further information
  63.       (see Administrivia)
  64.  
  65.  
  66. Installation is very simple.  Just copy the executables into some location
  67. that is part of your search path.  If you want, lampop.exe is really the
  68. only executable that must be in a directory in your path, and only if you
  69. will be using it to send mail.  Otherwise, you can just switch to whatever
  70. directory you load the files in to run them, or specify their full path
  71. location when running them from somewhere else.
  72.  
  73. In order for LamPOP to work, you will have to have a userid on the central
  74. host that is to receive your mail, and that host must be running a POP3
  75. server.  Your mail should be sent and received by that host.
  76.  
  77. There is also one other item to check.  LamPOP determines the port to connect
  78. to the POP server on by looking up the "pop" entry in the "services" file
  79. located in the "etc" directory (pointed to by the ETC environment variable -
  80. generally an etc subdirectory beneath the location TCP/IP was installed in).
  81. You need to make sure that this entry is set to port 110 (POP3) and not to
  82. port 109 (POP2).  Just verify that you have a line like:
  83.  
  84.                 pop             110/tcp         postoffice
  85.  
  86. in the services file.  If it isn't 110, edit the file (using your favorite
  87. editor, or the system editor), and change the port number to 110.
  88.  
  89. If you do not check this entry, the typical failure will be an error during
  90. the "USER" command, as a POP2 server does not support the USER or PASS
  91. commands.
  92.  
  93.  
  94. +----------------+
  95. | Receiving Mail |
  96. +----------------+
  97.  
  98. To receive mail from a central host, start LamPOP using:
  99.  
  100.      lampop -r (host) (user) (password) (maildir) (indexfile) [cycletime]
  101.  
  102.      where:     host      = Hostname of the mail host with POP3 server.
  103.                 user      = Your username on the mail host.
  104.                 password  = Your password on the mail host.  Use * in order
  105.                             to be prompted for a password.
  106.                 maildir   = Directory to store message files in.
  107.                 indexfile = Location and name of LaMail index file.
  108.                 cycletime = How often to check for new messages.  (optional)
  109.  
  110. Running "lampop -r" will tell LamPOP to connect to the mail host and see if
  111. you have new messages.  If you used an asterix (*) for a password, you will
  112. first be prompted for a password, and then LamPOP will connect to the host.
  113. If any new messages are detected, they will be fetched from the host and
  114. stored in the indicated directory, with an index entry for each message added
  115. to the specified index file.
  116.  
  117. If you don't specify a cycletime parameter, LamPOP will exit at that point.
  118. However, if you supply cycletime, LamPOP will continue to run, reconnecting
  119. to the mail host every 'cycletime' seconds to see if you have new mail.  In
  120. this case, you can stop LamPOP by using Ctrl-C/Ctrl-Break.
  121.  
  122. For example, the command:
  123.  
  124.         lampop -r home db3l * c:\tcpip\mail c:\tcpip\mail\inbox.ndx 60
  125.  
  126. would tell LamPOP to connect to the host 'home' using a userid of 'db3l',
  127. prompting for the password for db3l just after LamPOP started.  Any new 
  128. messages would be stored in the c:\tcpip\mail directory, and the index file
  129. c:\tcpip\mail\inbox.ndx updated with an appropriate index entry.
  130.  
  131. In this case, if LaMail is configured to store the "In Basket" in the
  132. c:\tcpip\mail directory, all new messages would be automatically detected by
  133. LaMail.
  134.  
  135. One item of note - for the LaMail "In Basket", the inbox.ndx file is kept in
  136. the same directory as the rest of the messages.  For all other folders, the
  137. index file is one directory above the messages and the messages are in a
  138. sub-directory of the folder name.  For example if the folder "foo" was also
  139. in c:\tcpip\mail, the index "foo.ndx" would be in c:\tcpip\mail, and foo's
  140. messages would be in the directory c:\tcpip\mail\foo.
  141.  
  142. The paths given to LamPOP must already exist - LamPOP will not create any
  143. directories.  It will, however, create the index file if necessary when the
  144. first message is received.
  145.  
  146.  
  147. Usage Hint
  148. ----------
  149.  
  150.   The easiest way to use LamPOP for continuously receiving mail is to set
  151.   it up in the same startup file that starts all your other TCP/IP daemons 
  152.   and configures the system.  Just issue a "start" command for LamPOP with 
  153.   the appropriate options, including a reasonable cycle time such as 60 or 
  154.   120 seconds.  If you use a * for a password, you'll have to enter your mail
  155.   host password once when the system starts up, but then you can leave it 
  156.   running.
  157.  
  158.  
  159. +--------------+
  160. | Sending Mail |
  161. +--------------+
  162.  
  163. To send mail through a central host, start LamPOP using:
  164.  
  165.      lampop -s (host) (user) (password)
  166.  
  167.      where:     host      = Hostname of the mail host with POP3 server.
  168.                 user      = Your username on the mail host.
  169.                 password  = Your password on the mail host.  Use * in order
  170.                             to be prompted for a password.
  171.  
  172. LamPOP will then continue reading from standard input for the text of the
  173. message.  This message will be sent through the POP3 server using the
  174. Berkeley "XTND XMIT" command.  This extension must be supported by your
  175. server in order to be able to send mail.  The text of the message itself must
  176. be standard RFC822, and must contain the source and destination addresses for
  177. delivery - the POP3 server will just pass the text on to sendmail.
  178.  
  179.  
  180. Integrating Into LaMail
  181. -----------------------
  182.  
  183. WARNING - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WARNING
  184.  
  185.      The procedure described in this section results in a plain
  186.      ASCII version of the password for your mail host userid being
  187.      placed in the LAM.INI setup file.  Although LAM.INI itself is
  188.      a binary OS/2 INI file, this does represent a security exposure
  189.      that you have to consider.  This procedure also uses LAM.INI
  190.      settings that are (as far as I know) undocumented, and may be
  191.      subject to change in future versions of LaMail.
  192.  
  193. WARNING - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WARNING
  194.  
  195. In order to have LaMail use LamPOP to send messages instead of sendmail,
  196. you need to run the "lamfix" utility to adjust the LAM.INI file used by
  197. LaMail to hold setup information.  The syntax is:
  198.  
  199.      lamfix (ini_location) (host) (user) (password)
  200.  
  201.      where:  ini_location = Full path to LAM.INI (ie: c:\os2\lam.ini)
  202.              host         = Hostname of the mail host with POP3 server.
  203.              user         = Your username on the mail host.
  204.              password     = Your password on the mail host.
  205.  
  206. Unlike using "lampop -s", you must supply your password, as there is no
  207. opportunity for LamPOP to ask you to enter it when it is run from within
  208. LaMail.
  209.  
  210. You must not be running LaMail when you run lamfix, as LaMail will prevent
  211. lamfix from updating LAM.INI.
  212.  
  213. You can verify that lamfix worked using lamcheck, as:
  214.  
  215.      lamcheck (ini_location)
  216.  
  217. This must also be run when LaMail is not running, and will produce output
  218. of the form:
  219.  
  220.      Application: LAM
  221.           Key = AUTOSPATH
  222.           Key = CfgDir
  223.           (..many keys..)
  224.           Key = Mailer Name
  225.           Key = Mailer Options
  226.  
  227. The existence of the last two ("Mailer Name" and "Mailer Options") entries
  228. signify that lamfix correctly updated the file.  To verify the contents you
  229. can run lamcheck with an additional command line option (it doesn't matter
  230. what it is), which will also dump the values of the keys, which should be the
  231. same arguments you originally gave to lamfix.
  232.  
  233. Using LamPOP this way has the same requirement on the host POP3 server
  234. as when using LamPOP to send a message interactively - namely that the
  235. server support the Berkeley "XMIT" extension.
  236.  
  237.  
  238. +-----------+
  239. | Utilities |
  240. +-----------+
  241.  
  242. In the event that various message files get created without appropriate index
  243. entries being made, or if indices are lost while experimenting with LamPOP,
  244. the makendx utility can be used to recreate a valid LaMail index file for a
  245. set of message files.  The syntax is:
  246.  
  247.      makendx [-h (hostname)] (index_file) (message_file[s])
  248.  
  249.      where:     hostname    Optional hostname to use for messages that
  250.                 have From/To fields without nodes.
  251.         index_file      Name of index file to create.
  252.                 message_file[s] Filenames (can use wildcards) for message
  253.                                 files to catalog in index.
  254.  
  255. The -h option should be used if you receive messages where the From: or To:
  256. header lines give addresses consisting only of a userid, but no node.  In
  257. this case, you should specify the hostname of your POP server following the
  258. -h option, and it will be used to complete such addresses.
  259.  
  260.  
  261. WARNING: You should use this utility cautiously, refraining from rebuilding
  262.      existing index files wherever possible.  Some of the information
  263.      kept in the index can not be determined solely from the message
  264.      file, and will therefore be lost if makendx is run.  This includes
  265.      items such as the status of messages (viewed, answered, etc..), or
  266.      even the node of the sender or recipient of a message in some
  267.      instances (and if the -h option is not used).
  268.  
  269.  
  270. +----------------+
  271. | Other Comments |
  272. +----------------+
  273.  
  274. These represent various usage comments or suggestions for LamPOP:
  275.  
  276.       * Make sure that you configure your LaMail note options appropriately
  277.         for your mailing address before sending mail through LamPOP.  You
  278.         should configure your From: address to look as if you were sending
  279.         mail from the mail host.  That address will go directly through
  280.         LamPOP into sendmail on that host where it will appear in the
  281.         final message.
  282.       * If you have access to your site administrator responsible for the
  283.         POP3 daemon, and they are using the Berkeley "popper" code on a
  284.         Unix platform, they may want to fix what I consider a bug in the
  285.         XMIT extension.  Since XMIT passes all mail on to sendmail, and
  286.         since sendmail sends bounce messages for bad addresses, XMIT should
  287.         not return a failing POP code for a message that just has some
  288.         bad addresses in it.  The fix it to have the XMIT extension check
  289.         for an EX_NOUSER return from sendmail and still return a successful
  290.         POP code.  If anyone is interested, I can supply particulars as to
  291.         what code to fix (and what lines, if you have popper 1.83beta).
  292.       * In case anyone wonders, there is no restriction on having multiple
  293.         copies of LamPOP running.  So you can leave a "lampop -r" running
  294.         permanently in the background and still start "lampop -s" whenever
  295.         you want, manually or through LaMail, for sending mail.
  296.       * All of the programs in this package (LamPOP included) will give
  297.         a brief set of usage information if they are run without arguments.
  298.       * It is quite possible to use LamPOP to receive mail, but still
  299.         continue to use the OS/2 TCP/IP Sendmail to transmit messages.  The
  300.     advantage to this approach is that your POP server need not support
  301.     the XMIT extension.  You will still gain the advantage of receiving
  302.     mail on a central host (thus not requiring your OS/2 machine to
  303.     be active on the network and running Sendmail at all times), while
  304.     allowing LaMail to start a copy of sendmail when necessary to
  305.     transmit an outgoing piece of mail.
  306.  
  307.  
  308. +--------------------+
  309. | Reporting Problems |
  310. +--------------------+
  311.  
  312. This code is supplied on an AS-IS basis, and I place no specific guarantees
  313. as to my support of any problems.  However, I do have users at my company
  314. that use this code, and it is likely that I will address any specific
  315. difficulties that are reported to me.
  316.  
  317. Since LamPOP involves a central host at your site that runs a Pop Server,
  318. please first check with any local site support people to make sure that the
  319. problem you are experiencing is not due to something on your central host.  I
  320. can only address problems that are part of the LamPOP code, or caused
  321. because of that code.
  322.  
  323. With that in mind, should anyone encounter problems, I'd appreciate the
  324. following being done whenever possible in order to best help me narrow down
  325. any problems.
  326.  
  327.      *  Record whatever information you can as to the circumstances
  328.         surrounding the crash, and any dump information.  If possible,
  329.         please see if the problem is reproduceable.
  330.      *  If possible (often times the problem is reproduceable), use the
  331.         debugging version of LamPOP (lampopd.exe) to obtain debugging
  332.         information.  Before starting it up, create an empty file called
  333.         lampop.dbg in the same directory as lampopd.exe.  This file will
  334.         get filled with debugging information.  Then, attempt to reproduce
  335.         the problem.
  336.      *  If the administrators of the central mail host are able - please
  337.         have them log the POP session that occurs between LamPOP and the
  338.         POP server, and include that as debugging information.
  339.  
  340. After doing this, please send me any crash information along with any
  341. debugging information you have gathered.  Please be as verbose as you can
  342. about the environment in which you are running.  I may not need most of the
  343. information, but I may not automatically know up front what I do need.
  344.  
  345.  
  346. +---------------+
  347. | Administrivia |
  348. +---------------+
  349.  
  350. Just to keep this in one place - I can be reached via the following:
  351.  
  352.         David Bolen                             e-mail:  db3l@ans.net
  353.         Advanced Network & Services, Inc.       phone:   +1 914 789-5327
  354.         100 Clearbook Road                      fax:     +1 914 789-5310
  355.         Elmsford, NY  10523
  356.  
  357. E-mail is much preferred over any other contact method.
  358.