File:  [CSRG BSD Unix] / 43BSD / usr.lib / sendmail / README_FOR_NAME_SERVER
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:55 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43
BSD 4.3

Greetings,

	To run sendmail with the name server you must:

	1) rebuild sendmail with the -lresolv
	2) rewrite the configuration files

	The -lresolv selects the gethostby* calls that
utilize the name server and resolver.  The module that
uses the gethostby* calls is daemon.c.  An example
Makefile is src/Makefile.ns.
	The directory nscf contains example configuration
files for interfacing with the name server.  A new right
hand side syntax has been added - $[ and $].  Anything
enclosed between the two is passed to maphostname in
daemon.c to be resolved by the name server via the
gethostbyname().  For example the ruleset:

R$+<@$-.ARPA>	$@$1<@$[$2.ARPA$]>

when passed [email protected] will pass host.ARPA to the
name server for qualification.  This might return
host.berkeley.edu if this were host@ARPA's fully
qualified name.  For additional information about the
name server and resolver see the man pages.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.