Hi,
Has anyone configured sendmail with hash database. This is a recommended technique, published on the Web by DEC.
I am running DU 4.0b
1. I created the database mbt.db with this utility.
makemap hash mbt.db <mbt
2. I modified sendmail.cf as follows.
# Declare mbt as a hash-lookup database:
Kmbt hash /etc/mail/mbt.db
In the Ruleset 98 section (local part of ruleset 0):
# Use mailboxtable-database:
R$+ < _at_ $+ . > $: $1 < _at_ $2 > .
R$+ < _at_ $+ > $* $: $(mbt $1_at_$2 $: $1 < _at_ $2 > $3 $)
R$+ < _at_ $+ > $* $: $(mbt $2 $: $1 < _at_ $2 > $3 $)
RERROR $* $#error $: $1
R$+ < _at_ $+ > . $: $1 < _at_ $2 . >
3. Cannot restart sendmail.
The errors in mail.log are:
Nov 23 14:05:50 www sendmail[19597]: NOQUEUE: SYSERR(root): /etc/sendmail.cf: li
ne 670: Inappropriate use of $* on RHS
Nov 23 14:05:50 www sendmail[19597]: NOQUEUE: SYSERR(root): /etc/sendmail.cf: li
ne 670: replacement $3 out of bounds
Nov 23 14:05:50 www sendmail[19597]: NOQUEUE: SYSERR(root): /etc/sendmail.cf: li
ne 671: Inappropriate use of $* on RHS
Nov 23 14:05:50 www sendmail[19597]: NOQUEUE: SYSERR(root): /etc/sendmail.cf: li
ne 671: replacement $3 out of bounds
Nov 23 14:05:50 www sendmail[19623]: NOQUEUE: SYSERR(root): /etc/sendmail.cf: li
ne 670: Inappropriate use of $* on RHS
Nov 23 14:05:50 www sendmail[19623]: NOQUEUE: SYSERR(root): /etc/sendmail.cf: li
ne 670: replacement $3 out of bounds
Nov 23 14:05:50 www sendmail[19623]: NOQUEUE: SYSERR(root): /etc/sendmail.cf: li
ne 671: Inappropriate use of $* on RHS
Nov 23 14:05:50 www sendmail[19623]: NOQUEUE: SYSERR(root): /etc/sendmail.cf: li
ne 671: replacement $3 out of bounds
Thanks
Ziggy
Received on Mon Nov 24 1997 - 23:35:31 NZDT