config_query DSPAM_SQLITE 'Enable SQLite driver?' n
config_query DSPAM_DB     'Enable Berkeley DB driver?' n
config_query DSPAM_MYSQL  'Enable MySQL driver?' n
config_query DSPAM_PGSQL  'Enable PostgreSQL driver?' n

if [[ "$DSPAM_PGSQL" == 'y' || "$DSPAM_MYSQL" == 'y' ]] ; then
  config_query DSPAM_VIRTUAL_USERS 'Enable virtual users?' n
fi

config_query_option DSPAM_DAEMON 'Enable daemon mode?' y '--enable-daemon' '--disable-daemon'
config_query_option DSPAM_LARGE_SCALE 'Enable large scale mode?' y '--enable-large-scale' ''
if [[ -z "$DSPAM_LARGE_SCALE"  ]] ; then
  config_query_option DSPAM_DOMAIN_SCALE 'Enable domain scale mode?' n '--enable-domain-scale' ''
fi

config_query_option DSPAM_PREFS 'Enable preferences extension?' y '--enable-preferences-extension' '--disable-preferences-extension'
