home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mmdf / mmdf-IIb.43 / conf / test / conf.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-03-28  |  8.5 KB  |  242 lines

  1. #include "util.h"
  2. #include "mmdf.h"
  3. #include "ap_norm.h"
  4.  
  5. /*            COMPILE-TIME CONFIGURATION FILE WITH SITE-DEPENDENT INFORMATION
  6.  *
  7.  *      This file contains general host-dependent variable info that
  8.  *   the message system needs to have.
  9.  */
  10.  
  11. char *mmtailor = "/usr/src/newbrl/mmdf/testmmdf/mmdftailor";
  12.                 /* location of external tailoring file  */
  13.  
  14. /* ************************  PUBLIC NAMES  ****************************** */
  15.  
  16. char
  17.     *locname = "BRL-VGR",    /* Generic name for local host          */
  18.     *locdomain = "ARPA",    /* Name of domain that is local to us */
  19.     *sitesignature = "Mail System (MMDF)",
  20.                 /* in signature field of return-mail  */
  21.     *mmdflogin = "mmdf",    /* login name for mmdf         */
  22.     *supportaddr = "MMDF@BRL-VGR.ARPA";
  23.                 /* where to send bug reports, etc. */
  24. /*  *****************  DEFAULT BASE DIRECTORIES  *********************** */
  25.  
  26. /*  The following pathnames define the default working directories for
  27.  *  MMDF activities.  Specific files usually will be referenced relative
  28.  *  to these directories.  To override the default, the specific filename
  29.  *  should be specified as an anchored pathname, beginning with a slash.
  30.  *
  31.  *  The following pathnames must be anchored.
  32.  */
  33.  
  34. char    *cmddfldir = "/usr/src/newbrl/mmdf/testmmdf";
  35.                   /* contains MMDF commands, such as      */
  36.                   /* submit, deliver, and queclean        */
  37. char    *logdfldir = "/usr/src/newbrl/mmdf/testmmdf/log";
  38.                   /* contains highly volatile files, such */
  39.                   /* as logs and check-point markers      */
  40. char    *phsdfldir = "/usr/src/newbrl/mmdf/testmmdf/log/phase";
  41.                   /* contains timestamp files             */
  42. char    *tbldfldir = "/usr/src/newbrl/mmdf/testmmdf/table";
  43.                   /* contains sticky files, such as       */
  44.                   /* name tables & dialing scripts        */
  45. char    *tbldbm = "/usr/src/newbrl/mmdf/testmmdf/table/mmdfdbm";
  46.                   /* dbm() hash of name tables      */
  47. char    *quedfldir = "/usr/src/newbrl/mmdf/testmmdf/lock/home";
  48.                   /* contains queued mail files, in       */
  49.                   /* subordinate directories              */
  50.                   /* (also see below)                     */
  51. char    *chndfldir = "/usr/src/newbrl/mmdf/testmmdf/chans";
  52.                 /* contains the channel programs        */
  53.                 /* (ch_*) called by deliver             */
  54. char    *lckdfldir = "/tmp";
  55.                 /* Directory for lock files SEK           */
  56.  
  57.  
  58. /*  ***************  DEFAULT LOG LOCATIONS & SETTINGS  ***************** */
  59.  
  60. char    mlogloc[] = "msg.log";
  61. char    chlogloc[] = "chan.log";
  62.  
  63. /*  It is common for specific using processes to tailor the second
  64.  *  field, which is the log entry label, so that you can tell which
  65.  *  incarnation of the process made a set of entries.
  66.  *
  67.  *  These structures conform to ll_log.h
  68.  */
  69.  
  70. struct ll_struct
  71.             msglog =      /* deliver, submit, & queclean          */
  72. {
  73.     mlogloc, "XX-0000", LLOGFST, 40, LLOGSOME, 0
  74. },
  75.  
  76.            chanlog =      /* log for channels & user agents       */
  77. {
  78.     chlogloc, "UA-0000", LLOGFST, 40, LLOGSOME, 0
  79. };
  80.  
  81. /* Needed for user authorisation logging        */
  82.  
  83. struct ll_struct authlog =
  84. {
  85.     "auth.log", "AU-0000", LLOGFTR, 40, LLOGSOME, 0
  86. };
  87.  
  88. int domsg;
  89.  
  90. char *zap_env[2] = {
  91.     "TZ=CST6CDT",
  92.     NULL
  93. };
  94. /*  ****************  MESSAGE QUEUE SUBSTRUCTURE  ********************** */
  95.  
  96. /*  The queue has a top-level, locking directory, which only trusted
  97.  *  processes can get through.  Under that is a base working directory.
  98.  *  Below that are three directories which contain queued messages data
  99.  *
  100.  *  quedfldir[] specifies the top-level and base directories.
  101.  */
  102.  
  103. int     queprot = 0700;           /* protection on quedfldir parent      */
  104.  
  105. /* the next five are relative to quedfldir[] */
  106.  
  107. char
  108.     *deadletter = "DeadLetters",
  109.                 /* Actually NOT a directory, where    */
  110.                 /* unreturned letters go to die.    */
  111.     *tquedir = "tmp/",    /* sub-directory for builing            */
  112.                 /* address list file for msg            */
  113.     *aquedir = "addr/",    /* sub-dir with files of address        */
  114.                 /* lists for queued mail; files are     */
  115.                 /* linked into here from tquedir        */
  116.                 /* as last act of queuing msg           */
  117.     *squepref = "q.",    /* preface sub-queue name with this    */
  118.     *mquedir = "msg/";    /* sub-dir containing text of           */
  119.                 /* queued messages; file names          */
  120.                 /* are same as in aquedir               */
  121.  
  122. /*  The following two parameters establish thresholds for queue residency
  123.  *  limits.  If a message does not move out of the queue by warntime,
  124.  *  a notice may be sent to the originator.  If it is still in the queue
  125.  *  by failtime, it is removed from the queue and may be returned to the
  126.  *  originator.
  127.  */
  128.  
  129. int
  130.     warntime = 60,
  131.     failtime = 252;
  132.  
  133.  
  134. /* ******************  COMMAND NAMES & LOCATIONS  *********************** */
  135.  
  136. char
  137.     *namsubmit = "submit",      /* who to submit mail through         */
  138.     *pathsubmit = "submit",     /* location relative to cmddfldir[]   */
  139.  
  140.     *namdeliver = "deliver",    /* name of delivery overseer          */
  141.     *pathdeliver = "deliver",   /* location relative to cmddfldir[]   */
  142.  
  143.     *nampkup = "pickup",        /* name of pickup overseer            */
  144.     *pathpkup = "deliver",      /* location relative to cmddfldir[]   */
  145.  
  146.     *nammail = "mmdfmail",      /* the mmdf simple mail-sender        */
  147.     *pathmail = "v6mail";       /* needs to handle special switches   */
  148.                     /* probably must be MMDF's uip/mail   */
  149.  
  150. /*  *********************  SUBMIT TAILORING  ************************** */
  151.  
  152. int     maxhops = 20;               /* number of Via fields permitted   */
  153. int    mgt_addid = 0;            /* if set, add message-id if necessary */
  154. int    lnk_listsize = 12;        /* if more than this many addresses,
  155.                      * then do not send warning and only
  156.                      * send citation on return
  157.                      */
  158.  
  159.  
  160. /*   *********************  DELIVER TAILORING  ************************** */
  161.  
  162. int    maxqueue = 100;          /* maximum size of sortable queue       */
  163. int    mailsleep = 600;          /* seconds between queue sweeps by a    */
  164.                   /* background (-b) Deliver              */
  165.  
  166. /*   *********************  ADDRESS TRANSFORMATION  ********************* */
  167.  
  168.  
  169. /*  Format:
  170.  *
  171.  *  Original host name, New hostname, String appended to mailbox
  172.  *
  173.  *      e.g.        "DCrocker at UDel-EE"
  174.  *      maps to     "DCrocker.EE at UDel"
  175.  *
  176.  *  Note the usage, for Darcom.  It is designed to bypass address
  177.  *  mapping, so that "foo at bar" does not go out as "foo.bar at relay"
  178.  */
  179.  
  180. LOCVAR struct ap_hstab hstab[] =
  181. {
  182.     0, 0, 0,
  183. };
  184. struct ap_hstab *ap_exhstab = hstab;
  185.  
  186. /* *****************  LOCAL DELIVERY TAILORING  ************************* */
  187.  
  188. /*  Obviously, the following is only needed if there is local delivery,
  189.  *  rather than pure relaying (a rare, but permitted mode).  Simplest
  190.  *  determinor is ch_okloc in conf_chan.c
  191.  */
  192.  
  193. int     sentprotect = 0600;         /* protection on mail files             */
  194.  
  195. char
  196.     *dlvfile = ".maildelivery", /* User specified delivery instructions */
  197.     *sysdlvfile = (char *)0,  /* if non-zero, the default dlvfile */
  198.     *mldfldir = { 0 },    /* directory to contain users' file     */
  199.                 /* for receiving local mail.  if this   */
  200.                 /* spec is empty, recipient's login     */
  201.                 /* directory will be used.              */
  202.     *mldflfil = "mailbox",    /* file to receive new mail             */
  203.                   /* relative to mldfldir[] or to login   */
  204.                   /*   dir if mldfldir[] is empty         */
  205.                   /* if this spec empty, user's login     */
  206.                   /* name will be name of file            */
  207.     *delim1 = "\001\001\001\001\n",
  208.     *delim2 = "\001\001\001\001\n";
  209.                   /* add to begin and end of messages     */
  210.                   /* NOTE:  to avoid author spoofin,      */
  211.                   /* lo_wtmail() catches mail that        */
  212.                   /* has either of these strings in it    */
  213.                   /* and changes the first char           */
  214.                   /* (it increments its ascii value)      */
  215.  
  216.  
  217. /*  *****************  UUCP CHANNEL TAILORING  *********************** */
  218.  
  219. char    *Uchan = "uucp";        /* default channel name */
  220. char    *Uuxstr = "uux - -r";        /* command string to start UUX */
  221. char    *Uuname = "tailorme";
  222.  
  223. /******************* NIFTP CHANNEL TAILORING  *************************/
  224.  
  225. char    *pn_quedir   = "/usr/spool/jntmail";
  226.                 /* Location of JNTmail queues for NIFTP */
  227.  
  228. /******************* MULTIPLE HOST TAILORING **************************
  229.  *
  230.  *  This variable is initialised to be the name of the local machine
  231.  *  It is used to transparently forward between the UCL machines
  232.  */
  233. char    *locmachine = "BRL-VGR";
  234.  
  235.  
  236. /******************* AUTHORIZATION TAILORING **************************/
  237. char    *authrequest = "Lamas@BRL-VGR";
  238.                 /* authorisation request address        */
  239. char    *authfile = "/usr/src/newbrl/mmdf/testmmdf/warning";
  240.                 /* warning letter - full pathname       */
  241.  
  242.