⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mh-gen.8

📁 早期freebsd实现
💻 8
📖 第 1 页 / 共 3 页
字号:
DUMB.brDirects \fIMH\fR not to try and rewrite addresses to their \*(lqofficial\*(rq form..ti -.5iFOLDPROT.brDefines the octal value for default folder-protection.For example, FOLDPROT='\^\*(lq0700\*(rq\^'.The default is \*(lq0711\*(rq..ti -.5iISI.brWhen using \*(lqrepl\0\-ccme\*(rq,only \*(lqcc:\*(rq the first address found which belongs to the user;any other \fIAlternate-Mailboxes\fR do not receive \*(lqcc:\*(rqs..ti -.5iLINK.brDefines the filename for alternate file name for \fIdist\fR and \fIrepl\fR.For example, LINK='\^\*(lq\^\\\^\\\^043\*(rq\^'to use the pound\-sign character.The default is \*(lq@\*(rq..ti -.5iMHE.brEnables crude support for Brien Reid's MHE interface.Recommended for use with the GNU Emacs mh-e package..ti -.5iMHRC.brEnables \fIMH\fR to recognize the \fICShell\fR's `~'\-construct.This is useful for sites that run with a ~/.mhrc for their users..ti -.5iMIME.brEnables support for multi-media messages,as specified in RFC 1341 \-\- a major win.This allows you to include things like audio,graphics, and the like, in your mail messages.Several \fIMH\fP commands are extended to support these multi-mediamessages,and the \fImhn\fR command is provided to encode and decode\fBMIME\fP messages.For more details, see \fBmiscellany/multi-media/READ-ME\fPand \fImhn\fR\|(1)..ti -.5iMSGID.brEnables \fBslocal\fP to detect and surpress duplicate messages received.This code uses the \fB<ndbm.h>\fP library,and requires \*(lqoptions BSD42\*(rq sinceit uses the \fIflock\fP\|(2) system call for locking.(Note that this means its database locking does not work over NFS.)It has only been tested under SUN40..ti -.5iMSGPROT.brDefines the octal value for default folder-protection.For example, MSGPROT='\^\*(lq0600\*(rq\^'.The default is \*(lq0644\*(rq..ti -.5iNOMHSEQ.brDirects \fIMH\fR to make private sequences the default..ti -.5iOVERHEAD.brEnable \fIMH\fR commands to read profile/context from open fd:swithout doing an open(); see \fImh-profile\fP\|(5) for the details..ti -.5iRPATHS.brDirects \fIinc\fR to note UNIX \*(lqFrom\ \*(rq lines as Return-Path: info..ti -.5iSBACKUP.brDefines the prefix string for backup file names.For example, SBACKUP='\^\*(lq\^\\\^\\\^043\*(rq\^'.The default is \*(lq,\*(rq..ti -.5iTMA.brSupport for the TTI \fItrusted mail agent\fR (TMA).Although the TTI TMA is \fBnot\fR in the public domain,the \fIMH\fR support for the TTI TMA \fBis\fR in the public domain.You should enable this option only if you are licensed to run the TMAsoftware(otherwise, you don't have the software in your \fIMH\fR source tree)..ti -.5iTTYD.brSupport for TTYD.  This is no longer in wide use, and is not recommended..ti -.5iUCI.brFirst, \*(lq_\*(rq and \*(lq#\*(rq are recognized as the prefixes forscratch files.Second, support for the UCI group\-leadership mechanism is enabled in\fIconflict\fR.Third, the first line of the filefile \fB$HOME/.signature\fR is used as the \fIFull Name\fR partof your \*(lqFrom:\*(rq header.This may conflict with the interpretation of this file by \fINews\fR.If you're not at UCI, you probably don't want this option..ti -.5iUK.brDirects the \fIscan\fR program to generate UK-style dates by default..ti -.5iWHATNOW.brEnable certain \fIMH\fR commands to act differently when $mhdraft set..ti -.5iYEARMOD.brThis option makes the \fImh-format\fP \fB%(year)\fP functionalways return a value less than 100.Enable this option if you have local \fImh-format\fP\|(5) fileswhich cannot handle 4-digit years.You should convert these files to use a 4-character field width,or use the \fB%(modulo 100)\fP function to obtain a 2-digit year value.After a short grace period,remove `YEARMOD' and re-{configure,generate,install} everything..in -.25i.Uh "Testing/debugging".ti -.5idebug: off.brSupport for debug mode of \fIMH\fR.Don't use this unless you know what you're doing,which isn't likely if you're reading this document!.ti -.5iregtest: off.brSet this to \*(lqon\*(rqif you are doing regression testing among differentcompilations of \fIMH\fP, and you do not want the hostnameand compile date included in \fIMH\fP binaries.  .sp.in -.5i.PPNow edit \fBconf/config/mtstailor\fR,depending on your choice of the settingfor mts in the \fIMH\fR configuration file.for an mts setting of \*(lqmh\*(rq,look at the file \fBconf/tailor/mhmts\fR;for an mts setting of \*(lqsendmail\*(rq, \*(lqsendmail/smtp\*(rq,\*(lqmmdf/smtp\*(rq, or \*(lqmmdf2/smtp\*(rq,look at the file \fBconf/tailor/sendmts\fR;and,for an mts setting of \*(lqmmdf\*(rq, or  \*(lqmmdf2\*(rq,look at the file \fBconf/tailor/mmdf\fR..PPNow install the configured files into the source areas.  (On SYS5systems, or other systems where you get complaints about\*(lq_index\*(rq and \*(lq_rindex\*(rq being undefined,you should use \*(lqmake sys5\*(rq to compile mhconfig.).sp 1.nf% make% ./mhconfig MH.fi.PP\fBBefore proceeding\fP,you should familiarize yourself with the \fIAdministrator's Guide\fR.To generate an \fInroff\fR version, go to the doc/ directoryand type:.sp 1.nf% (cd ../doc/; make ADMIN.doc).fi.sp.PPIf you're already running \fIMH\fR at your site,you should also read the \fImh\fR changes document \fBCHANGES\fP.The source is in \fBpapers/changes/\fR..PPAfter reading the \fIAdministrator's Guide\fR, you may decideto change your MH configuration.  If so, cd back to the \fBconf/\fPdirectory, re-edit the files \fBMH\fPand \fBconf/config/mtstailor\fR, and re-run \fImhconfig\fP..PPYou now proceed based on your choice of a transport system(the setting for mts above).The best interface is achieved with \*(lqsendmail\*(rqfollowed by \*(lqmmdf\*(rq or (\*(lqmmdf2\*(rq),and then \*(lqmh\*(rq (stand\-alone delivery, not recommended)..SS SENDMAILIf you have not enabled BBoards or POPthen no further MTS\-specific action is required on your part!If you have enabled POP, but you want to let \fISendMail\fP deliver mail POP mail using itsstandard delivery program \fB/bin/mail\fP,then, again, no further MTS\-specific action is required on your part!Otherwise,go to the mts/sendmail/ directory..sp 1.nf% cd ../mts/sendmail/.fi.sp 1This directory contains files whose definitions correspond to theconfiguration of your \fISendMail\fR system.If you have enabled BBoards or POP service,then you will need to re\-configure \fISendMail\fR.First, in the \*(lqlocal info\*(rq section of your site's\fISendMail\fR configuration file,choose a free macro/class (B is used in this distribution),and add these lines:.sp 1.in +.5i.nf# BBoards supportDBbboardsCBbboards.fi.in -.5i.sp 1Second, immediately after the inclusion of the zerobase file,in the \*(lqmachine dependent part of ruleset zero\*(rq section,add these lines:.sp 1.in +.5i.nf# resolve names for the BBoards systemR$+<@$=B>		$#bboards$@$2$:$1		topic@bboards.fi.in -.5i.sp 1Be sure to use tabs when separating these fields.Third, add the line.sp 1.in +.5i.nfinclude(bboardsMH.m4).fi.in -.5i.sp 1after the line.sp 1.in +.5i.nfinclude(localm.m4).fi.in -.5i.sp 1in your site's \fISendMail\fR configuration file.Finally, you should link the file \fBmts/sendmail/bboardsMH.m4\fR into your\fISendMail\fR cf/ directory and re\-configure \fISendMail\fR..PPIf you have enabled POP service,a similar procedure must be used on the POP service host,to re\-configure \fISendMail\fR.First, in the \*(lqlocal info\*(rq section of your site's\fISendMail\fR configuration file,choose a free macro/class (P is used in this distribution),and add these lines:.sp 1.in +.5i.nf# POP supportDPpopCPpop.fi.in -.5i.sp 1Second, immediately after the inclusion of the zerobase file,in the \*(lqmachine dependent part of ruleset zero\*(rq section,add these lines:.sp 1.in +.5i.nf# resolve names for the POP systemR$+<@$=P>		$#pop$@$2$:$1			subscriber@pop.fi.in -.5i.sp 1Be sure to use tabs when separating these fields.Third, add the line.sp 1.in +.5i.nfinclude(popMH.m4).fi.in -.5i.sp 1after the line.sp 1.in +.5i.nfinclude(localm.m4).fi.in -.5i.sp 1in your site's \fISendMail\fR configuration file.Finally, you should link the file \fBmts/sendmail/popMH.m4\fR into your\fISendMail\fR cf/ directory and re\-configure \fISendMail\fR..SS MMDFIf you want \fIMMDF\fR to be your transport service,and have \fBNOT\fR specified \*(lqmmdf/smtp\*(rq (or \*(lqmmdf2/smtp\*(rq)as your mts setting,then go to the mmdf/ directory.(If you're using \*(lqmmdf/smtp\*(rq or \*(lqmmdf2/smtp\*(rqas your mts setting, then skip to the next section.).sp 1.nf% cd ../mts/mmdf/.fi.sp 1This directory contains files whose definitions correspond to theconfiguration of your \fIMMDF\fR system..PPIf you're running \fIMMDF\-I\fR,then copy the following files from wherever you keep the \fIMMDF\fR sourcesto this directory: mmdf/h/ch.h, mmdf/h/conf.h, utildir/conf_util.h,utildir/ll_log.h, mmdf/h/mmdf.h, utildir/util.h, mmdf/mmdf_lib.a,and utildir/util_lib.a..PPIf you're running \fIMMDF\-II\fR,then copy the following files from where you keep the \fIMMDF\fR sourcesto this directory: h/ch.h, h/conf.h, h/dm.h, h/ll_log.h, h/mmdf.h, h/util.h,and lib/libmmdf.a.PPIf you have enabled bboards,then the directories \fBsupport/bboards/mmdfI\fRand \fBsupport/bboards/mmdfII\fRcontain information you'll need toput a UCI BBoards channel in your \fIMMDF\fR configuration.Similarly, if you have enabled option \*(lqmf\*(rq and arerunning \fIMMDF\-I\fR,then the \fBzotnet/mf/mmdfI/\fR directory contains information you'll need toput a \fIUUCP\fR channel in your \fIMMDF\-I\fR configuration.Finally, the directory \fBsupport/pop/mmdfII\fR contains information you'llneed to put a POP channel in your \fIMMDF\-II\fR configuration..PPNote that \fIMMDF\-II\fR is distributed with the BBoards channel,although the version in the \fIMH\fR distribution might be more current,the version in the \fIMMDF\-II\fR distribution has been tested with thatrevision of \fIMMDF\fR..SS MMDF/SMTPIf you are using \*(lqmmdf/smtp\*(rq as your mts setting,then no further MTS\-specific action is required on your part!.SS MMDF2/SMTPIf you are using \*(lqmmdf2/smtp\*(rq as your mts setting,then no further MTS\-specific action is required on your part!.SS "STAND\-ALONE DELIVERY"If, instead, you want \fIMH\fR to handle its own mail delivery,then no further MTS\-specific action is required on your part!.SH GENERATIONGo to the \fIMH\fP top-level directory and generate the system..sp 1.nf% cd ../; make.fi.PPThis will cause a complete generation of the \fIMH\fR system.If all goes well, proceed with installation.If not, complain, as there \*(lqshould be no problems\*(rq at this step..SH INSTALLATIONIf the directories you chose for the user\-programs,support\-programs and manuals(\*(lqbin\*(rq, \*(lqetc\*(rq, \*(lqpopdir\*(rq, \*(lqslibdir\*(rq,and \*(lqmandir\*(rq in the \fBconf/MH\fR file)don't exist,you should create them at this point..PPNext, if you enabled support for the UCI BBoards facility,then create a logincalled \*(lqbboards\*(rq with the following characteristics:home directory is \fB/usr/spool/bboards/\fR with mode 755(actually, use the value for \*(lqbbhome\*(rq given in the \fIMH\fRconfiguration file),login shell is \fB/bin/csh\fR (or \fB/bin/sh\fR),and, encrypted password field is \*(lq*\*(rq.The \*(lqbboards\*(rq login should own the \fB/usr/spool/bboards/\fRdirectory.In addition to creating \fB/usr/spool/bboards/\fR,also create \fB/usr/spool/bboards/etc/\fRand \fB/usr/spool/bboards/archive/\fR.These directories should also be owned by the \*(lqbboards\*(rq login..PPIf you enabled support for POP,then on the POP service host,create a login called \*(lqpop\*(rq with the following characteristics:home directory is \fB/usr/spool/pop/\fR with mode 755,login shell is \fB/bin/csh\fR,and, encrypted password field is \*(lq*\*(rq.If you don't have \fB/bin/csh\fR on your system (V7),then \fB/bin/sh\fR is just fine.The \*(lqpop\*(rq login should own the \fB/usr/spool/pop/\fR directory.You'll also need to add a line to the \fB/etc/services\fR file and the\fB/etc/rc.local\fR file,see the \fIAdministrator's Guide\fR  for more details..PPIf this is not the first time you have installed \fIMH\fR,these files will need particular attention:.nf.in +.5i.ta \w'VeryVeryBigDirectoryName  'u\fIDirectory\fR	\fIFiles\fR\*(lqetc/\*(rq	MailAliases, BBoardAliases, mtstailor/usr/spool/bboards/	BBoards, \&.cshrc, \&.mh\(ruprofile/usr/spool/bboards/etc/	*.re.in -.5i.fi.PPThe \fBMailAliases\fR, \fBBBoardAliases\fR, \fBmtstailor\fR and \fBBBoards\fRfiles will \fBNOT\fP be installed over existing copies;you will need to edit these byhand and merge in any changes from your previous \fIMH\fR release.The other files under \fB/usr/spool/bboards/\fR will be overwrittenif they exist.You may wish to preserve your old versions of these before installing\fIMH\fR..PPAs the super-user, and from the mh.6/ directory, install the system..sp 1.nf# make inst\-all.fi.sp 1This will cause the \fIMH\fR processes and files to be transferred to the appropriate areaswith the appropriate attributes..SH TAILORINGSee the \fIAdministrator's Guide\fR for information on tailoring \fIMH\fR forthe MTS, BBoards, and POP..SH DOCUMENTATIONIn addition to this document,the \fIAdministrator's Guide\fP,and the \fIUser's Manual\fP,there are several documents referenced by the user's manual which may beuseful.The sources for all of these can be found under the \fBpapers/\fR directory..SH "OTHER THINGS"Consult the directory \fBmiscellany/\fR for the sources to a number of thingswhich aren't part of the mainstream \fIMH\fR distribution,but which are still quite useful..SH FILESToo numerous to mention.  Really..SH "SEE ALSO"make(1).SH BUGSThe \fImhconfig\fR program should be smarter..PPThere's no way to print the \fIAdministrator's Guide\fPuntil after you have configured the system; it is difficultto configure the system without the \fIAdministrator's Guide\fP..PPThe Makefiles should know when \fImhconfig\fR has been run and force\*(lqmake clean\*(rq behavior.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -