📄 op.me
字号:
.\" Copyright (c) 1983 Eric P. Allman.\" Copyright (c) 1983, 1993.\" The Regents of the University of California. All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\" notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\" notice, this list of conditions and the following disclaimer in the.\" documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\" must display the following acknowledgement:.\" This product includes software developed by the University of.\" California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\" may be used to endorse or promote products derived from this software.\" without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\" @(#)op.me 8.36 (Berkeley) 4/14/94.\".\" eqn op.me | pic | troff -me.eh 'SMM:08-%''Sendmail Installation and Operation Guide'.oh 'Sendmail Installation and Operation Guide''SMM:08-%'.\" SD is lib if sendmail is installed in /usr/lib, sbin if in /usr/sbin.ds SD sbin.\" SB is bin if newaliases/mailq are installed in /usr/bin, ucb if in /usr/ucb.ds SB bin.nr si 3n.de $0.(x.in \\$3u*3n.ti -3n\\$2. \\$1.)x...de $C.(x.in 0\\$1 \\$2. \\$3.)x...sc.+c.(l C.sz 16.b SENDMAIL.sz 12.sp.b "INSTALLATION AND OPERATION GUIDE".sz 10.sp.rEric AllmanUniversity of California, BerkeleyMammoth Projecteric@CS.Berkeley.EDU.spVersion 8.36.spFor Sendmail Version 8.6.)l.sp 2.pp.i Sendmailimplements a general purpose internetwork mail routing facilityunder the UNIX*.(f*UNIX is a trademark of Unix Systems Laboratories..)foperating system.It is not tied to any one transport protocol \*-its function may be likened to a crossbar switch,relaying messages from one domain into another.In the process,it can do a limited amount of message header editingto put the message into a format that is appropriatefor the receiving domain.All of this is done under the control of a configuration file..ppDue to the requirements of flexibilityfor.i sendmail ,the configuration file can seem somewhat unapproachable.However, there are only a few basic configurationsfor most sites,for which standard configuration files have been supplied.Most other configurationscan be built by adjusting an existing configuration filesincrementally..pp.i Sendmailis based onRFC822 (Internet Mail Format Protocol),RFC821 (Simple Mail Transport Protocol),RFC1123 (Internet Host Requirements),andRFC1425 (SMTP Service Extensions).However, since.i sendmailis designed to work in a wider world,in many cases it can be configured to exceed these protocols.These cases are described herein..ppAlthough.i sendmailis intended to runwithout the need for monitoring,it has a number of featuresthat may be used to monitor or adjust the operationunder unusual circumstances.These features are described..ppSection one describes how to do a basic.i sendmailinstallation.Section twoexplains the day-to-day information you should knowto maintain your mail system.If you have a relatively normal site,these two sections should contain sufficient informationfor you to install.i sendmailand keep it happy.Section threedescribes some parameters that may be safely tweaked.Section fourhas information regarding the command line arguments.Section fivecontains the nitty-gritty information about the configurationfile.This section is for masochistsand people who must write their own configuration file.Section sixdescribes configuration that can be done at compile time.Section sevengives a brief description of differencesin this version of.i sendmail .The appendixes give a briefbut detailed explanation of a number of featuresnot described in the rest of the paper..bp 7.sh 1 "BASIC INSTALLATION".ppThere are two basic steps to installing.i sendmail .The hard part is to build the configuration table.This is a file that.i sendmailreads when it starts upthat describes the mailers it knows about,how to parse addresses,how to rewrite the message header,and the settings of various options.Although the configuration table is quite complex,a configuration can usually be builtby adjusting an existing off-the-shelf configuration.The second part is actually doing the installation,i.e., creating the necessary files, etc..ppThe remainder of this section will describe the installation of.i sendmailassuming you can use one of the existing configurationsand that the standard installation parameters are acceptable.All pathnames and examplesare given from the root of the.i sendmailsubtree,normally.i /usr/src/usr.\*(SD/sendmailon 4.4BSD..ppIf you are loading this off the tape,continue with the next section.If you have a running binary already on your system,you should probably skip to section 1.2..sh 2 "Compiling Sendmail".ppAll.i sendmailsource is in the.i srcsubdirectory.If you are running on a 4.4BSD system,compile by typing.q make .On other systems, you may have to make some other adjustments..sh 3 "Old versions of make".ppIf you are not running the new version of.b makeyou will probably have to use.(bmake \-f Makefile.dist.)bThis file does not assume several new syntaxes,including the.q +=syntax in macro definitionand the.q ".include"syntax..sh 3 "Compilation flags".pp.i Sendmailsupports two different formatsfor the.i aliasesdatabase.These formats are:.nr ii 1i.ip NDBMThe ``new DBM'' format,available on nearly all systems around today.This was the preferred format prior to 4.4BSD.It allows such complex things as multiple databasesand closing a currently open database..ip NEWDBThe new database package from Berkeley.If you have this, use it.It allowslong records,multiple open databases,real in-memory caching,and so forth.You can define this in conjunction with one of the other two;if you do,old databases are read,but when a new database is created it will be in NEWDB format.As a nasty hack,if you have NEWDB, NDBM, and NIS defined,and if the file.i /var/yp/Makefileexists and is readable,.i sendmailwill create both new and old versions of the alias fileduring a.i newaliascommand.This is required because the Sun NIS/YP systemreads the DBM version of the alias file.It's ugly as sin,but it works..lpIf neither of these are defined,.i sendmailreads the alias file into memory on every invocation.This can be slow and should be avoided..ppSystem V based systems can defineSYSTEM5to make several small adjustments.This changes the handling of timezonesand uses the much less efficient.i lockfcall in preference to.i flock .These can be specified separately using the compilation flagsSYS5TZandLOCKFrespectively..ppIf you don't have the.i unsetenvroutine in your system library, define the UNSETENV compilation flag..ppYou may also have to define the compilation variable LA_TYPEto describe how your load average is computed.This and other flags are detailed in section 6.1..sh 3 "Compilation and installation".ppAfter making the local system configuration described above,You should be able to compile and install the system.Compilation can be performed using.q make\**.(f\**where you may have to replace.q makewith.q "make \-f Makefile.dist"as appropriate..)fin the.b sendmail/srcdirectory.You may be able to install using.(bmake install.)bThis should install the binary in/usr/\*(SDand create links from/usr/\*(SB/newaliasesand/usr/\*(SB/mailqto/usr/\*(SD/sendmail.On 4.4BSD systems it will also format and install man pages..sh 2 "Configuration Files".pp.i Sendmailcannot operate without a configuration file.The configuration defines the mail systems understood at this site,how to access them,how to forward email to remote mail systems,and a number of tuning parameters.This configuration file is detailedin the later portion of this document..ppThe.i sendmailconfiguration can be daunting at first.The world is complex,and the mail configuration reflects that.The distribution includes an m4-based configuration packagethat hides a lot of the complexity..ppThese configuration files are simpler than old versionslargely because the world has become simpler;in particular,text-based host files are officially eliminated,obviating the need to.q hidehosts behind a registered internet gateway..ppThese files also assume that most of your neighborsuse domain-based UUCP addressing;that is,instead of naming hosts as.q host!userthey will use.q host.domain!user .The configuration files can be customized to work around this,but it is more complex..ppI haven't tested these yet on an isolated LAN environmentwith a single UUCP connection to the outside world.If you are in such an environment,please send comments tosendmail@CS.Berkeley.EDU..ppOur configuration files are processed by.i m4to facilitate local customization;the directory.i cfof the.i sendmaildistribution directorycontains the source files.This directory contains several subdirectories:.nr ii 1i.ip cfBoth site-dependent and site-independent descriptions of hosts.These can be literal host names(e.g.,.q ucbvax.mc )when the hosts are gatewaysor more general descriptions(such as.q "tcpproto.mc"as a general description of an SMTP-connected hostor.q "uucpproto.mc"as a general description of a UUCP-connected host).Files ending.b \&.mc(``Master Configuration'')are the input descriptions;the output is in the corresponding.b \&.cffile.The general structure of these files is described below..ip domainSite-dependent subdomain descriptions.These are tied to the way your organization wants to do addressing.For example,.b domain/cs.exposed.m4is our description for hosts in the CS.Berkeley.EDU subdomainthat want their individual hostname to be externally visible;.b domain/cs.hidden.m4is the same except that the hostname is hidden(everything looks like it comes from CS.Berkeley.EDU).These are referenced using the.sm DOMAIN.b m4macro in the.b \&.mcfile..ip featureDefinitions of specific features that some particular host in your sitemight want.These are referenced using the.sm FEATURE.b m4macro.An example feature isuse_cw_file(which tells.i sendmailto read an /etc/sendmail.cw file on startupto find the set of local names)..ip hackLocal hacks, referenced using the.sm HACK.b m4macro.Try to avoid these.The point of having them here is to make it clear that they smell..ip m4Site-independent.i m4 (1)include files that have information common to all configuration files.This can be thought of as a.q #includedirectory..ip mailerDefinitions of mailers,referenced using the.sm MAILER.b m4macro.Defined mailer types in this distribution arefax,local,smtp,uucp,and usenet..ip ostypeDefinitions describing various operating system environments(such as the location of support files).These are referenced using the.sm OSTYPE.b m4macro..ip shShell files used by the.b m4build process.You shouldn't have to mess with these..ip siteconfigLocal site configuration information,such as UUCP connectivity.They normally contain lists of site information, for example:.(bSITE(contessa)SITE(hoptoad)SITE(nkainc)SITE(well).)bThey are referenced using the SITECONFIG macro:.(bSITECONFIG(site.config.file, name_of_site, X).)bwhere.i Xis the macro/class name to use.It can be U(indicating locally connected hosts)or one of W, X, or Yfor up to three remote UUCP hubs..ppIf you are in a new domain(e.g., a company),you will probably want to create acf/domainfile for your domain.This consists primarily of relay definitions:for example, Berkeley's domain definitiondefines relays forBitNET,CSNET,and UUCP.Of these,only the UUCP relay is particularly specificto Berkeley.All of these are internet-style domain names.Please check to make certain they are reasonable for your domain..ppSubdomains at Berkeley are also represented in thecf/domaindirectory.For example,the domaincs-exposedis the Computer Science subdomain with the local hostname shownto other users;cs-hiddenmakes users appear to be from the CS.Berkeley.EDU subdomain(with no local host information included).You will probably have to update this directoryto be appropriate for your domain..ppYou will have to use or create.b \&.mcfiles in the.i cf/cfsubdirectory for your hosts.This is detailed in thecf/READMEfile..sh 2 "Details of Installation Files".ppThis subsection describes the files thatcomprise the.i sendmailinstallation..sh 3 "/usr/\*(SD/sendmail".ppThe binary for.i sendmailis located in /usr/\*(SD\**..(f\**This is usually/usr/sbinon 4.4BSD and newer systems;many systems install it in
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -