home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 25 Icons / 25-Icons.zip / yodomain.zip / yodomain.doc < prev   
Text File  |  1999-10-20  |  3KB  |  72 lines

  1.  
  2.  
  3. OS/2 Domain-POP Client Setup
  4.  
  5.  
  6. I am collecting the pieces of code that I used for two years
  7. to provide me with mail service for my domain -- dashs.denver.co.us.
  8. This was an OS/2 setup using InJoy as a dialer (using its Dial-on-Demand
  9. feature).  My InterNet Provider is prescient enough to allow me
  10. two MX records, one of higher priority for my static IP address,
  11. and another which deposits all mail for my domain into a POP3 box.
  12.  
  13. These days I have Linux server that performs the collection and
  14. distribution function.  However, it can be done with a single OS/2
  15. system.
  16.  
  17. The parts:
  18.    (1) your favorite scheduler or rexx script to invoke
  19.    (2) my modified souper.exe POP client at intervals or
  20.    (3) OS/2 SENDMAIL 2.02 to handle direct SMTP connection while online
  21.    (4) and deliver.exe to handle local delivery in both cases.
  22.  
  23. You will need to acquire the OS/2 SENDMAIL 2.02 which you should
  24. already have, or be able to acquire easily.
  25.  
  26. Included is a template (SENDMAIL.CF0) for the SENDMAIL.CF control
  27. file.  Remember, when editing this, file - use the 'E' editor or
  28. one that preserves tabs a la UNIX.
  29. The SENDMAIL elements originated with Niel Kempson (kempson@snowyowl.co.uk),
  30. as well as the original deliver.exe.
  31.  
  32. SENDMAIL should be started in daemon mode when you make your first
  33. InterNet connect after bootup.
  34. It may be detached and a sample command 'sendem.cmd' is included.
  35.  
  36. My setup makes copious use of Albert Shan's Super Virtual Disk package
  37. to obtain performance.  You may, of course direct files to actual
  38. hard-disk directories and your mileage will certainly vary.
  39.  
  40. Once your ISP has setup the MX records and Domain POP box, and you
  41. are running SENDMAIL with you domain info in the SENDMAIL.CF file
  42. you are now ready to configure the mail-polling portion of the setup.
  43.  
  44. See the included souper.doc for information on the normal souper.exe if
  45. you need to know more.
  46. My modifications are documented here.
  47.  
  48.  
  49. To cause souper.exe to invoke deliver.exe for local delivery,
  50. specify '-D' on the command line.
  51. To download and distribute mail according to specification in
  52. the deliver.cfg file,  set the DELIVER_CFG environment variable
  53. (at least in the process shell that is downloading mail).
  54. In your REXX script:
  55.  
  56. del_cfg = value("DELIVER_CFG", "deliver.exe -c h:\deliver.cfg -l e:\uupc\spool\dmail.log -f $f -v $u $s", "OS2ENVIRONMENT")
  57.  
  58. This variable is inspected by souper.exe when the '-D' option is given,
  59. to indicate how to invoke deliver.exe.
  60. For -c use the path to your deliver.cfg file (see deliver.txt for details).
  61. For -l point to your log file for mail delivery
  62. The other options indicate replacement strings for deliver.exe.
  63. See my sample deliver.cfg.
  64.  
  65.  
  66. The executables have been compiled with the old IBM C/SET++ compiler.
  67. On my system, they were linked with dynamic runtime (DLL) support and
  68. were small enough to fit on a RAM disk.  For distribution, they are
  69. statically linked and quite a bit larger.  If you have that ancient
  70. compiler and its DLLs, rename and use the .bin versions of souper
  71. and deliver.
  72.