home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume30 / mserv-3.0 / part02 / mserv_config.pl < prev    next >
Encoding:
Text File  |  1992-06-19  |  9.0 KB  |  251 lines

  1. # mserv_config.pl -- config info for mail server
  2. # Author          : Johan Vromans
  3. # Created On      : ***
  4. # Last Modified By: Johan Vromans
  5. # Last Modified On: Wed Jun 10 12:57:22 1992
  6. # Update Count    : 10
  7. # Status          : OK
  8.  
  9. ################ Preamble ################
  10.  #
  11.  # Owner of the mail server. Must be set.
  12.  # This user need no special privileges, except for write access to the
  13.  # mail server files, and read access to the archives.
  14.  # It will get email about problem situations.
  15. $mserv_owner = "mserv";
  16.  
  17. ################ Reply section ################
  18.  #
  19.  # The mail server sends replies to the sender of messages.
  20.  # It could use the current user id as its own address, but usually it
  21.  # is better to substitute something else to prevent bounced mail
  22.  # messages clobbering your system.
  23.  #
  24.  # Your domain. Unfortunately there is no reliable way of fetching this
  25.  # from the system info.
  26. $domain = "mh.nl";
  27.  #
  28.  # Sender of the messages. Try to prevent annoying bounced messages.
  29. $mserv_sender = (getpwnam($mserv_owner))[6] || "Mail Server";
  30. $sender = "From: $mserv_sender <bit-bucket@$domain>";
  31.  #
  32.  # Mail server bcc id.
  33.  # If set, this user gets a Bcc of each request. Can be used for
  34.  # accounting, or to keep track of functionality.
  35. $mserv_bcc = $mserv_owner;
  36.  #
  37.  # Sendmail functionality. Will be called with the recipients on the
  38.  # command line, and a pre-formatted message (including some headers) on 
  39.  # standard input.
  40.  # NOTE: Do not use `-t' if you're running smail3. It will exclude the
  41.  #    named recipients from delivery.
  42. $sendmail = "/usr/lib/sendmail";
  43.  #
  44.  # Optional mail headers.
  45.  # Undefine if not wanted.
  46. @x_headers = ("X-Server: $my_package [$my_name $my_version]",
  47.           "X-Info: Send mail to <postmaster@$domain>");
  48.  
  49. ################ Listener section ################
  50.  #
  51.  # When a mail message is received by the mail server, it is piped into
  52.  # program 'listener'.
  53.  # This program changes uid to the mail server owner, and executes
  54.  # the 'process' program.
  55.  #
  56.  # Define $have_setruid if you have the setruid/setguid system calls.
  57.  # In this case, the program needs to be installed setuid to the
  58.  # mail server owner. If you do not define $have_setruid, the program has to
  59.  # be installed setuid 'root'.
  60. $have_setruid = 1;
  61.  #
  62.  # Define $have_setenv if you have the setenv(3) library call. Using
  63.  # setenv is optional.
  64. $have_setenv = 1;
  65.  #
  66.  # If you $have_setruid, you may define $use_uid also.
  67.  # In this case the getpw* routines will not be used and
  68.  # your executable will be significantly smaller and faster.
  69. $use_uid = 1;
  70.  
  71. ################ Email section ################
  72.  #
  73.  # The default strategy for the mail server is to transfer requests via
  74.  # email. 
  75.  #
  76.  # Sendmail functionality. Will be called with the recipients on the
  77.  # command line, and a pre-formatted message (including some headers) on 
  78.  # standard input.
  79.  # NOTE: Do not use `-t' if you're running smail3. It will exclude the
  80.  #    named recipients from delivery.
  81.  # Used by "dorequest" to transmit chunks of data via email.
  82. $chunkmail = "/usr/lib/sendmail -odq";
  83.  #
  84.  # The minimum,default,maximum size of email chunks in K.
  85. @email_limits = (10,64,1024);
  86.  #
  87.  # To prevent overloading the system by firing too many sendmails,
  88.  # use this amount to sleep between sending chunks.
  89. $mailer_delay = 30;
  90.  
  91. ################ UUCP section ################
  92.  #
  93.  # The mail server can transfer requests via uucp to systems that are
  94.  # connected that way. This is very efficient compared to email, e.g. 
  95.  # no encoding overhead.
  96.  #
  97.  # Define '$uucp' if you want to use the uucp feature.
  98.  # Append uucp grade, if desired (and your uucp supports it).
  99. $uucp = "/usr/bin/uucp -ga";
  100.  #
  101.  # Uucp host names can be checked for validity, if desired.
  102.  # This is how to get a list of uucp host names. 
  103.  # Set it to empty if you do not want to check the host names.
  104. $uuname = "/usr/bin/uuname";    # Check host names.
  105.  #$uuname = "";            # Do not check host names.
  106.  #
  107.  # The minimum,default,maximum size of uucp chunks in K.
  108. @uucp_limits = (10,256,2048);
  109.  
  110. ################ Archives section ################
  111.  #
  112.  # Where to find the archive entries.
  113. @libdirs = ("/usr/local/src", "/beethoven/arch", "/users/jv/PD");
  114.  # Please add mail server 'pub'!
  115. push (@libdirs, "$libdir/pub");
  116.  #
  117.  # Extensions we recognize. See "$dofilesearch" below.
  118. @exts = (".TZ", ".tar.Z", ".tar", ".shar.Z", ".shar", ".Z",
  119.      ".zoo", ".zip", ".arc", ".sit");
  120.  
  121. ################ Search strategies ################
  122.  #
  123.  # $dofilesearch: 
  124.  #   Look for file: XXX must exist as file XXX in some lib dir.
  125.  #   Known extensions are also tried.
  126.  #   This is default if no other strategies are selected.
  127.  #
  128.  # $doindexsearch:
  129.  #   Lookup XXXNNNYYY in $indexfile. 
  130.  #   If $indexfile is a relative filename, every lib dir is supposed to
  131.  #   have one. 
  132.  #   If $indexfile is an absolute filename, the location it appears in
  133.  #   will be considered part of the archives. This can be overridden with
  134.  #   $indexlib.
  135.  #
  136.  # $dodirsearch:
  137.  #   Look in dir: XXX or XXXNNNYYY (where NNN is a version indicator,
  138.  #   e.g. '-1.02' and YYY a known extension, e.g. '.tar.Z') must exist
  139.  #   in some lib dir, or subdir XXXNNN.
  140.  #   Example: 'gcc' matches 'gcc', 'gcc.tar.Z', 'gcc-2.1.tar.Z',
  141.  #            'gcc-2.1/gcc.tar.Z' etc.
  142.  #
  143.  # If your index matches the archives (as specified in @libdirs), you
  144.  # can safely set $dodirsearch to 0.
  145.  #
  146. $indexfile = "ix.codes";    # index file per archive directory
  147. #$indexfile = "$libdir/ix.codes";    # separate index file 
  148. #$indexlib  = $libdirs[0];        # archive for index file
  149. $dofilesearch = 1;
  150. $doindexsearch = defined $indexfile;
  151. $dodirsearch = 1;
  152.  #
  153.  # If doindexsearch is selected, index searches can return a huge amount
  154.  # of information. Therefore enforce a limit on the max. number of lines
  155.  # an index request can return. Zero means: no limit.
  156. $maxindexlines = 200;
  157.  
  158. ################ The mail server files ################
  159.  #
  160.  # No need to change these, I suppose.
  161.  #
  162.  # Where to store requests.
  163. $queue = $libdir . "/queue";
  164.  # Where to log. Undefine if you do not want logging.
  165.  # Note -- you can override this at run-time with 'doreqest -nolog'.
  166.  #         'chmod -w $logfile' also works.
  167. $logfile = $libdir . "/logfile";
  168.  # Lock file to guard against multiple executions of 'dorequest'.
  169. $lockfile = $libdir . "/lockfile";
  170.  # notes file. Will be prepended to each confirmation message.
  171.  # NOTE: if you change this, you'll need to change the Makefile also.
  172. $notesfile = $libdir . "/mserv.notes";
  173.  # hints file. Will be appended to each confirmation message.
  174.  # NOTE: if you change this, you'll need to change the Makefile also.
  175. $hintsfile = $libdir . "/mserv.hints";
  176.  
  177. ################ Locking section ################
  178.  #
  179.  # Select a locking method. Not selecting a locking method
  180.  # voids your warranty.
  181.  #
  182.  # fcntl(2) locking. Requires "errno.ph" and "fcntl.ph".
  183. $lock_fcntl = 1;
  184.  #
  185.  # BSD style flock(2). Requires "errno.ph" and "sys/file.h".
  186. #$lock_flock = 1;
  187.  #
  188.  # lockf(2) locking. Requires "errno.ph", "unistd.ph" and "sys/syscall.ph".
  189. #$lock_lockf = 1;
  190.  
  191. ################ Encoding programs ################
  192.  #
  193.  # Default encoding. Select one of B, U, D, X and make sure the
  194.  # corresponding encoding tool exists.
  195. $default_encoding = "B";    # btoa
  196.  #
  197.  # Encoding programs. Supply a full pathname.
  198.  # Encoding commands will be disallowed if the corresponding
  199.  # encoding program is not available.
  200.  # Since uuencode is fixed, it should better be there!
  201. $btoa     = "/usr/local/bin/btoa";    # btoa/atob
  202. $uuencode = "/usr/bin/uuencode";    # uu{en.de}code
  203. $uue      = "/usr/local/bin/uue";     # Dumas uue/uud program
  204. $xxencode = "/usr/local/bin/xxencode";     # xx{en.de}code
  205.  
  206. ################ Index section ################
  207.  #
  208.  # The following are only needed if you select indexsearch.
  209.  # `makeindex' uses the GNU find program and locate tools.
  210.  # The actual index lookup is performed by GNU locate 3.6 (or later)
  211.  # or a customized version of GNU locate 3.5. In the latter case,
  212.  # you need to "make ixlookup" and "make install-ixlookup".
  213. $gfind = "/usr/local/bin/gfind";
  214.  # The GNU locate library (used to find bigram and code).
  215. $locatelib = "/usr/local/lib/locate";
  216. #$ixlookup = $libdir . "/ixlookup";    # based on GNU locate 3.5
  217. $ixlookup = "/usr/local/bin/locate";    # as of GNU locate 3.6
  218.  
  219. ################ Packing section ################
  220.  #
  221.  # The following are only needed if you want to support the packing 
  222.  # of directories.
  223.  #
  224.  # Max number of blocks in a directory (as returned by 'du -s').
  225.  # Undefine (or set to zero) if you do not want to support packing.
  226. $packing_limit = 4100;
  227.  #
  228.  # Tools.
  229. $du       = "/bin/du";            # get size of dir
  230. $find     = "/usr/local/bin/gfind";    # find
  231. $pdtar    = "/usr/local/bin/pdtar";    # create compressed ustar
  232. $tar      = "/bin/tar";            # if no $pdtar...
  233. $compress = "/usr/ucb/compress";    # if no $pdtar...
  234. $zoo      = "/usr/local/bin/zoo";    # zoo
  235. $zip      = "/usr/local/bin/zip";    # zip
  236.  
  237. ################ Miscellaneous ################
  238.  #
  239.  # Working directory. Should have space for at least 1.5 times the
  240.  # biggest file in the archives...
  241.  #
  242. $tmpdir = $ENV{"TMPDIR"} || "/usr/tmp";
  243.  
  244.  # Should "dorequest" be run automatically after completion of
  245.  # "process"?
  246. $auto_runrequest = 1;
  247.  
  248. ################ End of configuation info ################
  249.  
  250. 1;
  251.