op.ps
来自「< linux网络编程工具>>配套源码」· PS 代码 · 共 1,147 行 · 第 1/5 页
PS
1,147 行
-.2 E(tion of this document.)102 643.2 Q(The)127 659.4 Q F1(sendmail)
2.764 E F2 .264(con\214guration can be daunting at \214rst.)2.764 F .264
(The w)5.264 F .264(orld is comple)-.1 F .264(x, and the mail con-)-.15
F .109(\214guration re\215ects that.)102 671.4 R .109(The distrib)5.109
F .108
(ution includes an m4-based con\214guration package that hides a lot)-.2
F(of the comple)102 683.4 Q(xity)-.15 E(.)-.65 E .47
(These con\214guration \214les are simpler than old v)127 699.6 R .47
(ersions lar)-.15 F .47(gely because the w)-.18 F .47(orld has become)
-.1 F 1.449(simpler; in particular)102 711.6 R 3.949(,t)-.4 G -.15(ex)
-3.949 G 1.449(t-based host \214les are of).15 F 1.448
(\214cially eliminated, ob)-.25 F 1.448
(viating the need to \231hide\232)-.15 F(hosts behind a re)102 723.6 Q
(gistered internet g)-.15 E(ate)-.05 E -.1(wa)-.25 G -.65(y.).1 G EP
%%Page: 9 5
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Bold@0 SF(Sendmail Installation and Operation Guide)72 60 Q
(SMM:08-9)200.86 E/F1 10/Times-Roman@0 SF .092(These \214les also assum\
e that most of your neighbors use domain-based UUCP addressing; that)127
96 R .361(is, instead of naming hosts as \231host!user\232 the)102 108 R
2.861(yw)-.15 G .361(ill use \231host.domain!user\232.)-2.861 F .36
(The con\214guration \214les)5.36 F(can be customized to w)102 120 Q
(ork around this, b)-.1 E(ut it is more comple)-.2 E(x.)-.15 E .657
(Our con\214guration \214les are processed by)127 136.2 R/F2 10
/Times-Italic@0 SF(m4)3.158 E F1 .658(to f)3.158 F .658
(acilitate local customization; the directory)-.1 F F2(cf)3.158 E F1
.397(of the)102 148.2 R F2(sendmail)2.897 E F1(distrib)2.896 E .396
(ution directory contains the source \214les.)-.2 F .396
(This directory contains se)5.396 F -.15(ve)-.25 G .396(ral sub-).15 F
(directories:)102 160.2 Q 61.73(cf Both)102 176.4 R .56
(site-dependent and site-independent descriptions of hosts.)3.06 F .56
(These can be lit-)5.56 F .445(eral host names \(e.g., \231ucb)174 188.4
R -.25(va)-.15 G .445(x.mc\232\) when the hosts are g).25 F(ate)-.05 E
-.1(wa)-.25 G .445(ys or more general).1 F .535(descriptions \(such as \
\231generic-solaris2.mc\232 as a general description of an SMTP-)174
200.4 R 1.126(connected host running Solaris 2.x.)174 212.4 R 1.125
(Files ending)6.126 F F0(.mc)3.625 E F1(\(`)3.625 E 1.125
(`Master Con\214guration')-.74 F('\))-.74 E .516
(are the input descriptions; the output is in the corresponding)174
224.4 R F0(.cf)3.016 E F1 3.017(\214le. The)3.016 F(general)3.017 E
(structure of these \214les is described belo)174 236.4 Q -.65(w.)-.25 G
39.5(domain Site-dependent)102 252.6 R .428(subdomain descriptions.)
2.928 F .428(These are tied to the w)5.428 F .428(ay your or)-.1 F -.05
(ga)-.18 G(niza-).05 E .776(tion w)174 264.6 R .776
(ants to do addressing.)-.1 F -.15(Fo)5.777 G 3.277(re).15 G(xample,)
-3.427 E F0(domain/CS.Berk)3.277 E(eley)-.1 E(.EDU)-.7 E(.m4)-.5 E F1
.777(is our)3.277 F 1.188(description for hosts in the CS.Berk)174 276.6
R(ele)-.1 E -.65(y.)-.15 G 1.188(EDU subdomain.).65 F 1.187
(These are referenced)6.188 F(using the)174 288.6 Q/F3 9/Times-Roman@0
SF(DOMAIN)2.5 E F0(m4)2.5 E F1(macro in the)2.5 E F0(.mc)2.5 E F1
(\214le.)2.5 E 41.74(feature De\214nitions)102 304.8 R .728
(of speci\214c features that some particular host in your site might w)
3.228 F(ant.)-.1 E 2.467(These are referenced using the)174 316.8 R F3
(FEA)4.966 E(TURE)-.999 E F0(m4)4.966 E F1 4.966(macro. An)4.966 F -.15
(ex)4.966 G 2.466(ample feature is).15 F 1.763
(use_cw_\214le \(which tells)174 328.8 R F2(sendmail)4.263 E F1 1.764
(to read an /etc/mail/local-host-names \214le on)4.263 F
(startup to \214nd the set of local names\).)174 340.8 Q 50.62
(hack Local)102 357 R 1.886(hacks, referenced using the)4.387 F F3(HA)
4.386 E(CK)-.36 E F0(m4)4.386 E F1 4.386(macro. T)4.386 F 1.886(ry to a)
-.35 F -.2(vo)-.2 G 1.886(id these.).2 F(The)6.886 E(point of ha)174 369
Q(ving them here is to mak)-.2 E 2.5(ei)-.1 G 2.5(tc)-2.5 G
(lear that the)-2.5 E 2.5(ys)-.15 G(mell.)-2.5 E 56.72
(m4 Site-independent)102 385.2 R F2(m4)2.538 E F1 .038
(\(1\) include \214les that ha)B .338 -.15(ve i)-.2 H .038
(nformation common to all con\214gu-).15 F(ration \214les.)174 397.2 Q
(This can be thought of as a \231#include\232 directory)5 E(.)-.65 E
43.95(mailer De\214nitions)102 413.4 R .152
(of mailers, referenced using the)2.653 F F3(MAILER)2.652 E F0(m4)2.652
E F1 2.652(macro. The)2.652 F .152(mailer types)2.652 F 1.786
(that are kno)174 425.4 R 1.787(wn in this distrib)-.25 F 1.787
(ution are f)-.2 F 1.787(ax, local, smtp, uucp, and usenet.)-.1 F -.15
(Fo)6.787 G(r).15 E -.15(ex)174 437.4 S(ample, to include support for t\
he UUCP-based mailers, use \231MAILER\(uucp\)\232.).15 E 43.39
(ostype De\214nitions)102 453.6 R 1.157(describing v)3.657 F 1.157
(arious operating system en)-.25 F 1.156(vironments \(such as the loca-)
-.4 F(tion of support \214les\).)174 465.6 Q
(These are referenced using the)5 E F3(OSTYPE)2.5 E F0(m4)2.5 E F1
(macro.)2.5 E 60.61(sh Shell)102 481.8 R(\214les used by the)2.5 E F0
(m4)2.5 E F1 -.2(bu)2.5 G(ild process.).2 E -1.1(Yo)5 G 2.5(us)1.1 G
(houldn')-2.5 E 2.5(th)-.18 G -2.25 -.2(av e)-2.5 H(to mess with these.)
2.7 E 30.61(sitecon\214g Local)102 498 R .251(UUCP connecti)2.751 F .251
(vity information.)-.25 F .251
(This directory has been supplanted by the)5.251 F 1.077
(mailertable feature; an)174 510 R 3.577(yn)-.15 G 1.577 -.25(ew c)
-3.577 H 1.076(on\214gurations should use that feature to do UUCP).25 F
(\(and other\) routing.)174 522 Q .756(If you are in a ne)127 538.2 R
3.256(wd)-.25 G .756(omain \(e.g., a compan)-3.256 F .757
(y\), you will probably w)-.15 F .757(ant to create a cf/domain)-.1 F
.051(\214le for your domain.)102 550.2 R .051
(This consists primarily of relay de\214nitions and features you w)5.051
F .05(ant enabled site-)-.1 F .915(wide: for e)102 562.2 R .915
(xample, Berk)-.15 F(ele)-.1 E(y')-.15 E 3.415(sd)-.55 G .915
(omain de\214nition de\214nes relays for BitNET and UUCP)-3.415 F 5.916
(.T)-1.11 G .916(hese are)-5.916 F 1.52(speci\214c to Berk)102 574.2 R
(ele)-.1 E 2.819 -.65(y, a)-.15 H 1.519
(nd should be fully-quali\214ed internet-style domain names.).65 F 1.519
(Please check to)6.519 F(mak)102 586.2 Q 2.5(ec)-.1 G(ertain the)-2.5 E
2.5(ya)-.15 G(re reasonable for your domain.)-2.5 E 1.406
(Subdomains at Berk)127 602.4 R(ele)-.1 E 3.906(ya)-.15 G 1.407
(re also represented in the cf/domain directory)-3.906 F 6.407(.F)-.65 G
1.407(or e)-6.557 F 1.407(xample, the)-.15 F .356(domain CS.Berk)102
614.4 R(ele)-.1 E -.65(y.)-.15 G .356
(EDU is the Computer Science subdomain, EECS.Berk).65 F(ele)-.1 E -.65
(y.)-.15 G .356(EDU is the Electri-).65 F 1.278
(cal Engineering and Computer Sciences subdomain, and S2K.Berk)102 626.4
R(ele)-.1 E -.65(y.)-.15 G 1.278(EDU is the Sequoia 2000).65 F 4.004
(subdomain. Y)102 638.4 R 1.504(ou will probably ha)-1.1 F 1.804 -.15
(ve t)-.2 H 4.004(oa).15 G 1.504
(dd an entry to this directory to be appropriate for your)-4.004 F
(domain.)102 650.4 Q -1.1(Yo)127 666.6 S 4.372(uw)1.1 G 1.872(ill ha)
-4.372 F 2.172 -.15(ve t)-.2 H 4.372(ou).15 G 1.872(se or create)-4.372
F F0(.mc)4.372 E F1 1.872(\214les in the)4.372 F F2(cf/cf)4.372 E F1
1.873(subdirectory for your hosts.)4.373 F 1.873(This is)6.873 F
(detailed in the cf/README \214le.)102 678.6 Q EP
%%Page: 10 6
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Bold@0 SF 193.36(SMM:08-10 Sendmail)72 60 R
(Installation and Operation Guide)2.5 E 2.5(1.3. Details)87 96 R
(of Installation Files)2.5 E/F1 10/Times-Roman@0 SF
(This subsection describes the \214les that comprise the)127 112.2 Q/F2
10/Times-Italic@0 SF(sendmail)2.5 E F1(installation.)2.5 E F0 2.5
(1.3.1. /usr/sbin/sendmail)102 136.2 R F1 .079(The binary for)142 154.4
R F2(sendmail)2.579 E F1 .079(is located in /usr/sbin)2.579 F/F3 7
/Times-Roman@0 SF(1)-4 I F1 5.079(.I)4 K 2.579(ts)-5.079 G .08
(hould be setuid root.)-2.579 F -.15(Fo)5.08 G 2.58(rs).15 G .08
(ecurity rea-)-2.58 F(sons, /, /usr)117 168.4 Q 2.5(,a)-.4 G
(nd /usr/sbin should be o)-2.5 E(wned by root, mode 755)-.25 E F3(2)-4 I
F1(.)4 I F0 2.5(1.3.2. /etc/mail/sendmail.cf)102 192.4 R F1 .966
(This is the con\214guration \214le for)142 210.6 R F2(sendmail)3.466 E
F3(3)-4 I F1 5.966(.T)4 K .965
(his is the only non-library \214le name com-)-5.966 F(piled into)117
224.6 Q F2(sendmail)2.5 E F3(4)-4 I F1(.)4 I .721
(The con\214guration \214le is normally created using the distrib)142
240.8 R .721(ution \214les described abo)-.2 F -.15(ve)-.15 G 5.72(.I)
.15 G(f)-5.72 E .64(you ha)117 252.8 R .94 -.15(ve a p)-.2 H .64(articu\
larly unusual system con\214guration you may need to create a special v)
.15 F(ersion.)-.15 E(The format of this \214le is detailed in later sec\
tions of this document.)117 264.8 Q F0 2.5(1.3.3. /usr/bin/newaliases)
102 288.8 R F1(The)142 305 Q F2(ne)2.5 E(waliases)-.15 E F1
(command should just be a link to)2.5 E F2(sendmail)2.5 E F1(:)A
(rm \255f /usr/bin/ne)157 321.2 Q -.1(wa)-.25 G(liases).1 E
(ln \255s /usr/sbin/sendmail /usr/bin/ne)157 333.2 Q -.1(wa)-.25 G
(liases).1 E(This can be installed in whate)117 349.4 Q -.15(ve)-.25 G
2.5(rs).15 G(earch path you prefer for your system.)-2.5 E F0 2.5
(1.3.4. /usr/bin/hoststat)102 373.4 R F1(The)142 389.6 Q F2(hoststat)
5.845 E F1 3.344(command should just be a link to)5.845 F F2(sendmail)
5.844 E F1 5.844(,i)C 5.844(naf)-5.844 G 3.344(ashion similar to)-5.944
F F2(ne)117 401.6 Q(waliases)-.15 E F1 6.443(.T)C 1.444(his command lis\
ts the status of the last mail transaction with all remote hosts.)-6.443
F(The)117 413.6 Q F0<ad76>3.857 E F1 1.357(\215ag will pre)3.857 F -.15
(ve)-.25 G 1.357(nt the status display from being truncated.).15 F 1.356
(It functions only when the)6.356 F F0(HostStatusDir)117 425.6 Q(ectory)
-.18 E F1(option is set.)2.5 E F0 2.5(1.3.5. /usr/bin/pur)102 449.6 R
(gestat)-.1 E F1 .993(This command is also a link to)142 465.8 R F2
(sendmail)3.493 E F1 5.993(.I)C 3.493<748d>-5.993 G .993
(ushes all information that is stored in the)-3.493 F F0(HostStatusDir)
117 477.8 Q(ectory)-.18 E F1(tree.)2.5 E F0 2.5(1.3.6. /v)102 501.8 R
(ar/spool/mqueue)-.1 E F1 .218(The directory)142 518 R F2
(/var/spool/mqueue)2.718 E F1 .217
(should be created to hold the mail queue.)2.718 F .217(This directory)
5.217 F(should be mode 700 and o)117 530 Q(wned by root.)-.25 E .395
(The actual path of this directory is de\214ned in the)142 546.2 R F0(Q)
2.895 E F1 .395(option of the)2.895 F F2(sendmail.cf)2.896 E F1 2.896
(\214le. T)2.896 F 2.896(ou)-.8 G(se)-2.896 E 1.472
(multiple queues, supply a v)117 558.2 R 1.472
(alue ending with an asterisk.)-.25 F -.15(Fo)6.472 G 3.971(re).15 G
(xample,)-4.121 E F2(/var/spool/mqueue/q*)3.971 E F1 4.203
(will use all of the directories or symbolic links to directories be)117
570.2 R 4.203(ginning with `q' in)-.15 F F2(/var/spool/mqueue)117 582.2
Q F1 2.083(as queue directories.)4.583 F 2.083
(Do not change the queue directory structure while)7.083 F .32 LW 76
591.8 72 591.8 DL 80 591.8 76 591.8 DL 84 591.8 80 591.8 DL 88 591.8 84
591.8 DL 92 591.8 88 591.8 DL 96 591.8 92 591.8 DL 100 591.8 96 591.8 DL
104 591.8 100 591.8 DL 108 591.8 104 591.8 DL 112 591.8 108 591.8 DL 116
591.8 112 591.8 DL 120 591.8 116 591.8 DL 124 591.8 120 591.8 DL 128
591.8 124 591.8 DL 132 591.8 128 591.8 DL 136 591.8 132 591.8 DL 140
591.8 136 591.8 DL 144 591.8 140 591.8 DL 148 591.8 144 591.8 DL 152
591.8 148 591.8 DL 156 591.8 152 591.8 DL 160 591.8 156 591.8 DL 164
591.8 160 591.8 DL 168 591.8 164 591.8 DL 172 591.8 168 591.8 DL 176
591.8 172 591.8 DL 180 591.8 176 591.8 DL 184 591.8 180 591.8 DL 188
591.8 184 591.8 DL 192 591.8 188 591.8 DL 196 591.8 192 591.8 DL 200
591.8 196 591.8 DL 204 591.8 200 591.8 DL 208 591.8 204 591.8 DL 212
591.8 208 591.8 DL 216 591.8 212 591.8 DL/F4 5/Times-Roman@0 SF(1)93.6
602.2 Q/F5 8/Times-Roman@0 SF .385
(This is usually /usr/sbin on 4.4BSD and ne)3.2 J .385(wer systems; man)
-.2 F 2.385(ys)-.12 G .385(ystems install it in /usr/lib)-2.385 F 4.384
(.I)-.32 G .384(understand it is in /usr/ucblib on)-2 F
(System V Release 4.)72 615 Q F4(2)93.6 625.4 Q F5 .15(Some v)3.2 J .15
(endors ship them o)-.12 F .15(wned by bin; this creates a security hol\
e that is not actually related to)-.2 F/F6 8/Times-Italic@0 SF(sendmail)
2.15 E F5 4.15(.O)C .149(ther important di-)-4.15 F
(rectories that should ha)72 638.2 Q .24 -.12(ve r)-.16 H(estricti).12 E
.24 -.12(ve o)-.2 H(wnerships and permissions are /bin, /usr/bin, /etc,\
/etc/mail, /usr/etc, /lib, and /usr/lib)-.08 E(.)-.32 E F4(3)93.6 648.6
Q F5(Actually)3.2 I 2.332(,t)-.52 G .332(he pathname v)-2.332 F .332(ar\
ies depending on the operating system; /etc/mail is the preferred direc\
tory)-.2 F 4.332(.S)-.52 G .332(ome older systems in-)-4.332 F 1.487
(stall it in)72 661.4 R/F7 8/Times-Bold@0 SF(/usr/lib/sendmail.cf)3.487
E F5 3.487(,a)C 1.487(nd I')-3.487 F 1.727 -.12(ve a)-.4 H 1.486
(lso seen it in).12 F F7(/usr/ucblib)3.486 E F5 5.486(.I)C 3.486(fy)
-5.486 G 1.486(ou w)-3.486 F 1.486(ant to mo)-.08 F 1.726 -.12(ve t)-.12
H 1.486(his \214le, add -D_P).12 F -.888(AT)-.736 G(H_SENDMAIL-).888 E
.093(CF=\\"/\214le/name\\" to the \215ags passed to the C compiler)72
671 R 4.093(.M)-.44 G -.12(ov)-4.093 G .093
(ing this \214le is not recommended: other programs and scripts kno).12
F 2.093(wo)-.2 G 2.093(ft)-2.093 G(his)-2.093 E(location.)72 680.6 Q F4
(4)93.6 691 Q F5 .588
(The system libraries can reference other \214les; in particular)3.2 J
2.589(,s)-.32 G .589(ystem library subroutines that)-2.589 F F6
(sendmail)2.589 E F5 .589(calls probably reference)2.589 F F6
(/etc/passwd)72 703.8 Q F5(and)2 E F6(/etc/r)2 E(esolv)-.296 E(.conf)
-.592 E F5(.)A EP
%%Page: 11 7
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Bold@0 SF(Sendmail Installation and Operation Guide)72 60 Q
(SMM:08-11)195.86 E/F1 10/Times-Roman@0 SF(sendmail is running.)117 96 Q
.897(If these directories ha)142 112.2 R 1.197 -.15(ve s)-.2 H .898
(ubdirectories or symbolic links to directories named `qf).15 F .898
(', `df).55 F(',).55 E 1.241(and `xf)117 124.2 R 1.241
(', then these will be used for the dif).55 F 1.24
(ferent queue \214le types.)-.25 F 1.24(That is, the data \214les are)
6.24 F .246(stored in the `df)117 136.2 R 2.746('s).55 G(ubdirectory)
-2.746 E 2.746(,t)-.65 G .246
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?