# These could be used by sendmail, but are not part of the default install.
# To use them you will have to generate your own sendmail.cf with
#  FEATURE('whatever')
#
POSSIBLE += $(shell test -f bitdomain     && echo bitdomain.db)
POSSIBLE += $(shell test -f uudomain      && echo uudomain.db)
POSSIBLE += $(shell test -f genericstable && echo genericstable.db)
POSSIBLE += $(shell test -f userdb	  && echo userdb.db)


all: ${POSSIBLE} virtusertable.db access.db domaintable.db mailertable.db

userdb.db: userdb
	@makemap btree $@ < $<

%.db: %
	@makemap hash $@ < $<

clean:
	rm -f *.db *~

start:
	service sendmail start

stop:
	service sendmail stop

restart:
	service sendmail restart

