aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile7
-rw-r--r--defconfig2
2 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0720cfa..360ae63 100644
--- a/Makefile
+++ b/Makefile
@@ -30,6 +30,13 @@ else
CFLAGS += "-Dmempool_unref(x)=pool_unref(x)"
endif
+# backend error check
+ifeq ("$(BACKEND)", "")
+error:
+ @echo "Error! no backend configured"
+ @false
+endif
+
# per-backend rules
ifeq ("$(BACKEND)", "dspam-exec")
objs += signature.o
diff --git a/defconfig b/defconfig
index 3ce8bdc..15ff857 100644
--- a/defconfig
+++ b/defconfig
@@ -27,7 +27,7 @@ DOVECOT_VERSION=1.0
# dspam-exec - direct dspam training by calling dspam executable
# signature-log - signature logging using dovecot's dict API
# mailtrain - send mail to special addresses for training
-BACKEND=dspam-exec
+#BACKEND=dspam-exec
#BACKEND=signature-log
#BACKEND=mailtrain