src/Makefiles/Makefile.Linux.
DBMDEF= -DNDBM -DNEWDB -DHESIOD
LIBS= -lgdbm -ldb -lresolv -lhesiod
This functionality is shown with this example M4 Makefile exerpt. Just add this to your already running M4 configuration file to get the HESIOD enhanced capability.
File: sparks.mc (m4 makefile)
LOCAL_CONFIG # Declare mbt as a hash-lookup database: Kmbt hash /etc/mbt.db # Hesiod Database - look it up in the 'maildrop' hesiod type Khesmail hesiod maildrop LOCAL_RULE_0 # Use mailboxtable-database: R$+ < @ $+ . > $: $1 < @ $2 > . R$+ < @ $+ > $* $: $(mbt $1@$2 $: $1 < @ $2 > $3 $) R$+ < @ $+ > $* $: $(hesmail $1@$2 $: $1 < @ $2 > $3 $) R$+ < @ $+ > $* $: $(mbt $2 $: $1 < @ $2 > $3 $) RERROR $* $#error $: $1 R$+ < @ $+ > . $: $1 < @ $2 . >
File: /etc/mbt
# /usr/sbin/makemap hash mbt.db <mbt # Format is <user@site> <replacement user@site> # # joe@somedom.com joe # jim@somedom.com jim@othersite # somedom.com ERROR "No such user" # flora.ottawa.on.ca ERROR "User not found in Virtual Domain" flora.org ERROR "User not found in Virtual Domain"