change bestmx map to not do resolver domain searching (RES_DNSRCH)
[unix-history] / usr / src / usr.sbin / sendmail / src / map.c
index 3157675..9ea2099 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)map.c      8.77 (Berkeley) %G%";
+static char sccsid[] = "@(#)map.c      8.78 (Berkeley) %G%";
 #endif /* not lint */
 
 #include "sendmail.h"
 #endif /* not lint */
 
 #include "sendmail.h"
@@ -2582,36 +2582,6 @@ user_map_lookup(map, key, av, statp)
        }
 }
 \f/*
        }
 }
 \f/*
-**  BESTMX -- find the best MX for a name
-**
-**     This is really a hack, but I don't see any obvious way
-**     to generalize it at the moment.
-*/
-
-#if NAMED_BIND
-
-char *
-bestmx_map_lookup(map, name, av, statp)
-       MAP *map;
-       char *name;
-       char **av;
-       int *statp;
-{
-        int nmx;
-        auto int rcode;
-        char *mxhosts[MAXMXHOSTS + 1];
-
-       nmx = getmxrr(name, mxhosts, FALSE, &rcode);
-       if (nmx <= 0)
-               return NULL;
-       if (bitset(MF_MATCHONLY, map->map_mflags))
-               return map_rewrite(map, name, strlen(name), NULL);
-       else
-               return map_rewrite(map, mxhosts[0], strlen(mxhosts[0]), av);
-}
-
-#endif
-\f/*
 **  Program map type.
 **
 **     This provides access to arbitrary programs.  It should be used
 **  Program map type.
 **
 **     This provides access to arbitrary programs.  It should be used