home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume26 / tulp-3.0.3 / part01 / conf.h < prev    next >
C/C++ Source or Header  |  1993-04-15  |  6KB  |  194 lines

  1. /* $Id: conf.h,v 1.23 93/03/15 20:54:39 wolf Exp $
  2.  *
  3.  *  Copyright (C) 1991,1992  Kimmo Suominen, Christophe Wolfhugel
  4.  *
  5.  * Please read the files COPYRIGHT and AUTHORS for the extended
  6.  * copyrights refering to this file.
  7.  * Configuration information for use by LISTSERV.
  8.  * Change these as appropriate for your system.
  9.  *
  10.  */
  11.  
  12. /*
  13.  * TULPDIR defines the directory where all service files are accessible,
  14.  * such as list of lists, etc... TULP chdir()'s to that at startup.
  15.  */
  16.  
  17. #define TULPDIR        "/home/listserv/expl"
  18.  
  19. /*
  20.  * PIDFILE is the file where listserv will write it's pid. This file
  21.  * must be world readable (thus verify the directory tree access) and
  22.  * will not be written by a super-user process, meaning it can't be 
  23.  * placed in /etc or like. The "make install" will create the
  24.  * /usr/local/etc/tulp directory with appropriate rights.
  25.  */
  26.  
  27. #define PIDFILE    "/usr/local/etc/tulp/tulp.pid"
  28.  
  29. /*
  30.  * Place where programs sendmail and mailx lie on your system.
  31.  *
  32.  * To run sendmail in background use "-odb" instead of "-odi".
  33.  * This will result in faster LISTSERV replies, but increases
  34.  * load on your system because of the many sendmail processes.
  35.  *
  36.  * Note: with the new "windowed" popen, it is preferable to use 
  37.  * the interactive delivery mode.
  38.  */
  39.  
  40. #define SENDMAIL  "/usr/lib/sendmail -oi -odi -oem -oMrTULP"
  41. #define MAILX      "/usr/bin/mailx"
  42.  
  43. /*
  44.  * Following string is the shutdown command, when sent to the listserv
  45.  * makes a clean and safe shutdown. Useful if there are several admins
  46.  * some may not have access to the system running it.
  47.  *
  48.  * Change this from the default! Multi words is OK.
  49.  *
  50.  * If undefined, the option is not hardcoded. Don't forget the 
  51.  * newline in the string.
  52.  */
  53.  
  54. #define SHUTDOWN    "shitdown\n"
  55.  
  56. /*
  57.  * Place, where incoming mail for LISTSERV is spooled.
  58.  */
  59.  
  60. #define MAILFILE  "/usr/mail/listserv"
  61.  
  62. /*
  63.  * If you don't have support for syslog, but want a facsimile,
  64.  * define FAKESYSLOG to be the name of a file to which to log stuff,
  65.  * otherwise the standard syslog will be used.
  66.  *
  67.  *      #define FAKESYSLOG      "/usr/adm/listlog"
  68.  *
  69.  */
  70.  
  71. #undef    FAKESYSLOG "syslog"
  72.  
  73. /*
  74.  * This is frequently used text, rename to fit your needs
  75.  */
  76.  
  77. #define VERSION    "3.0.3"        /* No longer than this! */
  78.  
  79. /*
  80.  * If undefined then the statistics junk at the end of a command message
  81.  * about CPU usage and other stuff will not be sent to the user.
  82.  * Some dislike to get those lines.
  83.  */
  84.  
  85. #define CPUTYPE "MyUNIXstuff"    /* Put your CPU type here */
  86.  
  87. /*
  88.  * NICENESS is the process priority decrement to be used.
  89.  *
  90.  * Usually message forwarding is not considered critical and thus
  91.  * you should choose a value over 0.  If the normal priority on
  92.  * your system is 20, then 19 is the maximum niceness you should
  93.  * use, because the lowest priority is usually 39.  Using values
  94.  * above that (more decrement) may cause unpredictable results.
  95.  * Under HP-UX your process might get stuck sometimes when using
  96.  * an invalid value.
  97.  */
  98.  
  99. #define NICENESS 18
  100.  
  101. /*
  102.  * BATCHSIZE is the maximum number of recipients in each batch sent.
  103.  * Does not limit the number of people on any single list.
  104.  * Use a value between 20 to 50, do NOT exceed 50.
  105.  * The smaller the value, the more often sendmail will be called.
  106.  * If you run sendmail in background, a small value results in many
  107.  * sendmail processes running for a large list!
  108.  */
  109.  
  110. #define BATCHSIZE 50
  111.  
  112. /*
  113.  * Define ADD_SENDER, if you want a "Sender: list-errors" header.
  114.  * This implies the need of the list-errors alias to someone (not listserv).
  115.  * If your mail agent handles correctly envelopes and if you did trust listserv
  116.  * and if you use ADD_REQUEST it might be possible to keep this undefined.
  117.  */
  118.  
  119. #undef    ADD_SENDER        /* Sender */
  120.  
  121. /*
  122.  * Define ADD_REQUEST, if you prefer envelope sender of listname-request.
  123.  * Also, listserv job requests will be from listserv-request, so you will
  124.  * need that defined as an alias to someone (not listserv itself).
  125.  * This needs listserv as a trusted user in your sendmail configuration.
  126.  * Add a line like "Tlistserv" after the other T-lines in "sendmail.cf".
  127.  *
  128.  * It is strongly recommended to keep this line defined (and create
  129.  * the appropriate aliases, listserv-request and xxx-request for
  130.  * each list). By undefining this option you may reate loops
  131.  * in case of error messages being bounced.  Take care...
  132.  */
  133.  
  134. #define ADD_REQUEST        /* -fxxx-request to sendmail */
  135.  
  136. /*
  137.  * If you want the Received: headers to be stripped from incoming
  138.  * messages (to be redistributed) define this option.
  139.  * Default is undefined and it is extremely dangerous to strip those
  140.  * vital lines. You may generate deadly loops, for you and for the
  141.  * network if you define this.
  142.  */
  143.  
  144. #undef STRIP_RECEIVED        /* Keep undefined please */
  145.  
  146. /*
  147.  * If the signals (SIGUSR1 only) are not working fine on you system
  148.  * (CPU loops or whatsoever) then define following. Instead of
  149.  * waiting on the deliver signal, listserv will check every
  150.  * NO_SIGUSR1 seconds for a new message.
  151.  */
  152.  
  153. /* #define NO_SIGUSR1    60    /* 1 min is a good delay */
  154.  
  155. /*
  156.  * Choose one of the three ways to get your hostname
  157.  * 1) USE_GETHOSTNAME   use gethostname followed by gethostbyname
  158.  * 2) USE_UNAME         use uname followed by gethostbyname
  159.  * 3) HOST              use the static string - cannot share the executable
  160.  *
  161.  * Using gethostbyname in 2) and 3) will result in your fully qualified
  162.  * domain name (FQDN), if your system is properly configured.  That is,
  163.  * if you don't use Domain Name Service, the FQDN must be the first name
  164.  * for your address in /etc/hosts or NIS-map hosts.byname.  This is the
  165.  * standard way, so there should be no trouble.
  166.  */
  167.  
  168. #define USE_GETHOSTNAME         /* Use gethostname and gethostbyname */
  169. #undef USE_UNAME        /* Use uname and gethostbyname */
  170. /* #define HOST "host.foo.bar"    /* Max 50 characters */
  171.  
  172.  
  173. /*
  174.  * If your system does not have the strcase functions, define
  175.  * following option.
  176.  */
  177.  
  178. #undef    NEED_STRCASE        /* Need strcasecmp and strncasecmp */
  179.  
  180.  
  181. /*
  182.  * You should probably better not change following defines, but in case
  183.  * the defaults do not fit your needs. Be sure of what you do.
  184.  * Those values have been fetched from Sendmail-IDA (conf.h) and are
  185.  * unchanged for TULP.
  186.  */
  187.  
  188. #define    MAXLINE        1024        /* max line length */
  189. #define MAXFIELD    4096        /* max total length of a hdr field */
  190.  
  191. /*----- STOP ---- no more modifications below ----- STOP ----------*/
  192.  
  193. #include "internal.h"
  194.