]> git.ipfire.org Git - people/ms/dma.git/blobdiff - dma.h
implement the "*" catch-all alias
[people/ms/dma.git] / dma.h
diff --git a/dma.h b/dma.h
index da3741c47faeda83e30c9a763635a436ac04dc8b..a1e4b8c4f5a8b0c7b67b2ef01223f8874553f8e7 100644 (file)
--- a/dma.h
+++ b/dma.h
 #define TLS_OPP                0x080           /* Opportunistic STARTTLS */
 
 #ifndef CONF_PATH
-#define CONF_PATH      "/etc/dma/dma.conf"     /* Default path to dma.conf */
+#error Please define CONF_PATH
 #endif
 
+#ifndef LIBEXEC_PATH
+#error Please define LIBEXEC_PATH
+#endif
+
+#define DMA_ROOT_USER  "mail"
+#define DMA_GROUP      "mail"
+
+
 struct stritem {
        SLIST_ENTRY(stritem) next;
        char *str;
@@ -113,6 +121,8 @@ struct config {
        const char *certfile;
        int features;
        const char *mailname;
+       const char *masquerade_host;
+       const char *masquerade_user;
 
        /* XXX does not belong into config */
        SSL *ssl;
@@ -177,6 +187,8 @@ int base64_encode(const void *, int, char **);
 int base64_decode(const char *, void *);
 
 /* dma.c */
+#define EXPAND_ADDR    1
+#define EXPAND_WILDCARD        2
 int add_recp(struct queue *, const char *, int);
 void run_queue(struct queue *);