3 #include <netinet/in.h>
4 #include <arpa/nameser.h>
6 #include "sysdep_decls.h"
9 #define SMART_HOST "gatekeeper.wdcs.com"
14 * Return one or more MX's for a mail destination.
16 * Upon success, it fills 'mxbuf' with one or more MX hosts, separated by
17 * vertical bar characters, and returns the number of hosts as its return
18 * value. If no MX's are found, it returns 0.
21 int getmx(char *mxbuf, char *dest) {
26 /* If we're configured to send all mail to a smart-host, then our
27 * job here is really easy.
30 strcpy(mxbuf, SMART_HOST);
34 /* No smart-host? Look up the best MX for a site.
38 C_IN, T_MX, answer, sizeof(answer) );
40 lprintf(9, "res_query() returned %d\n", ret);
41 return(0); /* FIX not yet working!! */