Lines Matching refs:mx
87 # $mxbacktrace{"$users[0] *** $server"} : record of mx expansion
88 # $mx_secondary{$server} : other mx relays at the same priority
156 &giveup('mx domainify',$giveup{$server});
160 # do we already have an mx record for this host?
163 # look it up, or try for an mx.
173 # get a connection, or look for an mx
185 &giveup('mx',"$server: Could not connect: $emsg");
296 $newmxhost = &mx($newhost,$newaddr);
297 print "$newmxhost = &mx($newhost)\n"
440 next if &try_fallback('mx',$u,*server,
496 } elsif (($method eq 'mx') && (defined $mxbacktrace{$us}) && (defined $mx_secondary{$mxbacktrace{$us}})) {
510 if ($method eq 'mx') {
520 $mx{&trhost($oldhost)} = $newhost;
917 # re-queue users if an mx record dictates a redirect
924 $nserver = &mx($server);
927 $0 = "$av0 - mx redirect $server -> $nserver\n";
947 # follow mx records, return a hostname
950 sub mx
955 if (defined $mx{&trhost($h)} && $h ne $mx{&trhost($h)}) {
956 $0 = "$av0 - mx expand $h";
957 $h = $mx{&trhost($h)};
980 # look up mx records with the name server.
996 if ((defined $mx{$server}) || (! $have_nslookup)) {
998 &giveup('mx domainify',$giveup);
1044 &giveup('mx domainify',"$server: Could not resolve address");
1059 &giveup('mx domainify',"$nserver: could not resolve address");
1064 $mx{&trhost($server)} = $nserver;
1068 &giveup('mx domainify',"$nserver: only one level of mx redirect allowed");
1074 # if mx expansion did not help to resolve an address