xref: /csrg-svn/usr.sbin/sendmail/src/READ_ME (revision 60565)
135062Sbostic# Copyright (c) 1983 Eric P. Allman
248582Sbostic# Copyright (c) 1988 The Regents of the University of California.
333728Sbostic# All rights reserved.
433728Sbostic#
548582Sbostic# %sccs.include.redist.sh%
633728Sbostic#
7*60565Seric#	@(#)READ_ME	6.7 (Berkeley) 05/28/93
833728Sbostic#
948582Sbostic
109881SericThis directory contains the source files for sendmail.
115369Seric
12*60565SericFor detailed instructions, please read the document ../doc/op.me:
135369Seric
14*60565Seric	eqn ../doc/op.me | pic | ditroff -me
155369Seric
1657418SericThe Makefile is for the new Berkeley make, available from ftp.uu.net
1757418Sericin the directory /systems/unix/bsd-sources/usr.bin/make.  There is
1857418Sericalso a Makefile.dist which is much less clever, but works on the old
1957418Serictraditional make.  You can use this using:
2057418Seric
2157418Seric	make -f Makefile.dist
2257418Seric
23*60565SericThere are a couple of other Makefiles for other systems -- these are
24*60565Sericthe ones that I use, and I don't guarantee that they will work in
25*60565Sericyour environment.  They are provided for information only.
2657943Seric
27*60565SericWhereever possible, I try to make sendmail pull in the correct
28*60565Sericcompilation options based on automatically defined symbols.  Some
29*60565Sericmachines don't seem to have useful symbols availble, requiring
30*60565Sericthe following compilation flags in the Makefile:
31*60565Seric
32*60565SericSOLARIS		Define this if you are running Solaris 2.0 or higher.
33*60565SericNeXT		Define this if you are on a NeXT box.
34*60565Seric_AIX3		Define this if you are IBM AIX 3.x.
35*60565Seric
36*60565SericOther compilation flags that you may need to tweak in order to get
37*60565Sericit to compile and link properly include:
38*60565Seric
39*60565SericUNSETENV	Define this if your system library does NOT include the
40*60565Seric		"unsetenv" subroutine.
41*60565SericSYSTEM5		Adjust for System V.
42*60565SericLOCKF		Set this if you do not have the flock system call -- it
43*60565Seric		will revert to System V file locking.  There are some
44*60565Seric		semantic gotchas, so flock is preferred.  Implied by
45*60565Seric		SYSTEM5.
46*60565SericSYS5TZ		Use System V-style time zones.  If not set, the TZ
47*60565Seric		environment variable is ignored.  Implied by SYSTEM5.
48*60565SericHASUNAME	Set if you have the "uname" system call.  Implied by
49*60565Seric		SYSTEM5.
50*60565SericHASSTATFS	Define this if you have the statfs(2) system call.
51*60565SericHASUSTAT	Define this if you have the ustat(2) system call.
52*60565SericHASSETSID	Define this if you have the setsid(2) system call.  This
53*60565Seric		is implied if your system appears to be POSIX compliant.
54*60565SericHASINITGROUPS	Define this if you have the initgroups(3) routine.
55*60565Seric
56*60565SericCompilation flags that add support for special features include:
57*60565Seric
58*60565SericNDBM		Include support for "new" DBM library for aliases and maps.
59*60565SericNEWDB		Include support for Berkeley "db" package (hash & btree)
60*60565Seric		for aliases and maps.
61*60565SericNIS		Define this to get NIS (YP) support for aliases and maps.
62*60565SericYPCOMPAT	Define this to force building of DBM versions of alias
63*60565Seric		files even if you have NEWDB defined; this will only
64*60565Seric		occur on NIS master machines.  It is independent of NIS.
65*60565SericUSERDB		Include support for the User Information Database.  Implied
66*60565Seric		by NEWDB.
67*60565SericIDENTPROTO	Define this to get IDENT (RFC 1413) protocol support.
68*60565Seric		This is assumed unless you are running on Ultrix or
69*60565Seric		HP-UX, both of which have a problem in the UDP
70*60565Seric		implementation.
71*60565SericMIME		Include support for MIME-encapsulated error messages.
72*60565SericFROZENCONFIG	Define this to get support for frozen configuration
73*60565Seric		files.  At this point this is NOT recommended.
74*60565SericLOG		Set this to get syslog(3) support.  Defined by default
75*60565Seric		in conf.h.
76*60565SericNETINET		Set this to get TCP/IP support.  Defined by default
77*60565Seric		in conf.h
78*60565SericNETISO		Define this to get ISO networking support.
79*60565SericSMTP		Define this to get the SMTP code.  Implied by NETINET
80*60565Seric		or NETISO.
81*60565SericNAMED_BIND	Define this to get DNS (name daemon) support, including
82*60565Seric		MX support.  The specs you must use this if you run
83*60565Seric		SMTP.  Defined by default in conf.h.
84*60565SericQUEUE		Define this to get queueing code.  Implied by NETINET
85*60565Seric		or NETISO; required by SMTP.
86*60565SericDAEMON		Define this to get general network support.  Implied by
87*60565Seric		NETINET or NETISO.
88*60565SericMATCHGECOS	Permit fuzzy matching of user names against the full
89*60565Seric		name (GECOS) field in the /etc/passwd file.  This should
90*60565Seric		probably be on, since you can disable it from the config
91*60565Seric		file if you want to.
92*60565SericSETPROCTITLE	Try to set the string printed by "ps" to something
93*60565Seric		informative about what sendmail is doing.
94*60565Seric
95*60565SericIf you are compiling on SunOS and want to use frozen configuration
96*60565Sericfiles, you must use -Bstatic -- if you do not, frozen configuration
97*60565Sericfiles fail in bizarre ways and you will open up several security holes.
98*60565Seric
9957977SericIf you are compiling on OSF/1 (DEC Alpha), you must use -lmld.
10057977Seric
10158709SericIf you use both -DNDBM and -DNEWDB, you must delete the module ndbm.o
10260172Sericfrom libdb.a and delete the file "ndbm.h" from the files that get
10360172Sericinstalled (that is, use the OLD ndbm.h, not the new ndbm.h).  This
10460172Sericcompatibility module maps ndbm calls into DB calls, and breaks things
10560172Sericrather badly.
10657943Seric
10758709SericYou probably want to look over the compilation options in conf.h
10858709Sericbefore you compile.  These are intended to be per-site information.
10958709Seric
1109881SericThe following list describes the files in this directory:
1115369Seric
11257418SericMakefile	The makefile used here; this version only works with
11357418Seric		the new Berkeley make.
11457418SericMakefile.dist	A trimmed down version of the makefile that works with
11557418Seric		the old make.
1165369SericREAD_ME		This file.
117*60565SericTRACEFLAGS	My own personal list of the trace flags -- not guaranteed
118*60565Seric		to be particularly up to date.
1195369Sericalias.c		Does name aliasing in all forms.
1209881Sericarpadate.c	A subroutine which creates ARPANET standard dates.
1219881Sericclock.c		Routines to implement real-time oriented functions
1229881Seric		in sendmail -- e.g., timeouts.
1235369Sericcollect.c	The routine that actually reads the mail into a temp
1245369Seric		file.  It also does a certain amount of parsing of
1255369Seric		the header, etc.
1265369Sericconf.c		The configuration file.  This contains information
1275369Seric		that is presumed to be quite static and non-
1285369Seric		controversial, or code compiled in for efficiency
1295369Seric		reasons.  Most of the configuration is in sendmail.cf.
1309881Sericconf.h		Configuration that must be known everywhere.
1315369Sericconvtime.c	A routine to sanely process times.
1329881Sericdaemon.c	Routines to implement daemon mode.  This version is
1339881Seric		specifically for Berkeley 4.1 IPC.
1345369Sericdeliver.c	Routines to deliver mail.
135*60565Sericdomain.c	Routines that interface with DNS (the Domain Name
136*60565Seric		System).
1375369Sericerr.c		Routines to print error messages.
1389881Sericenvelope.c	Routines to manipulate the envelope structure.
1395369Sericheaders.c	Routines to process message headers.
1405369Sericmacro.c		The macro expander.  This is used internally to
1415369Seric		insert information from the configuration file.
1425369Sericmain.c		The main routine to sendmail.  This file also
1435369Seric		contains some miscellaneous routines.
144*60565Sericmap.c		Support for database maps.
145*60565Sericmci.c		Routines that handle mail connection information caching.
1469881Sericparseaddr.c	The routines which do address parsing.
1475369Sericqueue.c		Routines to implement message queueing.
1485369Sericreadcf.c	The routine that reads the configuration file and
1495369Seric		translates it to internal form.
1509881Sericrecipient.c	Routines that manipulate the recipient list.
1515369Sericsavemail.c	Routines which save the letter on processing errors.
1525369Sericsendmail.h	Main header file for sendmail.
1535369Sericsrvrsmtp.c	Routines to implement server SMTP.
1545369Sericstab.c		Routines to manage the symbol table.
1555369Sericstats.c		Routines to collect and post the statistics.
1565369Sericsysexits.c	List of error messages associated with error codes
1575369Seric		in sysexits.h.
1589881Serictrace.c		The trace package.  These routines allow setting and
1599881Seric		testing of trace flags with a high granularity.
160*60565Sericudb.c		The user database interface module.
1615369Sericusersmtp.c	Routines to implement user SMTP.
1625369Sericutil.c		Some general purpose routines used by sendmail.
163*60565Sericversion.c	The version number and information about this
164*60565Seric		version of sendmail.  Theoretically, this gets
165*60565Seric		modified on every change.
1665369Seric
1675369SericEric Allman
1685369Seric
169*60565Seric(Version 6.7, last update 05/28/93 16:04:58)
170