* Added a new category 'fallback smart host'. These are smart hosts that are used...
[citadel.git] / citadel / domain.c
index 304cf0ef846d9fc63ba9f863e05adf3c03bc20dd..7b862e97dba97d0e42b7a70388af1d5487402b0f 100644 (file)
@@ -224,5 +224,10 @@ int getmx(char *mxbuf, char *dest) {
                strcat(mxbuf, "|");
        }
        free(mxrecs);
+
+       /* Append any fallback smart hosts we have configured.
+        */
+       num_mxrecs += get_hosts(&mxbuf[strlen(mxbuf)], "fallbackhost");
+       CtdlLogPrintf(CTDL_DEBUG, "\033[33m%d: %s\033[0m\n", num_mxrecs, mxbuf);
        return(num_mxrecs);
 }