home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / hp / 10007 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  51.3 KB

  1. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!dtix!mimsy!sdd.comsat.com!neal.ctd.comsat.com!neal!neal
  2. From: neal@neal.ctd.comsat.com (Neal Becker)
  3. Newsgroups: comp.sys.hp
  4. Subject: Re: prob w/ smail HP-UX 8.02 (837)
  5. Message-ID: <NEAL.92Sep3101420@neal.ctd.comsat.com>
  6. Date: 3 Sep 92 14:14:20 GMT
  7. References: <BtynIv.2uz@cmptrc.lonestar.org>
  8. Organization: COMSAT Labs
  9. Lines: 1310
  10. NNTP-Posting-Host: neal.ctd.comsat.com
  11. In-reply-to: tmike@cmptrc.lonestar.org's message of 2 Sep 92 17:06:31 GMT
  12.  
  13. I have smail-3.1.26 on hpux 8.07 (720).  It works fine.  Here is my
  14. EDITME and os/hpux-8.0.  I think you need ANSI compiler.  Hope this helps.
  15.  
  16.  
  17. #! /bin/sh
  18. # This is a shell archive.  Remove anything before this line, then unpack
  19. # it by saving it into a file and typing "sh file".  To overwrite existing
  20. # files, type "sh file -c".  You can also feed this as standard input via
  21. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  22. # will see the following message at the end:
  23. #        "End of archive 1 (of 1)."
  24. # Contents:  smail-3.1.26/conf/EDITME smail-3.1.26/conf/os/hp-ux8.0
  25. # Wrapped by neal@neal on Thu Sep  3 10:12:31 1992
  26. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  27. if test -f 'smail-3.1.26/conf/EDITME' -a "${1}" != "-c" ; then 
  28.   echo shar: Will not clobber existing file \"'smail-3.1.26/conf/EDITME'\"
  29. else
  30. echo shar: Extracting \"'smail-3.1.26/conf/EDITME'\" \(47337 characters\)
  31. sed "s/^X//" >'smail-3.1.26/conf/EDITME' <<'END_OF_FILE'
  32. X# @(#)conf/EDITME-dist    1.46 8/15/92 15:52:50
  33. X#
  34. X# EDITME - edit me to perform high level configuration of smail
  35. X#
  36. X# The EDITME file is used by makefiles to build individual defs.h,
  37. X# defs.sh and defs.sed files, which in turn control the build/install
  38. X# process of smail.
  39. X#
  40. X# The EDITME-dist file servers as a reference copy only.  Patches to
  41. X# smail will refer to EDITME-dist rather than EDITME.  Only the EDITME
  42. X# file is used in the build/install process.  Any editing should be done
  43. X# to the file EDITME, which should be located in the same directory as
  44. X# EDITME-dist.
  45. X#
  46. X# The EDITME is a /bin/sh shell script.  That is, comments begin with
  47. X# the first non-quoted/non-escaped '#' character.  Values are set
  48. X# using NAME=VALUE or NAME=, with no spaces around the equal sign.
  49. X# Values that have spaces or special shell characters should be
  50. X# qouted and/or escaped.  Consult the sh(1) man page for further details.
  51. X#
  52. X# Values that are indicated as optional may, in some cases, not be set.
  53. X# All other values MUST be set to some value.  The NAME= form is
  54. X# equivalent to not setting the value, with the exception of TEST_BASE.
  55. X#
  56. X# An alternate path to the EDITME file can be specified through setting
  57. X# the environment variable SMAIL_EDITME.  This can either be a full
  58. X# pathname or a relateive pathname, which will be referenced relative
  59. X# to the smail conf directory.  Care must be taken with dependencies in
  60. X# makefiles when the path to the EDITME file has changed.  If this is
  61. X# a permanent change, then type "make depend" at the top of the smail
  62. X# source tree.  Otherwise the conf/lib/mkdefs.sh shell script can be
  63. X# run in affected directories to create new defs files.
  64. X
  65. X
  66. X# CFLAGS - the base set of flags for the cc command
  67. X#
  68. X# optional
  69. X#
  70. X# When debugging smail, it is useful to set this to "-g".  Otherwise
  71. X# "-O" is normally used to optimize the code produced.
  72. X#
  73. X# NOTE:  I get core dumps on SCO MPX 2.0 when using the bind router (I
  74. X#   haven't tried other SCO releases).  Whatever the problem is, it
  75. X#   goes away when I compile without -O.  If anybody finds the cause,
  76. X#   please let me know.  For now, if you get core dumps when using the
  77. X#   bind router on SCO, try compiling without -O.
  78. X
  79. XCFLAGS=-O                # common
  80. X#CFLAGS=                # don't use optimizer
  81. X#CFLAGS=-g                # use when debugging
  82. X#CFLAGS="-O -C"                # UTS/580
  83. X#CFLAGS="-g -C"                # UTS/580 for debugging
  84. X
  85. X
  86. X# CC - the C compiler to use for compiling smail
  87. X#
  88. X# optional (defaults to cc)
  89. X#
  90. X# CAUTION: gcc does not work with smail on all architecures.  In
  91. X# particular, problems have been reported on the SunOS platform.  The
  92. X# typical problem is that gcc uses different structure-passing
  93. X# conventions for function calls.  This is a problem for a few
  94. X# networking calls which pass around in_addr structures.
  95. X#
  96. X# Some conf/os files set an alternate default value for CC.  In
  97. X# particular, the SunOS CC defaults to /bin/cc, to ensure that
  98. X# /usr/sys5/cc is not used.
  99. X
  100. X#CC=gcc                    # use the GNU C Compiler
  101. X
  102. X
  103. X# LDFLAGS - flags to pass to the loader
  104. X#
  105. X# optional
  106. X#
  107. X# These flags are passed to the cc command before any object
  108. X# modules or libraries.
  109. X
  110. X#LDFLAGS=-L/usr/ucblib            # use an alternate directory for libs
  111. X#LDFLAGS="-L/usr/ucblib -Bstatic"    # and don't use shared libraries
  112. X
  113. X
  114. X# LIBS - libraries to include in binaries
  115. X#
  116. X# optional
  117. X#
  118. X# These libraries are passed to the cc command before any libraries
  119. X# mentioned in the conf/os file.  It can be used to link in additional
  120. X# libraries before the system libraries.
  121. X#
  122. X# If you wish to use the GNU dbm library, then add -lgdbm to LIBS
  123. X# (perhaps with a -L to indicate the directory containing gdbm),
  124. X# and then add NDBM to the HAVE variable.
  125. X
  126. X#LIBS=-lgdbm                # use the GNU dbm library
  127. X#LIBS="-L/usr/local/lib -lgdbm"        # if gdbm is in /usr/local/lib
  128. X#LIBS="-L/usr/local/lib -lgdbm -lalloca" # load alloca function from somewhere
  129. X
  130. X
  131. X# OSLIBS - ending libraries to include in binaries
  132. X#
  133. X# optional
  134. X#
  135. X# These libraries are passed to the cc command after all other
  136. X# libraries from any other source.  For example, this can be used
  137. X# to force the use of an alternate C library, or a shared version
  138. X# of the C library.
  139. X#
  140. X# Some conf/os files already specify use of the shared C library, and
  141. X# some necessary system libraries.
  142. X
  143. X#OSLIBS=-lc_s                # SVR3 shared C library
  144. X#OSLIBS="-lc_s -lcposix"        # POSIX and shared C libs
  145. X
  146. X
  147. X# STRIP - define this if you wish to strip binaries when installing
  148. X#
  149. X# optional
  150. X#
  151. X# The smail binaries will only be striped on installation if STRIP=yes.
  152. X# This may save some disk space at the expence of the ability to do
  153. X# symbolic debugging.
  154. X
  155. X#STRIP=yes
  156. X
  157. X
  158. X# USE_SYMLINKS - define this if you wish to use symlinks when installing
  159. X#
  160. X# optional
  161. X#
  162. X# The smail binaries are normally installed using hardlinks between
  163. X# the various copies of the smail binary.  Where hardlinks cannot be
  164. X# made, real copies are made.  To use symbolic links instead of
  165. X# hard links and copies, set USE_SYMLINKS=yes.  This will cause only
  166. X# one copy of the smail binary to be installed.  Do not define this
  167. X# if your system does not have symbolic links.
  168. X
  169. X#USE_SYMLINKS=yes
  170. X
  171. X
  172. X# OS_TYPE - define the operating system type for your machine
  173. X#
  174. X# required
  175. X#
  176. X# Consult the conf/os directory for a complete list of recognized
  177. X# operating system types.  The names given below may not represent
  178. X# all of the operating systems for which an OS description file
  179. X# is available.
  180. X
  181. XOS_TYPE=hp-ux8.0
  182. X#OS_TYPE=aix3.1                # IBM AIX 3.1
  183. X#OS_TYPE=aix3.2                # IBM AIX 3.2
  184. X#OS_TYPE=bsd4.2                # 4.2 BSD systems
  185. X#OS_TYPE=bsd4.3                # 4.3 BSD systems
  186. X#OS_TYPE=cpc3.0                # Counterpoint C-XIX Release 3.0
  187. X#OS_TYPE=forpro                # fortune FOR:Pro 2.1 to 3.1
  188. X#OS_TYPE=sco3.2                # SCO UNIX 3.2
  189. X#OS_TYPE=sco3.2+tcp            # SCO UNIX 3.2 with SCO TCP/IP
  190. X#OS_TYPE=sun_os3            # Sun/OS version 3.x
  191. X#OS_TYPE=sun_os4            # Sun/OS version 4.x
  192. X#OS_TYPE=sys5.2                # System V release 2
  193. X#OS_TYPE=sys5.3                # System V release 3
  194. X#OS_TYPE=sys5.4                # System V release 4
  195. X#OS_TYPE=ultrix1.2            # DEC Ultrix release 1.2
  196. X#OS_TYPE=unixpc3.0            # AT&T Unix PC (3b1) release 3.0
  197. X#OS_TYPE=unixpc3.5            # AT&T Unix PC (3b1) release 3.5
  198. X#OS_TYPE=uts1.2                # UTS/580 release 1.2
  199. X#OS_TYPE=uts2.0                # UTS/580 release 2.0
  200. X#OS_TYPE=xenix5                # SCO Xenix System V
  201. X#OS_TYPE=posix                # Generic P1003.1 system
  202. X#OS_TYPE=isc2.2.1            # Interactive release 2.2.1
  203. X#OS_TYPE=delta                # Motorola delta
  204. X
  205. X
  206. X# ARCH_TYPE - architecture type
  207. X#
  208. X# required
  209. X#
  210. X# The ARCH_TYPE of 16bit refers to machines with 16 bit words.  This
  211. X# mode is untested.  It is assumed that 16bit machines have extended
  212. X# address spaces as smail is more than 64k bytes long.
  213. X
  214. XARCH_TYPE=32bit                    # common
  215. X#ARCH_TYPE=small32bit                # 32 bit without reasonable VM
  216. X#ARCH_TYPE=16bit                # untested
  217. X
  218. X
  219. X# DRIVER_CONFIGURATION - configuration file describing smail drivers
  220. X#
  221. X# optional
  222. X#
  223. X# By default, the os configuration file (conf/os/OS_TYPE) refers to
  224. X# the file that describes the available director, router and transport
  225. X# drivers.
  226. X#
  227. X# For example on BSD-based OS_TYPEs, the os configuration file refers to
  228. X# a driver configuration that uses BSD networking.  A BSD based system
  229. X# could not set DRIVER_CONFIGURATION and get the BSD netwokring based
  230. X# drivers; or a system could set DRIVER_CONFIGURATION=unix-generic and
  231. X# disable BSD networking drivers.
  232. X#
  233. X# Currently few conf/os files specify the arpa-network driver
  234. X# configuration (which includes support for the BIND server).
  235. X# If you want to use this, you must usually set DRIVER_CONFIGURATION
  236. X# explicitly.  You may also have to add BIND to the HAVE list (later
  237. X# in this file) to use the arpa-network driver configuration.
  238. X#
  239. X# IMPORTANT NOTE FOR INTERNET HOSTS
  240. X#
  241. X# NOTE: The bind router driver is not configured into the compiled-in
  242. X# routers, so you will need to install a routers file to use it.  Get
  243. X# a routers file from samples/generic/routers and copy it to
  244. X# /usr/lib/smail.  Comment out the first version of inet_hosts from
  245. X# that file, and uncomment the second (the bind version) of the
  246. X# router.  You may also want to uncomment the forcepaths router, if
  247. X# you forward for any hosts in the UUCP zone.
  248. X
  249. X#DRIVER_CONFIGURATION=unix-generic        # no BSD networking
  250. X#DRIVER_CONFIGURATION=$ROOT/mydriver.cf        # customized configuration
  251. XDRIVER_CONFIGURATION=arpa-network        # include bind router
  252. X
  253. X
  254. X# LMAIL - where the real /bin/mail resides
  255. X#
  256. X# optional
  257. X#
  258. X# On many System V machines, the /bin/mail program will deliver what 
  259. X# it thinks is local mail directly into user mailboxes, and may also
  260. X# call uucp, or some other remote delivery mechanism.  The /bin/mail
  261. X# program will therefore can bypass smail.
  262. X#
  263. X# A solution to this program is to move the /bin/mail supplied with
  264. X# your system to another name, LMAIL, and to then install the binmail
  265. X# program, in pd/binmail as /bin/mail.  If binmail is invoked to read
  266. X# mail, the LMAIL (old /bin/mail) is called, otherwise SMAIL is called
  267. X# to deliver mail.
  268. X#
  269. X# If LMAIL is defined below and the specified file does not exist,
  270. X# then the binmail makefile install rule will attempt to move
  271. X# /bin/mail to LMAIL and then copy binmail into /bin/mail.  If LMAIL
  272. X# is defined and the file LMAIL does exist, then the binmail
  273. X# makefile will refuse to install binmail.
  274. X#
  275. X# If LMAIL is not defined then /bin/mail is not touched.
  276. X#
  277. X# NOTE: due to potential problems or confusion with binmail
  278. X#    installation, binmail is not automatically built and installed
  279. X#    from higher level makefiles.  One must go to the pd/binmail
  280. X#    directory and "make install" explicitly.
  281. X
  282. X#LMAIL=/bin/lmail                # standard System V
  283. X
  284. X
  285. X# MISC_DEFINES - miscellaneous definitions
  286. X#
  287. X# optional
  288. X#
  289. X# A colon-separated list that names miscellaneous macros to define
  290. X# for C programs and shell scripts.  Each entry in the list can be
  291. X# a simple name, or the name can be followed by an equal sign to
  292. X# provide a value.  For example:
  293. X#
  294. X#    MISC_DEFINES="void=int:DECLARE_UTIMBUF:NO_FORWARDTO_FILE"
  295. X#
  296. X# Defines void to be int for compilers that do not correctly support
  297. X# the void type, and declares the macro DECLARE_UTIMBUF, so that smail
  298. X# will not try to get the utimbuf structure from a header file.
  299. X#
  300. X#
  301. X# IMPORTANT FOR INTERACTIVE UNIX USERS:
  302. X#
  303. X# Some versions of Interactive UNIX have a <sys/socket.h> header
  304. X# file that directly includes the <time.h> header file, which is
  305. X# not protected against multiple inclusion.  If your system has
  306. X# this problem, you will encounter a multiple declaration problem
  307. X# when compiling src/modes.o.  To repair the situation, use:
  308. X#
  309. X#    MISC_DEFINES=ISC_SOCKET_TIME_BUG
  310. X#
  311. X#
  312. X# IMPORTANT FOR BSD AND SUNOS USERS:
  313. X#
  314. X# Some mail readers compare access and modify times to determine
  315. X# whether mail has been delivered which has not been read.  The local
  316. X# mail transport (using the appendfile driver) preserves access time
  317. X# for files so that this will work.  However, if smail is configured
  318. X# to use the System V convention of reading forwarding information
  319. X# from user mailbox files, then this will be defeated (the forwardto
  320. X# director does not preserve access times).
  321. X#
  322. X# Since BSD systems (and System V systems running Smail) have little
  323. X# reason to use the System V forwarding convention, it is sufficient
  324. X# to disable it.  To disable the System V forwarding convention, add
  325. X# NO_FORWARDTO_FILE to MISC_DEFINES.
  326. X#
  327. X#
  328. X# IMPORTANT FOR USERS OF OLD BIND RELEASES
  329. X#
  330. X# The bind resolver can make use of features in newer releases of
  331. X# BIND (named).  In particular, it will use the res_search function,
  332. X# rather than older res_mkquery function.  If you do not have the
  333. X# new BIND release (e.g., res_search is listed as an undefined
  334. X# variable when you link smail), then add OBSOLETE_RESOLVER to
  335. X# MISC_DEFINES.  Also, the res_search function does not appear to
  336. X# interract correctly with the 'defnames' attribute to the bind
  337. X# driver, on some versions of the resolv library, so beware.  If bind
  338. X# doesn't work for you, try defining OBSOLETE_RESOLVER.
  339. X#
  340. X#
  341. X# IMPORTANT FOR USERS OF SOME SEQUENT OS RELEASES
  342. X#
  343. X# Some releases of the Sequent C compiler recognize private as a keyword.
  344. X# However, smail uses this as a variable or structure name in several
  345. X# places.  To get around this problem use:
  346. X#
  347. X#    MISC_DEFINES=private=smail_private_tag
  348. X#
  349. X#
  350. X# IMPORTANT FOR NON-POSIX OPERATING SYSTEMS
  351. X#
  352. X# Smail uses the utime() system call to set file times in a few places.
  353. X# All U*IX releases appear to support this call, although not all
  354. X# systems define the structure (utimbuf) used as an argument to the
  355. X# call.  In particular, true 4.2 and 4.3BSD do not declare this
  356. X# structure (at least not the original, non-POSIX, 4.3BSD release).
  357. X#
  358. X# The bsd4.2 and bsd4.3 conf/os files define DECLARE_UTIMBUF to cause
  359. X# smail itself to define this structure.  However, this may fail if
  360. X# your system is extended to define the utimbuf structure in an
  361. X# incompatible fashion.  This can be disabled by defining
  362. X# NO_DECLARE_UTIMBUF in MISC_DEFINES.
  363. X#
  364. X# For other operating systems, you may need to add DECLARE_UTIMBUF
  365. X# in MISC_DEFINES.  Some releases of Interactive U*IX require this.
  366. X# Other releases don't (I don't have a list).
  367. X#
  368. X#
  369. X# IMPORTANT FOR USERS OF GCC ON NON-ANSI C SYSTEMS
  370. X#
  371. X# If you are using a C compiler that defines __STDC__ (such as gcc) but
  372. X# you are running into problems due to non-ANSI #include files or missing
  373. X# ANSI definitions, then you can define NO_ANSI_C.
  374. X
  375. X#MISC_DEFINES=ISC_SOCKET_TIME_BUG
  376. XMISC_DEFINES=NO_FORWARDTO_FILE        # recommended for BSD systems
  377. X#MISC_DEFINES=ISC_SOCKET_TIME_BUG:NO_FORWARDTO_FILE
  378. X#MISC_DEFINES=OBSOLETE_RESOLVER
  379. X#MISC_DEFINES=DECLARE_UTIMBUF        # if smail must define utimbuf struct
  380. X#MISC_DEFINES=NO_DECLARE_UTIMBUF    # if smail must _not_ define utimbuf
  381. X#MISC_DEFINES=private=smail_private_tag    # for sequent
  382. X#MISC_DEFINES=NO_ANSI_C            # don't believe __STDC__
  383. X
  384. X
  385. X# HAVE - miscellaneous supported features
  386. X#
  387. X# optional
  388. X#
  389. X# A colon-separated list of features that the local system supports
  390. X# in addition to those defined in the OS configuration file.  Some
  391. X# interesting features you might want to list are:
  392. X#
  393. X#    NDBM          - this system supports the new DBM library
  394. X#            functions introduced in 4.3BSD.
  395. X#    DBM          - this system supports the old DBM library
  396. X#            distributed with older BSD systems and
  397. X#            many System V systems.  This *requires* the
  398. X#            dbmclose() function, which does not exist
  399. X#            in most historic dbm implementations.
  400. X#    HDB_UUCP      - this system uses HoneyDanBer UUCP, rather
  401. X#            than a traditional version of UUCP.
  402. X#    NIALIAS          - aliases with NeXT NetInfo databases.
  403. X#    BIND          - the system supports the bind resolver library
  404. X#
  405. X# Defining NDBM or DBM may require the specification of additional
  406. X# libraries, in LIBS or in OSLIBS.  See conf/os/template for a more
  407. X# complete list of recognized features, and for more detailed
  408. X# descriptions.  If neither NDBM or DBM is specified, Ozan Yigit's
  409. X# sdbm (an ndbm workalike) will be used.
  410. X#
  411. X# CAUTION: The HoneyDanBer UUCP in System V Release 4.0 uses multi-
  412. X#    letter message grade values, rather than the traditional
  413. X#    single-letter message grades in earlier versions.  Smail
  414. X#    presumes that message grades are single letters, so Smail and
  415. X#    the default grades for SVR4.0 are incompatible.
  416. X#
  417. X#    As a result of this incompatiblity, either HDB_UUCP must not
  418. X#    be defined with SVR4.0, or the message grades that smail
  419. X#    uses will have to be added to the file /etc/uucp/Grades.
  420. X#    The list of grades that smail will use is specified in the
  421. X#    grades variable (whose default value can be specified by
  422. X#    setting GRADES in this file).  Grades are specified by
  423. X#    providing a longer string in the Precedence: field.  The
  424. X#    grade letters for the default value of GRADES are:
  425. X#
  426. X#        9    - special-delivery
  427. X#        A    - air-mail
  428. X#        C    - first-class    (also the default message grade)
  429. X#        a    - bulk
  430. X#        n    - junk
  431. X#
  432. X#    To add the default letters, you might add the following lines
  433. X#    to /etc/uucp/Grades:
  434. X#
  435. X#        9    9    Any    User    Any
  436. X#        A    A    Any    User    Any
  437. X#        C    C    Any    User    Any
  438. X#        a    a    Any    User    Any
  439. X#        n    n    Any    User    Any
  440. X
  441. X#HAVE=HDB_UUCP                # have HoneyDanBer UUCP
  442. X#HAVE=NDBM                # have the new DBM functions
  443. X#HAVE=DBM                # have the old DBM functions
  444. X#HAVE=HDB_UUCP:NDBM            # new DBM and HoneyDanBer UUCP
  445. XHAVE=BIND
  446. X
  447. X# UUCP_ZONE - this host is within the UUCP zone
  448. X#
  449. X# optional (defaults to undefined)
  450. X#
  451. X# Smail supports both strictly compliant SMTP transfers, and a
  452. X# modification the the SMTP protocol for use within the UUCP zone.
  453. X# The modified protocol transmits sender and recipient addresses in
  454. X# accordance with the RFC976 specification, and provides behavior that
  455. X# is more likely to work with other mailers in the UUCP zone.
  456. X# Transferring mail using SMTP over private IP networks can work well
  457. X# within the UUCP zone, except for the fact that the SMTP
  458. X# specification doesn't work as well in the presence of generated
  459. X# UUCP-zone routes form path files.
  460. X#
  461. X# The built-in smail transport definitions include transport
  462. X# definitions that provide either behavior: inet_zone_smtp and
  463. X# uucp_zone_smtp.  The first provides conformant behavior and should
  464. X# be used when transferring mail to sites on the Internet.  The
  465. X# second, uucp_zone_smtp, provides the modified protocol.
  466. X#
  467. X# An additional builtin transport protocol, smtp, is defined as having
  468. X# the same behavior as inet_zone_smtp or uucp_zone_smtp, depending
  469. X# upon whether UUCP_ZONE is set.  To make the the basic smtp transport
  470. X# use the modified behavior for the UUCP zone, set UUCP_ZONE to true.
  471. X#
  472. X# In the presence of generated routes from paths files, the
  473. X# Internet-zone version of the SMTP transport will generate route-addr
  474. X# addresses.  The introduction of RFC1123 removes the requirement that
  475. X# route-addrs work as routes, preferring instead the use of the %
  476. X# operator for routing.  Intermixed % and ! operators, particularly in
  477. X# the presence of an @ operator (e.g., veritas!mitsu%tron@apple.com),
  478. X# are sufficiently ambiguous that it is undesirable to use with ! or %
  479. X# operators for routing when strict SMTP compliance is needed.  This
  480. X# is one of the motivations for introducing the modified UUCP-zone
  481. X# protocol.  However, generating route-addr addresses works well for
  482. X# transferring mail between nodes running Smail 3.1.
  483. X#
  484. X# NOTE: the UUCP_ZONE flag does not affect the batched SMTP transports
  485. X# that operate through UUCP.  The uusmtp and demand_uusmtp transports
  486. X# always operate with the modified UUCP-zone protocol.  Two additional
  487. X# transports, inet_uusmtp and inet_demand_uusmtp use compliant
  488. X# protocols.
  489. X
  490. X#UUCP_ZONE=true                    # this site is in the UUCP zone
  491. X#UUCP_ZONE=                    # this site is on the Internet
  492. X
  493. X
  494. X# HOSTNAMES - names for the local host
  495. X#
  496. X# optional
  497. X#
  498. X# The HOSTNAMES value is a colon-separated list of names your system.
  499. X# This does not need to include the name given by UUCP_NAME.  If
  500. X# HOSTNAMES is set, then the first name in the list will be used as the
  501. X# canonical name of your system.  That is, the name by which your
  502. X# machine can be uniquely named across all networks.
  503. X#
  504. X# Normally HOSTNAMES is not set.  In this case the HOSTNAMES value will
  505. X# be computed at run-time from the DOMAINS value and the system-dependently
  506. X# computed name of your system.
  507. X#
  508. X# If you are registered in a domain, you might consider seting HOSTNAMES
  509. X# to a list such as:   sitename.subdom.dom:sitename.dom:sitename.uucp
  510. X
  511. X#HOSTNAMES=kgbvax.ussr.comm:kgbvax.uucp        # example only
  512. X
  513. X
  514. X# DOMAINS - domains under which the local host resides
  515. X#
  516. X# optional   (except when HOSTNAMES is not set)
  517. X#
  518. X# If HOSTNAMES is not defined, then HOSTNAMES is computed by concatenating
  519. X# local host's actual name with each name in this colon-separated list of
  520. X# domain names.  This computation is done at run-time.
  521. X#
  522. X# Example: if DOMAINS="uts.amdahl.com:uucp", then the HOSTNAMES value
  523. X# for the site "amdahl" would become "amdahl.uts.amdahl.com:amdahl.uucp".
  524. X#
  525. X# NOTE: The uucp domain is not meaningful in any standard way, though
  526. X#    many sites treat this as implying any site that is registered
  527. X#    in the UUCP zone through the USENET maps.  Sites that really
  528. X#    wish to be able to receive mail from anywhere in the world
  529. X#    should get a registered domain.
  530. X
  531. XDOMAINS=ctd.comsat.com                # common
  532. X#DOMAINS=ussr.comm:uucp                # example only
  533. X
  534. X
  535. X# UUCP_NAME - name for the local host on the UUCP network
  536. X#
  537. X# optional
  538. X#
  539. X# This should be set to the name of the local host as known by the
  540. X# UUCP software.
  541. X#
  542. X# Normally, no value is given for this variable, in which case the
  543. X# value will be computed by smail at run-time from the actual name for
  544. X# local host, as computed in a system-dependent fashion.
  545. X
  546. X#UUCP_NAME=kgbvax                # example only
  547. X
  548. X
  549. X# VISIBLE_NAME - local host name used in outgoing addresses
  550. X#
  551. X# optional
  552. X#
  553. X# Some installations may wish to hide a group of machines under a common
  554. X# name.  For example, at Amdahl, we may wish to hide the machines on our
  555. X# ethernet under the domain "uts.amdahl.com".  If we set the value
  556. X# VISIBLE_NAME="uts.amdahl.com" on the machine "futatsu", then mail
  557. X# from "futatsu" sent as if it came from "user@uts.amdahl.com" rather than
  558. X# "user@futatsu.uts.amdahl.com".  Of course, the "uts.amdahl.com" gateways
  559. X# will need to forward mail to "user", however the fact that a user
  560. X# does not have check for mail on all machines on the network is useful.
  561. X#
  562. X# The VISIBLE_NAME value will not be recognized as a name for the local
  563. X# host unless it is also included in one of the other lists of names for
  564. X# the local host.
  565. X
  566. X#VISIBLE_NAME=kgbvax.uucp            # example only
  567. XVISIBLE_NAME=ctd.comsat.com
  568. X
  569. X# GATEWAY_NAMES - more names for the local host
  570. X#
  571. X# optional
  572. X#
  573. X# It is often important that hosts which are domain gateways recognize
  574. X# the domain names as alternate names for the local host.  These names
  575. X# should be defined in addition to those computed automatically from
  576. X# the actual name for the local host by putting them in GATEWAY_NAMES.
  577. X#
  578. X# This variable is a colon-separated list of names for the local host
  579. X# which is not computed from the actual name for the local host.
  580. X
  581. X#GATEWAY_NAMES=moscow.ussr.comm:ussr.comm:comm    # example only
  582. X
  583. X
  584. X# POSTMASTER - the default address for the mail administrator
  585. X#
  586. X# optional    (defaults to root)
  587. X#
  588. X# This address is used by smail as a last resort in trying to deliver
  589. X# to the address "postmaster".  Normally, "postmaster" is aliased to a
  590. X# responsible person, or persons through the alias file.  In the event
  591. X# that no alias file exists, or that "postmaster" was not found in
  592. X# that file or by any other directors, the default address will be
  593. X# used.
  594. X
  595. X#POSTMASTER=neal
  596. X
  597. X
  598. X# NOBODY - a user with few access capabilities
  599. X#
  600. X# optional
  601. X#
  602. X# The user named here will be used by smail whenever a user ID is
  603. X# desired that cannot do any more damange than any unpriveledged user
  604. X# on the system.  Under 4.3BSD and SunOS, this would be the user named
  605. X# "nobody".  Under other operating systems, it may be reasonable to
  606. X# create a "nobody" entry in the passwd file.  Some systems have a
  607. X# user such as "unknown" which will suffice.
  608. X#
  609. X# If this is not defined, then a default will be chosen.  This default
  610. X# is os-type dependent, and is commonly nobody for BSD- and sun-derived
  611. X# systems.
  612. X
  613. X#NOBODY=nobody
  614. X#NOBODY=unknown        # some sites have this in their passwd file
  615. X
  616. X
  617. X# TEST_BASE - directory where smail test files are kept
  618. X#
  619. X# optional  (special when defined to an empty string)
  620. X#
  621. X# When testing smail, it is convenient to put binaries and configuration
  622. X# files in an area separated from the actual installation areas.  The
  623. X# TEST_BASE directory defines this alternate area.  Smail will assume
  624. X# assume a fixed hierarchy below this directory, with a "bin" subdirectory
  625. X# containing the smail binary and utilities, a "lib" directory containing
  626. X# smail configuration files, and a "spool" directory containing smail
  627. X# spool files.
  628. X#
  629. X# If no TEST_BASE is defined, then this facility is turned off.  If a
  630. X# TEST_BASE is defined to be an empty string, then all programs will be
  631. X# used in the area where they are compiled, LIB_DIR will be set to the
  632. X# "lib" directory under the root of the smail source tree, and SPOOL_DIRS
  633. X# will be set to the "spool" directory under the root of the smail source
  634. X# tree.  In this case, a "make install" is not required.
  635. X#
  636. X# If a TEST_BASE is defined as a relative path (e.g. "."), then it is
  637. X# defined relative to the root of the smail source directory.
  638. X
  639. X#TEST_BASE=/usr/project/smail
  640. X#TEST_BASE=test
  641. X#TEST_BASE=                    # use progs in source area
  642. X
  643. X
  644. X# SMAIL_BIN_DIR - directory where copies of the smail binary are kept
  645. X#
  646. X# optional
  647. X#
  648. X# The Smail program comes in user callable names: smail, uupath,
  649. X# pathto, optto, and so on.  A copy of smail will be linked to files
  650. X# under SMAIL_BIN_DIR.  The SMAIL_BIN_DIR should be a directory
  651. X# that is commonly in users search path (i.e., $PATH).
  652. X
  653. XSMAIL_BIN_DIR=/usr/local/bin            # BSD local convention
  654. X#SMAIL_BIN_DIR=/usr/amdahl/bin            # convention for UTS/580
  655. X#SMAIL_BIN_DIR=/usr/local/bin            # yet another convention
  656. X#SMAIL_BIN_DIR=/usr/smail/bin            # I use this right now
  657. X
  658. X
  659. X# SMAIL_NAME - file where the primary working copy of smail is located
  660. X#
  661. X# optional
  662. X#
  663. X# Any program that needs to call smail, including smail itself will
  664. X# attempt to execute the program named by SMAIL_NAME.
  665. X#
  666. X# Often the primary working copy of smail is /usr/lib/sendmail.  This
  667. X# should be used for systems that used to run sendmail.  Programs such
  668. X# as Berkeley Mail, System V mailx or /bin/mail can be made to, or do
  669. X# call /usr/lib/sendmail for mailer activity.  It is common for public
  670. X# domain programs to expect a mailer to exist under this name, also.
  671. X#
  672. X# If SMAIL_NAME is not defined here, or is set to a null string, then
  673. X# $SMAIL_BIN_DIR/smail is used instead.  If this is the name that you
  674. X# want to use as the primary binary pathname, then do set SMAIL_NAME
  675. X# to the null string.  This will prevent the smail src/Makefile from
  676. X# installing it as $SMAIL_BIN_DIR/smail twice.
  677. X
  678. XSMAIL_NAME=/usr/lib/sendmail            # common convention
  679. X#SMAIL_NAME=                    # use smail in bin directory
  680. X
  681. X
  682. X# OTHER_SMAIL_NAMES - other names under which to install smail
  683. X#
  684. X# optional
  685. X#
  686. X# Many systems will wish to install smail as /bin/rmail to catch mail
  687. X# coming in over UUCP directly with smail.  To install under this
  688. X# name set OTHER_SMAIL_NAMES to /bin/rmail.  As implied by the name,
  689. X# other pathnames can be specified as well, if a system has other
  690. X# potential rendezvous points for mail.  This should be a colon or
  691. X# white-space separated list of full pathnames.
  692. X#
  693. X# Users of XENIX may wish to use smail as their execmail interface.
  694. X# To do this, add /usr/lib/mail/execmail to this list.
  695. X#
  696. X# This is assumed to be empty when TEST_DIR is defined.
  697. X#
  698. X# NOTE: A pathname CANNOT be in both SMAIL_NAME and OTHER_SMAIL_NAMES.
  699. X
  700. XOTHER_SMAIL_NAMES=/bin/rmail            # common
  701. X#OTHER_SMAIL_NAMES=/usr/lib/sendmail        # could use this rather
  702. X                        # than putting it into
  703. X                        # SMAIL_NAME
  704. X#OTHER_SMAIL_NAMES=/bin/rmail:/usr/lib/mail/execmail # for XENIX
  705. X
  706. X
  707. X# LIB_DIR - directory where various smail files are found
  708. X#
  709. X# required
  710. X#
  711. X# The LIB_DIR is where various static smail files reside, by default.
  712. X# Files which may reside under this directory are: the primary config
  713. X# file, the directors, routers and transports files, an aliases file,
  714. X# pathalias database, uuwho database, and the COPYING file.
  715. X#
  716. X# The common subdirectories under LIB_DIR are: "methods", where method
  717. X# files are by default found; "maps", where local pathalias files,
  718. X# mkmap configuration files and the getmap batch file are located;
  719. X# and "lists" where mailing lists are commonly located.
  720. X#
  721. X# It should be noted that none of these files, except for COPYING,
  722. X# is required by the smail binary as it is released.  See smail(5)
  723. X# and smail(8) for more details on this and related topics.
  724. X
  725. XLIB_DIR=/usr/local/lib/smail                # common convention
  726. X#LIB_DIR=/usr/local/lib/smail
  727. X#LIB_DIR=/usr/smail/lib                # I use this right now
  728. X
  729. X
  730. X# UTIL_BIN_DIR - directory where smail utilities are located
  731. X#
  732. X# required
  733. X#
  734. X# The smail system has a number of programs such as pathalias, mkline,
  735. X# mksort, mkdbm that users normally need not execute directly.  Such
  736. X# utilities will be placed under the UTIL_BIN_DIR directory.
  737. X#
  738. X# UTIL_BIN_DIR is often the same as LIB_DIR.
  739. X
  740. XUTIL_BIN_DIR=$LIB_DIR                # common, same as LIB_DIR
  741. X#UTIL_BIN_DIR=/usr/smail/util            # I use this right now
  742. X
  743. X
  744. X# NEWALIASES - alternate pathname for mkaliases program
  745. X#
  746. X# optional
  747. X#
  748. X# For compatibility with sendmail, mkaliases can be installed under
  749. X# a name such as /usr/ucb/newaliases, or /usr/lib/newaliases.  To setup
  750. X# smail to perform this installation, set NEWALIASES to the desired full
  751. X# pathname.  When testing, this is set to the empty string, signifying
  752. X# that mkaliases will be installed only under the name mkaliases.
  753. X
  754. X#NEWALIASES=$UTIL_BIN_DIR/newaliases
  755. X#NEWALIASES=/usr/local/bin/newaliases
  756. X#NEWALIASES=/usr/ucb/newaliases            # BSD location
  757. X#NEWALIASES=/usr/lib/newaliases            # UTS/580 location
  758. XNEWALIASES=/usr/bin/newaliases            # HPUX
  759. X
  760. X# SECOND_CONFIG_FILE - pathname of an alternate config file
  761. X#
  762. X# optional
  763. X#
  764. X# Smail allows one to have a second set of configuration files that can
  765. X# override both the compiled in and the optional primary config file.
  766. X# Normally, the path to this secondary configuration file is defined
  767. X# in the primary smail configuration file.  However the value
  768. X# SECOND_CONFIG_FILE can be the filename of the secondary (alternate)
  769. X# config file.  In the case where both this value, and where the
  770. X# LIB_DIR/config file specifies a "second_config_file" value, the
  771. X# LIB_DIR/config file takes presidence.
  772. X#
  773. X# A secondary configuration file is useful in an environment with
  774. X# distributed filesystems.  In such an environment, the regular config
  775. X# directory can be maintained centrally on a remotely mounted
  776. X# filesystem.  Individual machines, can then setup a secondary
  777. X# configuration file which overrides these centrally maintained files
  778. X# for specific purposes.
  779. X
  780. X# For example, in a network with one gateway to the outside world,
  781. X# all could share the same smail binaries and standard configuration.
  782. X# However the the gateway machine could have a secondary configuration
  783. X# file which so that the gateway's the smail setup has greater intelligence
  784. X# and thus act as a smart_user and smart_path host.
  785. X
  786. XSECOND_CONFIG_FILE=/local/smail/config            # common for non-NFS systems
  787. X#SECOND_CONFIG_FILE=/private/usr/lib/smail    # convention for NFS systems
  788. X
  789. X
  790. X# PATHS_FILE, PATHS_TYPE - location and type of the paths database
  791. X#
  792. X# optional
  793. X#
  794. X# If PATH_FILE begins with a '/', then it is the name of the optional
  795. X# pathalias database, otherwise it is assumed that PATH_FILE refers to
  796. X# a file under the LIB_DIR directory.
  797. X#
  798. X# For use with YP, it may be more convenient to use the "yp" type,
  799. X# rather than "aliasyp", because this way a paths file can be maintained
  800. X# in a format compatible with other YP maps.
  801. X#
  802. X# If PATHS_FILE is left undefined, no paths file is defined in the
  803. X# preloaded smail configuration.
  804. X
  805. XPATHS_FILE=paths                # for file under LIB_DIR
  806. X#PATHS_FILE=mail.paths                # YP (NIS)
  807. X
  808. X#PATHS_TYPE=dbm                    # indexed
  809. X#PATHS_TYPE=bsearch                # shorted
  810. XPATHS_TYPE=lsearch                # linear search
  811. X#PATHS_TYPE=yp                    # YP (NIS)
  812. X
  813. X# ALIASES_FILE, ALIASES_TYPE - location and type of the aliases database
  814. X#
  815. X# optional
  816. X#
  817. X# If ALIASES_FILE begins with a '/', then it is the full pathname of the
  818. X# optional aliases database, otherwise it is assumed that ALIASES_FILE
  819. X# refers to a file under the LIB_DIR directory.
  820. X#
  821. X# For use with YP, it may be more convenient to use the "yp" type,
  822. X# rather than "aliasyp", because this way an alias file can be maintained
  823. X# in a format compatible with other YP maps.
  824. X#
  825. X# NOTE:     If ALIASES_TYPE is specified as bsearch, then the suffix .sort
  826. X#     will be appended to the filename given in ALIASES_FILE.  The
  827. X#     mkaliases command will then treat a file without that suffix
  828. X#     as the unsorted source file for the database.
  829. X#
  830. X# If ALIASES_FILE is left undefined, no aliases file is defined in the
  831. X# preloaded smail configuration.
  832. X#
  833. X# NOTE FOR AIX SYSTEMS:
  834. X#    I have received reports that AIX3.1 requires use of "yp",
  835. X#    rather than "aliasyp".  If this is true, I don't quite see
  836. X#    how Suns and RS/6000s running sendmail can share the same
  837. X#    YP maps.  In any case, use whatever works in your
  838. X#    environment.
  839. X
  840. XALIASES_FILE=/usr/lib/aliases            # compatible with sendmail
  841. X#ALIASES_FILE=aliases                # for file under LIB_DIR
  842. X#ALIASES_FILE=mail.aliases            # YP (NIS)
  843. X#ALIASES_FILE=NetInfo                # for NeXT NetInfo aliases
  844. X
  845. XALIASES_TYPE=dbm                # compatible with sendmail
  846. X#ALIASES_TYPE=lsearch                # for sites without dbm(3x)
  847. X#ALIASES_TYPE=bsearch                # for sorted files, faster
  848. X#ALIASES_TYPE=aliasyp                # YP (NIS)
  849. X#ALIASES_TYPE=nialias                # for NeXT NetInfo aliases
  850. X
  851. X
  852. X# ALIASES_REMOVE_SENDER - remove the sender (by default) from alias expansions
  853. X# LISTS_REMOVE_SENDER - remove the sender (by default) from list expansions
  854. X#
  855. X# optional
  856. X#
  857. X# For compatibility with sendmail, smail can be configured to remove the
  858. X# sender of a message (if the sender is a local user) from alias
  859. X# expansions.  Users can disable this feature by invoking smail with
  860. X# the -m flag, typically by setting "metoo" in their .mailrc file.
  861. X#
  862. X# However, many people find this behavior confusing and some administrators
  863. X# would prefer to disable this "sender removal" feature altogether.
  864. X# Also, it has recently been noticed that smail's sender removal
  865. X# behavior is not quite sendmail-compatible with regards to nested
  866. X# aliases and have been surprised by the results of aliasing.
  867. X#
  868. X# Smail supports two forms of aliasing to which sender removal can be
  869. X# applied: the regular aliases file (defined by ALIASES_FILE above), and
  870. X# a directory of mailing lists (typically /usr/lib/smail/lists) where
  871. X# all files in that directory define a list.  A site that has converted
  872. X# entirely over to smail3 can use alias files strictly for username
  873. X# aliasing, while using the lists directory for real mailing lists.  With
  874. X# such a usage model, sender removal should be disabled for the alias
  875. X# file, but can be enabled (depending upon preference) for the lists
  876. X# directory.
  877. X#
  878. X# To enable sender removal, set ALIASES_REMOVE_SENDER or LISTS_REMOVE_SENDER
  879. X# (depending upon preference) to "yes".  If these values are empty, or are
  880. X# note defined, then sender removal is disabled.
  881. X#
  882. X# This behavior can be configured using the run-time directors configuration
  883. X# file by setting the "sender_okay" flag, to indicate that sender removal
  884. X# should NOT be done.
  885. X
  886. X#ALIASES_REMOVE_SENDER=yes
  887. XLISTS_REMOVE_SENDER=yes
  888. X
  889. X
  890. X# RETRY_INTERVAL - minimum per-host retry interval for TCP/IP delivery
  891. X# RETRY_DURATION - maximum time to keep messages in the input queue
  892. X#
  893. X# optional (RETRY_INTERVAL defaults to 10 minutes, RETRY_DURATION to 5 days)
  894. X#
  895. X# Messages to hosts on TCP/IP networks may block for quite some time, if
  896. X# the recipient host is down, or some intervening network is inoperative.
  897. X# Connections to such unreachable or downed hosts can block for quite
  898. X# some time until a timeout indicates indicates that the condition
  899. X# exists.
  900. X#
  901. X# To prevent the mail queue from blocking repeatedly on the same set of
  902. X# unreachable hosts, smail keeps a directory of files that store the
  903. X# last connection failure encountered for each host.  Message deliveries
  904. X# to a host that has failed recently will be deferred until a certain
  905. X# period of time (the retry interval) has elapsed, preventing queue runs
  906. X# from hanging again immediately.
  907. X#
  908. X# If a host is down for an extended period of time (such as forever),
  909. X# then sending a message to the message sender is preferable to keeping
  910. X# the message in our mail queue.  If message deliveries to a particular
  911. X# host have not succeeded within a particular length of time (the retry
  912. X# duration), smail considers delivery to have failed, and sends a bounce
  913. X# notification to the sender or address owner.
  914. X#
  915. X# Retry durations and intervals for specific hosts or domains can be
  916. X# defined by creating a retry file in $LIB_DIR and adding lines of
  917. X# the form:
  918. X#
  919. X#    hostname    duration/interval
  920. X#    *.domain    duration/interval
  921. X#
  922. X# A default can be added at the end of this file with:
  923. X#
  924. X#    *        duration/interval
  925. X#
  926. X# Alternately, a default can be specified by setting RETRY_INTERVAL
  927. X# and RETRY_DURATION in this file.  Both values are in seconds.  To
  928. X# help in calculating, 1 day is 86400 seconds.  You can actually
  929. X# use C constant expressions here, if you want to use addition or
  930. X# multiplication.
  931. X#
  932. X# These values can also be set using the retry_interval and
  933. X# retry_duration variables in $LIB_DIR/config.  In the config file
  934. X# and in the retry file, times can be specified with suffixes, such
  935. X# as 'm', 'h', or 'd' to indicate minutes, hours, or days.  For
  936. X# example:
  937. X#
  938. X#    *.uu.net    3d/10m
  939. X
  940. XRETRY_INTERVAL=600        # 10 minutes
  941. X#RETRY_INTERVAL='20*60'        # 20 minutes
  942. XRETRY_DURATION='86400*5'    # 5 days
  943. X#RETRY_DURATION='86400*14'    # 2 weeks
  944. X
  945. X
  946. X# UUCP_SYSTEM_FILE - path to UUCP file containing remote systems
  947. X#
  948. X# optional
  949. X#
  950. X# The normal smail configuration defines a router that scans the
  951. X# output of the /usr/bin/uuname command for neighboring UUCP sites.
  952. X# When smail is running as a daemon, it can cache the output of uuname
  953. X# so that the uuname command need not be executed for each mail
  954. X# message.  In order to be able to detect when the output of uuname
  955. X# will change, smail daemons will stat the UUCP configuration file
  956. X# which contains the names of neighboring hosts.  This EDITME variable
  957. X# defines the full pathname to this file.  If this variable is not
  958. X# defined, then the output of the uuname will not be cached.
  959. X#
  960. X# NOTE:    Many OS files specify the correct file for this, though some
  961. X#    don't.  Also, if you add HoneyDanBer UUCP to a system that
  962. X#    does not normally have it, then you will need to set this.
  963. X
  964. X#UUCP_SYSTEM_FILE=/usr/lib/uucp/L.sys        # use this for normal UUCP
  965. X#UUCP_SYSTEM_FILE=/usr/lib/uucp/Systems        # use this for HoneyDanBer UUCP
  966. X
  967. X
  968. X# SPOOL_DIRS - smail spooling directories
  969. X#
  970. X# required
  971. X#
  972. X# Smail can use one or more spooling directories, where spool directories
  973. X# other than the first are used if earlier spool directories were
  974. X# inaccessible or were on file systems which filled up.  The list of spool
  975. X# directories should be colon-separated and may contain only one spool
  976. X# directory if desired.
  977. X
  978. XSPOOL_DIRS=/usr/spool/smail            # common
  979. X#SPOOL_DIRS=/usr/spool/smail:/usr2/spool/smail    # use of alternate filesystem
  980. X#SPOOL_DIRS=/usr/smail/spool            # I use this right now
  981. X
  982. X
  983. X# LOG_DIR - smail logging directory
  984. X#
  985. X# optional (defaults to $SPOOL_DIR/log)
  986. X#
  987. X# Smail creates two log files in this directory: logfile and paniclog.
  988. X# The first is a file that logs all incoming messages and deliveries,
  989. X# plus many errors.  The second file (paniclog) logs important system
  990. X# errors that smail can manage to write into the log file.
  991. X
  992. X#LOG_DIR=/usr/spool/smail/log            # common
  993. X#LOG_DIR=/usr/smail/log                # I use this right now
  994. X
  995. X
  996. X# UNSHAR_MAP_DIR - where unshared USENET map files are to be placed
  997. X#
  998. X# optional
  999. X#
  1000. X# The getmap utility will read a list of files on the file
  1001. X# LIB_DIR/map/batch, and using unsharmap unshar these maps into the
  1002. X# UNSHAR_MAP_DIR directory.
  1003. X#
  1004. X# A common way that maps are distributed is through the USENET news group
  1005. X# "comp.mail.maps".  A sys file line of:
  1006. X#
  1007. X#    usenet-maps:comp.mail.maps,world:F:<UNSHAR_MAP_DIR>/work/batch
  1008. X#
  1009. X# will add names into the UNSHAR_MAP_DIR/work/batch file for getmap to
  1010. X# process.
  1011. X#
  1012. X# If UNSHAR_MAP_DIR is not defined, then the getmap and uuwho utilities
  1013. X# will not function.
  1014. X
  1015. XUNSHAR_MAP_DIR=/usr/spool/uumaps
  1016. X
  1017. X
  1018. X# NEWS_SPOOL_DIR - where news articles are stored
  1019. X#
  1020. X# optional (defaults to /usr/spool/news)
  1021. X#
  1022. X# C News stores pathnames in the batch file that are relative to
  1023. X# the top-level of the news article directory hierarchy.  Smail needs
  1024. X# to know the name of this directory in order to be able to extract
  1025. X# the news articles from comp.mail.maps.
  1026. X
  1027. X#NEWS_SPOOL_DIR=/usr/spool/news
  1028. X#NEWS_SPOOL_DIR=/var/spool/news
  1029. X
  1030. X
  1031. X# UUWHO_FILE - file used to store the uuwho file
  1032. X#
  1033. X# optional (defaults to $LIB_DIR/uuwho)
  1034. X#
  1035. X# This specified the file used to store the host database generated by
  1036. X# and used by the uuwho command.  If the uuwho database is stored in a
  1037. X# DBM file, then UUWHO_FILE is the file prefix before adding the .pag
  1038. X# and .dir suffixes to form the actual files.
  1039. X#
  1040. X# If UUWHO_FILE does not begin with /, then the name is relative to
  1041. X# the $LIB_DIR directory.
  1042. X
  1043. X#UUWHO_FILE=$UNSHAR_MAP_DIR/uuwho    # to store database with the map files
  1044. X
  1045. X
  1046. X# UUWHO_USE_DBM - configure the uuwho command to use the DBM library
  1047. X#
  1048. X# optional
  1049. X#
  1050. X# If you would like the uuwho utility to use the DBM library, set
  1051. X# UUWHO_USE_DBM to true.  If this is not set, then the uuwho utility
  1052. X# will use a sorted database.  Earlier versions of the uuwho utility
  1053. X# worked only with the DBM library.
  1054. X#
  1055. X# Not using DBM does not result in any real measurable speed-up, since
  1056. X# binary searches of even large databases happen fast enough to
  1057. X# prevent users from noticing.  However, generation of the DBM uuwho
  1058. X# database can take significantly longer.  The uuwho utility creates
  1059. X# sorted databases by calling the sort utility, which is usually quite
  1060. X# fast.
  1061. X
  1062. X#UUWHO_USE_DBM=true                # use DBM
  1063. X#UUWHO_USE_DBM=                    # default, don't use DBM
  1064. X
  1065. X
  1066. X# TMP_DIR - secure temp directory used by smail utilities
  1067. X#
  1068. X# optional (defaults to /tmp)
  1069. X#
  1070. X# Some smail utilities use TMP_DIR to define a directory in which
  1071. X# their temporary files can be created.  Utilities that use this
  1072. X# directory are those that wish to use a secure temporary area.
  1073. X#
  1074. X# The only smail utilities that need to use TMP_DIR are utilities that
  1075. X# should be run as root, or as some other user with appropriate privledges.  
  1076. X# It is therefore recommended that TMP_DIR not be globally writable.  
  1077. X
  1078. X#TMP_DIR=$UNSHAR_MAP_DIR/tmp            # common for unsecure /tmp
  1079. X#TMP_DIR=/usr/tmp                # if /usr/tmp is sticky
  1080. X#TMP_DIR=$LIB_DIR/tmp
  1081. X
  1082. X
  1083. X# SECURE_PATH - path for smail utilities
  1084. X#
  1085. X# optional (defaults to system-specific path or /bin:/usr/bin)
  1086. X#
  1087. X# The smail utilities often set their PATH to begin with the SECURE_PATH.
  1088. X# The SECURE_PATH should be a path of directories where standard commands
  1089. X# are located.  These directories and commands should not be writeable by
  1090. X# normal users.  A common directory for smail utilities to append to
  1091. X# SECURE_PATH is UTIL_BIN_DIR.
  1092. X
  1093. X#SECURE_PATH=/bin:/usr/bin:/usr/ucb        # common for BSD systems
  1094. X#SECURE_PATH=/bin:/usr/bin:/usr/amdahl/bin    # common for UTS/580 systems
  1095. X#SECURE_PATH=/bin:/usr/bin            # common for System V system
  1096. X
  1097. X
  1098. X# MAN1 - where smail user command man pages are to be installed
  1099. X# MAN5 - where smail file format man pages are to be installed
  1100. X# MAN8 - where smail administrator man pages should be installed
  1101. X# MAN1_EXT - file extension for user command man pages
  1102. X# MAN5_EXT - file extension for file format man pages
  1103. X# MAN8_EXT - file extension for adminstrator man pages
  1104. X#
  1105. X# optional
  1106. X#
  1107. X# The man page for "foo.an" in the smail man/man5 source directory
  1108. X# will be installed in MAN5/foo.MAN5_EXT, if MAN5 is defined.
  1109. X#
  1110. X# For some reason, BSD and System V differ on where file format man
  1111. X# pages are kept, hence the unusual values of MAN5 for System V.
  1112. X
  1113. X#MAN1=/usr/man/man1                # common for BSD systems
  1114. X#MAN1=/usr/man/u_man/man1            # common for System V systems
  1115. XMAN1=/usr/local/man/man1            # common for local man pages
  1116. XMAN1_EXT=1                    # common
  1117. X
  1118. X#MAN5=/usr/man/man5                # common for BSD systems
  1119. X#MAN5=/usr/man/a_man/man4            # common for System V systems
  1120. XMAN5=/usr/local/man/man5            # common for local man pages
  1121. X#MAN5=/usr/local/man/man4            # common for local man pages
  1122. XMAN5_EXT=5                    # common for BSD systems
  1123. X#MAN5_EXT=4                    # common for System V systems
  1124. X
  1125. X#MAN8=/usr/man/man8                # common for BSD systems
  1126. X#MAN8=/usr/man/a_man/man1            # common for System V systems
  1127. XMAN8=/usr/local/man/man8            # common for local man pages
  1128. X#MAN8=/usr/local/man/man1            # for Sys V local man pages
  1129. XMAN8_EXT=8                    # common
  1130. X#MAN8_EXT=1m                    # system V suffix
  1131. X
  1132. X
  1133. X# COMPRESS - file compression
  1134. X#
  1135. X# optional (default is system dependent or uses cat)
  1136. X#
  1137. X# The savelog utility can save space by compressing old log files.
  1138. X# Normally when a file is compressed, the suffix is added to the
  1139. X# filename.
  1140. X#
  1141. X# The COMPRESS symbol is the name of a program such that:
  1142. X#
  1143. X#        $COMPRESS $COMP_FLAG filename ...
  1144. X#
  1145. X# the file: filename is replaced by: filename$DOT_Z
  1146. X# regardless of the size of filename.  The command:
  1147. X#
  1148. X#        $UNCOMPRESS filename$DOT_Z
  1149. X#
  1150. X# will replace filename$DOT_Z with the original filename.
  1151. X# The command:
  1152. X#        $ZCAT filename$DOT_Z
  1153. X#
  1154. X# will read the compressed file: filename$DOT_Z and write the
  1155. X# plain text to standard output while leaving the file compressed.
  1156. X
  1157. XCOMPRESS=compress                # common
  1158. XCOMP_FLAG="-f"
  1159. XUNCOMPRESS=uncompress
  1160. XZCAT=zcat
  1161. XDOT_Z=".Z"
  1162. X
  1163. X#COMPRESS=pack                    # System V standard
  1164. X#COMP_FLAG="-f"
  1165. X#UNCOMPRESS=unpack
  1166. X#ZCAT=pcat
  1167. X#DOT_Z=".z"
  1168. X
  1169. X#COMPRESS=true                    # if no compress is used
  1170. X#COMP_FLAG=""
  1171. X#UNCOMPRESS=true
  1172. X#ZCAT=cat
  1173. X#DOT_Z=""
  1174. X
  1175. X
  1176. X# MISC_C_DEFINES - miscellaneous #defines for C programs
  1177. X#
  1178. X# optional
  1179. X#
  1180. X# The value of MISC_C_DEFINES is included directly into the file defs.h
  1181. X# in each source directory.  It is useful as a central place for
  1182. X# miscellaneous #defines not otherwise setable above.  In particular,
  1183. X# it is useful for overriding other more values given in the file
  1184. X# src/config.h.  It was felt that it was appropriate to keep the
  1185. X# EDITME file fairly small, with only a reasonable subset of the
  1186. X# configurable aspects of smail being explicitly described.  As a
  1187. X# result, there may be some other things in config.h that you may
  1188. X# wish to change.  Use #define's here to accomplish this.
  1189. X#
  1190. X# A suitable collection of #undef's and #define's here can also
  1191. X# change the behavior defined in the file under conf/os or conf/arch
  1192. X# for your operating system and architecture.  However, use of
  1193. X# MISC_C_DEFINES for this is discouraged.
  1194. X#
  1195. X# As with /bin/sh scripts, a logical line beginning with a : causes
  1196. X# that line to be parsed but ignored.  If it were simply commented out
  1197. X# then the second line would be processed.
  1198. X
  1199. X: MISC_C_DEFINES='            /* example only */
  1200. X#undef ALIASES_FILE
  1201. X#define NO_ALIASES_FILE            /* disable aliases file */
  1202. X#define REQUIRE_CONFIGS TRUE        /* dont allow optional config files */
  1203. X#define DIRECTOR_FILE NULL        /* no director file */
  1204. X#define TRANSPORT_FILE NULL        /* no transport file */
  1205. X#undef LOCAL_MAIL_FILE            /* see src/config.h */
  1206. X#define LOCAL_MAIL_FILE "/usr/mail/${lc:user}"
  1207. X'
  1208. X
  1209. XMISC_C_DEFINES='
  1210. X#define HAVE_SETEUID
  1211. X#define seteuid(uid) setresuid(-1, (uid), -1)
  1212. X#define setegid(uid) setresgid(-1, (uid), -1)
  1213. X'
  1214. X
  1215. X# MISC_SH_DEFINES - miscellaneous script to include in defs.sh
  1216. X#
  1217. X# optional
  1218. X#
  1219. X# The value of MISC_SH_DEFINES is included directly into the file
  1220. X# defs.sh, in each source directory.  It is a useful place to store
  1221. X# script lines to override values set by the mkdefs.sh shell script
  1222. X# or in a conf/os or conf/arch file.
  1223. X#
  1224. X# As with /bin/sh scripts, a logical line beginning with a : causes
  1225. X# that line to be parsed but ignored.  If it were simply commented out
  1226. X# then the second line would be processed.
  1227. X
  1228. X: MISC_SH_DEFINES='            # example only
  1229. XLIST_FILENAME="~operator/mail/lists/${lc:user}"    # somewhat silly example
  1230. X'
  1231. X
  1232. X
  1233. X# MISC_SED_DEFINES - miscellaneous lines to include in defs.sed
  1234. X#
  1235. X# optional
  1236. X#
  1237. X# The value of MISC_SED_DEFINES is included directly into the file
  1238. X# defs.sed, in each source directory.  It is a useful place to store
  1239. X# sed lines to override lines set by the mkdefs.sh shell script from
  1240. X# information in a conf/os or conf/arch file.
  1241. X#
  1242. X# As with /bin/sh scripts, a logical line beginning with a : causes
  1243. X# that line to be parsed but ignored.  If it were simply commented out
  1244. X# then the second line would be processed.
  1245. X
  1246. X# We can't readily think of good examples for this one.
  1247. X: MISC_SED_DEFINES=''
  1248. END_OF_FILE
  1249. if test 47337 -ne `wc -c <'smail-3.1.26/conf/EDITME'`; then
  1250.     echo shar: \"'smail-3.1.26/conf/EDITME'\" unpacked with wrong size!
  1251. fi
  1252. # end of 'smail-3.1.26/conf/EDITME'
  1253. fi
  1254. if test -f 'smail-3.1.26/conf/os/hp-ux8.0' -a "${1}" != "-c" ; then 
  1255.   echo shar: Will not clobber existing file \"'smail-3.1.26/conf/os/hp-ux8.0'\"
  1256. else
  1257. echo shar: Extracting \"'smail-3.1.26/conf/os/hp-ux8.0'\" \(1405 characters\)
  1258. sed "s/^X//" >'smail-3.1.26/conf/os/hp-ux8.0' <<'END_OF_FILE'
  1259. X# @(#)conf/os/hp-ux8.0    1.4 8/8/92 18:42:30
  1260. X#
  1261. X# hp-ux8.0 - define characteristics of Hewlet Packard's HP-UX version 8.0
  1262. X#
  1263. X# contributed by Chip Salzenberg <chip@tct.com>
  1264. X
  1265. X. $ROOT/conf/os/sys5.3        # this is on an System V release 3 base
  1266. X
  1267. X# OSNAMES - Names defining this operating system
  1268. XOSNAMES="UNIX_HPUX8_0:UNIX_HPUX8:UNIX_HPUX:$OSNAMES:POSIX_OS"
  1269. X
  1270. X# CC - the C compiler to use for compiling smail
  1271. XCC=cc
  1272. X
  1273. X# CFLAGS - flags that should be passed to the C compiler
  1274. XCFLAGS="-Aa -D_HPUX_SOURCE"
  1275. X
  1276. X# OSLIBS - name any object libraries containing routines we will need
  1277. XOSLIBS="-lndbm $OSLIBS"        # use this to get ndbm
  1278. X
  1279. X# HAVE - what features should be used with this operating system
  1280. XHAVE=BSTRING:SYS5_STRLIB:READDIR:VFPRINTF:GETOPT:DUP2:ULIMIT
  1281. XHAVE=$HAVE:MKDIR:SETGROUPS:NDBM:YP:GETHOSTNAME:BSD_NETWORKING
  1282. X
  1283. X# MISC_DEFINES - miscellaneous definitions
  1284. XMISC_DEFINES=INET_NTOA_USE_STRUCT
  1285. X
  1286. XLOCKING_PROTOCOL="\
  1287. X#include <unistd.h>
  1288. X#define LOCK_REQUIRES_WRITE
  1289. X#define lock_fd(fd)        (lockf((fd), F_TLOCK, 0L) < 0? FAIL: SUCCEED)
  1290. X#define lock_fd_wait(fd)    (lockf((fd), F_LOCK, 0L) < 0? FAIL: SUCCEED)
  1291. X#define unlock_fd(fd)        ((void) lockf((fd), F_ULOCK, 0L))
  1292. X#define unlock_fd_wait(fd)    ((void) lockf((fd), F_ULOCK, 0L))
  1293. X#define USE_FCNTL_RD_LOCK
  1294. X#define lock_fd_rd_wait(fd)    (fcntl_rd_lock(fd))
  1295. Xextern int fcntl_rd_lock();
  1296. X"
  1297. X
  1298. X# DRIVER_CONFIGURATION - configuration file describing smail drivers
  1299. XDRIVER_CONFIGURATION=bsd-network
  1300. END_OF_FILE
  1301. if test 1405 -ne `wc -c <'smail-3.1.26/conf/os/hp-ux8.0'`; then
  1302.     echo shar: \"'smail-3.1.26/conf/os/hp-ux8.0'\" unpacked with wrong size!
  1303. fi
  1304. # end of 'smail-3.1.26/conf/os/hp-ux8.0'
  1305. fi
  1306. echo shar: End of archive 1 \(of 1\).
  1307. cp /dev/null ark1isdone
  1308. MISSING=""
  1309. for I in 1 ; do
  1310.     if test ! -f ark${I}isdone ; then
  1311.     MISSING="${MISSING} ${I}"
  1312.     fi
  1313. done
  1314. if test "${MISSING}" = "" ; then
  1315.     echo You have the archive.
  1316.     rm -f ark[1-9]isdone
  1317. else
  1318.     echo You still need to unpack the following archives:
  1319.     echo "        " ${MISSING}
  1320. fi
  1321. ##  End of shell archive.
  1322. exit 0
  1323.