📄 read_me
字号:
other system files, such as /etc/passwd, unless you use the new db format throughout your system. You should normally just use the version of db supplied in your release. You may need to use -DOLD_NEWDB=1 to make this work -- this turns off some new interface calls (for file locking) that are not in older versions of db. You'll get compile errors if you need this flag and don't have it set.4.3BSD If you are running a "virgin" version of 4.3BSD, you'll have a very old resolver and be missing some header files. The header files are simple -- create empty versions and everything will work fine. For the resolver you should really port a new version (4.8.3 or later) of the resolver; 4.9 is available on gatekeeper.DEC.COM in pub/BSD/bind/4.9. If you are really determined to continue to use your old, buggy version (or as a shortcut to get sendmail working -- I'm sure you have the best intentions to port a modern version of BIND), you can copy ../contrib/oldbind.compat.c into src and add oldbind.compat.o to OBJADD in the Makefile.A/UX Date: Tue, 12 Oct 1993 18:28:28 -0400 (EDT) From: "Eric C. Hagberg" <hagberg@med.cornell.edu> Subject: Fix for A/UX ndbm I guess this isn't really a sendmail bug, however, it is something that A/UX users should be aware of when compiling sendmail 8.6. Apparently, the calls that sendmail is using to the ndbm routines in A/UX 3.0.x contain calls to "broken" routines, in that the aliases database will break when it gets "just a little big" (sorry I don't have exact numbers here, but it broke somewhere around 20-25 aliases for me.), making all aliases non-functional after exceeding this point. What I did was to get the gnu-dbm-1.6 package, compile it, and then re-compile sendmail with "-lgdbm", "-DNDBM", and using the ndbm.h header file that comes with the gnu-package. This makes things behave properly. I suppose porting the New Berkeley db package is another route, however, I made a quick attempt at it, and found it difficult (not easy at least); the gnu-dbm package "configured" and compiled easily.DG/UX Apparently, /bin/mail doesn't work properly for delivery on DG/UX -- the person who has this working, Douglas Anderson <dlander@afterlife.ncsc.mil>, used procmail instead.Apollo DomainOS If you are compiling on Apollo, you will have to create an empty file "unistd.h" and create a file "dirent.h" containing: #include <sys/dir.h> #define dirent direct (The Makefile.DomainOS will attempt to do both of these for you.)HP-UX 8.00 Date: Mon, 24 Jan 1994 13:25:45 +0200 From: Kimmo Suominen <Kimmo.Suominen@lut.fi> Subject: 8.6.5 w/ HP-UX 8.00 on s300 Just compiled and fought with sendmail 8.6.5 on a HP9000/360 (ie. a series 300 machine) running HP-UX 8.00. I was getting segmentation fault when delivering to a local user. With debugging I saw it was faulting when doing _free@libc... *sigh* It seems the new implementation of malloc on s300 is buggy as of 8.0, so I tried out the one in -lmalloc (malloc(3X)). With that it seems to work just dandy. When linking, you will get the following error: ld: multiply defined symbol _freespace in file /usr/lib/libmalloc.a but you can just ignore it. You might want to add this info to the README file for the future...Linux Something broke between versions 0.99.13 and 0.99.14 of Linux: the flock() system call gives errors. If you are running .14, you must not use flock. You can do this with -DHASFLOCK=0.AIX This version of sendmail does not support MB, MG, and MR resource records, which are supported by AIX sendmail.RISC/os RISC/os from MIPS is a merged AT&T/Berkeley system. When you compile on that platform you will get duplicate definitions on many files. You can ignore these.System V Release 4 Based Systems There is a single Makefile that is intended for all SVR4-based systems (called Makefile.SVR4). It defines __svr4__, which is predefined by some compilers. If your compiler already defines this compile variable, you can delete the definition from the Makefile. It's been tested on Dell Issue 2.2.DELL SVR4 Date: Mon, 06 Dec 1993 10:42:29 EST From: "Kimmo Suominen" <kim@grendel.lut.fi> Message-ID: <2d0352f9.lento29@lento29.UUCP> To: eric@cs.berkeley.edu Cc: sendmail@cs.berkeley.edu Subject: Notes for DELL SVR4 Eric, Here are some notes for compiling Sendmail 8.6.4 on DELL SVR4. I ran across these things when helping out some people who contacted me by e-mail. 1) Use gcc 2.4.5 (or later?). Dell distributes gcc 2.1 with their Issue 2.2 Unix. It is too old, and gives you problems with clock.c, because sigset_t won't get defined in <sys/signal.h>. This is due to a problematic protection rule in there, and is fixed with gcc 2.4.5. 2) If you don't use the new Berkeley DB (-DNEWDB), then you need to add "-lc -lucb" to the libraries to link with. This is because the -ldbm distributed by Dell needs the bcopy, bcmp and bzero functions. It is important that you specify both libraries in the given order to be sure you only get the BSTRING functions from the UCB library (and not the signal routines etc.). 3) Don't leave out "-lelf" even if compiling with "-lc -lucb". The UCB library also has another copy of the nlist routines, but we do want the ones from "-lelf". If anyone needs a compiled gcc 2.4.5 and/or a ported DB library, they can use anonymous ftp to fetch them from lut.fi in the /kim directory. They are copies of what I use on grendel.lut.fi, and offering them does not imply that I would also support them. I have sent the DB port for SVR4 back to Keith Bostic for inclusion in the official distribution, but I haven't heard anything from him as of today. - gcc-2.4.5-svr4.tar.gz (gcc 2.4.5 and the corresponding libg++) - db-1.72.tar.gz (with source, objects and a installed copy) Cheers + Kim -- * Kimmo.Suominen@lut.fi * SysVr4 enthusiast at GRENDEL.LUT.FI * * KIM@FINFILES.BITNET * Postmaster and Hostmaster at LUT.FI * * + 358 200 865 718 * Unix area moderator at NIC.FUNET.FI *Non-DNS based sites This version of sendmail always tries to connect to the Domain Name System (DNS) to resolve names, regardless of the setting of the `I' option. On most systems that are not running DNS, this will fail quickly and sendmail will continue, but on some systems it has a long timeout. If you have this problem, you will have to recompile without NAMED_BIND. Some people have claimed that they have successfully used "OI+USEVC" to force sendmail to use a virtual circuit -- this will always time out quickly, but also tells sendmail that a failed connection should requeue the message (probably not what you intended). A future release of sendmail will correct this problem.Both NEWDB and NDBM If you use both -DNDBM and -DNEWDB, you must delete the module ndbm.o from libdb.a and delete the file "ndbm.h" from the files that get installed (that is, use the OLD ndbm.h, not the new ndbm.h). This compatibility module maps ndbm calls into DB calls, and breaks things rather badly.GNU getopt I'm told that GNU getopt has a problem in that it gets confused by the double call. Use the version in conf.c instead.BIND 4.9.2 and Ultrix If you are running on Ultrix, be sure you read the conf/Info.Ultrix carefully -- there is information in there that you need to know in order to avoid errors of the form: /lib/libc.a(gethostent.o): sethostent: multiply defined /lib/libc.a(gethostent.o): endhostent: multiply defined /lib/libc.a(gethostent.o): gethostbyname: multiply defined /lib/libc.a(gethostent.o): gethostbyaddr: multiply defined during the link stage.+--------------+| MANUAL PAGES |+--------------+The manual pages have been written against the -mandoc macrosinstead of the -man macros. The latest version of groff has themincluded. You can also get a copy from FTP.UU.NET in directory/systems/unix/bsd-sources/share/tmac.+-----------------+| DEBUGGING HOOKS |+-----------------+As of 8.6.5, sendmail daemons will catch a SIGUSR1 signal and logsome debugging output (logged at LOG_DEBUG severity). Theinformation dumped is: * The value of the $j macro. * A warning if $j is not in the set $=w. * A list of the open file descriptors. * The contents of the connection cache. * If ruleset 89 is defined, it is evaluated and the results printed.This allows you to get information regarding the runtime state of thedaemon on the fly. This should not be done too frequently, sincethe process of rewriting may lose memory which will not be recovered.Also, ruleset 89 may call non-reentrant routines, so there is a smallnon-zero probability that this will cause other problems. It isreally only for debugging serious problems.A typical formulation of ruleset 89 would be: R$* $@ $>0 some test address+-----------------------------+| DESCRIPTION OF SOURCE FILES |+-----------------------------+The following list describes the files in this directory:Makefile The makefile used here; this version only works with the new Berkeley make.Makefile.dist A trimmed down version of the makefile that works with the old make.READ_ME This file.TRACEFLAGS My own personal list of the trace flags -- not guaranteed to be particularly up to date.alias.c Does name aliasing in all forms.arpadate.c A subroutine which creates ARPANET standard dates.clock.c Routines to implement real-time oriented functions in sendmail -- e.g., timeouts.collect.c The routine that actually reads the mail into a temp file. It also does a certain amount of parsing of the header, etc.conf.c The configuration file. This contains information that is presumed to be quite static and non- controversial, or code compiled in for efficiency reasons. Most of the configuration is in sendmail.cf.conf.h Configuration that must be known everywhere.convtime.c A routine to sanely process times.daemon.c Routines to implement daemon mode. This version is specifically for Berkeley 4.1 IPC.deliver.c Routines to deliver mail.domain.c Routines that interface with DNS (the Domain Name System).err.c Routines to print error messages.envelope.c Routines to manipulate the envelope structure.headers.c Routines to process message headers.macro.c The macro expander. This is used internally to insert information from the configuration file.main.c The main routine to sendmail. This file also contains some miscellaneous routines.map.c Support for database maps.mci.c Routines that handle mail connection information caching.parseaddr.c The routines which do address parsing.queue.c Routines to implement message queueing.readcf.c The routine that reads the configuration file and translates it to internal form.recipient.c Routines that manipulate the recipient list.savemail.c Routines which save the letter on processing errors.sendmail.h Main header file for sendmail.srvrsmtp.c Routines to implement server SMTP.stab.c Routines to manage the symbol table.stats.c Routines to collect and post the statistics.sysexits.c List of error messages associated with error codes in sysexits.h.trace.c The trace package. These routines allow setting and testing of trace flags with a high granularity.udb.c The user database interface module.usersmtp.c Routines to implement user SMTP.util.c Some general purpose routines used by sendmail.version.c The version number and information about this version of sendmail. Theoretically, this gets modified on every change.Eric Allman(Version 8.61, last update 4/17/94 07:05:32)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -