X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fdomain.c;h=18764725e093ae357795411e0915d35364a88107;hb=HEAD;hp=df44d21ddc0010026d0c862867d6a7e5ab077a3b;hpb=5dc36f6bbd05e378117d8a47fb759916d689376f;p=citadel.git diff --git a/citadel/domain.c b/citadel/domain.c deleted file mode 100644 index df44d21dd..000000000 --- a/citadel/domain.c +++ /dev/null @@ -1,42 +0,0 @@ -#include -#include -#include -#include -#include -#include "sysdep_decls.h" -#include "domain.h" - -#define SMART_HOST "gatekeeper.wdcs.com" - -/* - * getmx() - * - * Return one or more MX's for a mail destination. - * - * Upon success, it fills 'mxbuf' with one or more MX hosts, separated by - * vertical bar characters, and returns the number of hosts as its return - * value. If no MX's are found, it returns 0. - * - */ -int getmx(char *mxbuf, char *dest) { - char answer[1024]; - int ret; - - - /* If we're configured to send all mail to a smart-host, then our - * job here is really easy. - */ - if (1) { /* FIX */ - strcpy(mxbuf, SMART_HOST); - return(1); - } - - /* No smart-host? Look up the best MX for a site. - */ - ret = res_query( - dest, - C_IN, T_MX, answer, sizeof(answer) ); - - lprintf(9, "res_query() returned %d\n", ret); - return(0); /* FIX not yet working!! */ -}