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

📄 main.mc

📁 操作系统SunOS 4.1.3版本的源码
💻 MC
字号:
##############################################################	Sendmail configuration file for "MAIN MACHINES"##	You should install this file as /etc/sendmail.cf#	if your machine is the main (or only) mail-relaying#	machine in your domain.  Then edit the file to#	customize it for your network configuration.##	See the manual "System and Network Administration for the Sun#	Workstation". Look at "Setting Up The Mail Routing System" in#	the chapter on Communications.  The Sendmail reference in the#	back of the manual is also useful.##	@(#)main.mc 1.1 92/07/30 SMI####	local info# my official hostname# You have two choices here.  If you want the gateway machine to identify# itself as the DOMAIN, use this line:Dj$m# If you want the gateway machine to appear to be INSIDE the domain, use:#Dj$w.$m# Unless you are using sendmail.mx (or have a fully-qualified hostname), use:#Dj$w# major relay mailer - typical choice is "ddn" if you are on the# Defense Data Network (e.g. Arpanet or Milnet)DMsmartuucp# major relay host: use the $M mailer to send mail to other domainsifdef(`m4GATEWAY',, `define(m4GATEWAY,ddn-gateway)')dnlDR m4GATEWAYCR m4GATEWAY# If you want to pre-load the "mailhosts" then use a line like# FS /usr/lib/mailhosts# and then change all the occurences of $%y to be $=S instead.# Otherwise, the default is to use the hosts.byname map if NIS# is running (or else the /etc/hosts file if no NIS).# valid top-level domains (default passes ALL unknown domains up)CT arpa com edu gov mil net org CT us de fr jp kr nz il uk no au fi nl se ca ch my dk ar# options that you probably want on a mailhost:# checkpoint the queue after this many receipientsOC10# refuse to send tiny messages to more than these recipientsOb10include(sunbase.m4)include(uucpm.m4)include(ddnm.m4)# "Smart" UUCP mailer: Uses UUCP transport but domain-style namingMsmartuucp, P=/usr/bin/uux, F=CmsDFMhuU, S=22, R=22, 	A=uux - -r $h!rmail ($u)	##############################################################		RULESET ZERO##	This is the ruleset that determines which mailer a name goes to.# Ruleset 30 just calls rulesets 3 then 0.S30R$*			$: $>3 $1			First canonicalizeR$*			$@ $>0 $1			Then rerun ruleset 0S0# On entry, the address has been canonicalized and focused by ruleset 3.# Handle special cases.....R@			$#local $:$n			handle <> form# resolve the local hostname to "LOCAL".R$*<$*$=w.LOCAL>$*	$1<$2LOCAL>$4			thishost.LOCALR$*<$*$=w.uucp>$*	$1<$2LOCAL>$4			thishost.uucpR$*<$*$=w>$*		$1<$2LOCAL>$4			thishost# Mail addressed explicitly to the domain gateway (us)R$*<@LOCAL>		$@$>30$1			strip our name, retryR<@LOCAL>:$+		$@$>30$1			retry after route strip# For numeric spec, you can't pass spec on to receiver, since old rcvr's# are not smart enough to know that [x.y.z.a] is their own name.R<@[$+]>:$*		$:$>9 <@[$1]>:$2		Clean it up, then...R<@[$+]>:$*		$#ether $@[$1] $:$2		numeric internet specR<@[$+]>,$*		$#ether $@[$1] $:$2		numeric internet specR$*<@[$+]>		$#ether $@[$2] $:$1		numeric internet spec# deliver to known ethernet hosts explicitly specified in our domainR$*<@$%y.LOCAL>$*	$#ether $@$2 $:$1<@$2>$3	user@host.sun.com# etherhost.uucp is treated as etherhost.$m for now.# This allows them to be addressed from uucp as foo!sun!etherhost!user.R$*<@$%y.uucp>$*	$#ether $@$2 $:$1<@$2>$3	user@etherhost.uucp# Explicitly specified names in our domain -- that we've never heard ofR$*<@$*.LOCAL>$*	$#error $:Never heard of host $2 in domain $m# Clean up addresses for external use -- kills LOCAL, route-addr ,=>: R$*			$:$>9 $1			Then continue...# resolve UUCP-style namesR<@$-.uucp>:$+		$#uucp  $@$1 $:$2		@host.uucp:...R$+<@$-.uucp>		$#uucp  $@$2 $:$1		user@host.uucp# Pass other valid names up the ladder to our forwarder#R$*<@$*.$=T>$*		$#$M    $@$R $:$1<@$2.$3>$4	user@domain.known# Replace following with above to only forward "known" top-level domainsR$*<@$*.$+>$*		$#$M    $@$R $:$1<@$2.$3>$4	user@any.domain# if you are on the DDN, then comment-out both of the the lines above# and use the following instead:#R$*<@$*.$+>$*		$#ddn $@ $2.$3 $:$1<@$2.$3>$4	user@any.domain# All addresses in the rules ABOVE are absolute (fully qualified domains).# Addresses BELOW can be partially qualified.# deliver to known ethernet hostsR$*<@$%y>$*		$#ether $@$2 $:$1<@$2>$3	user@etherhost# other non-local names have nowhere to go; return them to sender.R$*<@$+.$->$*		$#error $:Unknown domain $3R$*<@$+>$*		$#error $:Never heard of $2 in domain $mR$*@$*			$#error $:I don't understand $1@$2# Local names with % are really not local!R$+%$+			$@$>30$1@$2			turn % => @, retry# everything else is a local nameR$+			$#local $:$1			local names

⌨️ 快捷键说明

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