Path: utzoo!utgpu!water!watmath!clyde!bellcore!rutgers!cmcl2!lanl!hc!hi.unm.edu!kurt From: kurt@hi.unm.edu (Kurt Zeilenga) Newsgroups: comp.mail.sendmail Subject: Re: MX records and gateways Message-ID: <23624@hi.unm.edu> Date: 10 Aug 88 03:18:47 GMT References: <452@umn-d-ub.D.UMN.EDU> Reply-To: kurt@hi.unm.edu (Kurt Zeilenga) Organization: U. of New Mexico, Albuquerque Lines: 58 rhealey@ub.d.umn.edu (Rob Healey) writes (edited): > > For the past few weeks, off and on, I've been trying to futts > with sendmail 5.59 so it will send a message to a gateway when > it finds that a site is a UUCP connection off the internet > site that holds it's MX record. An MX record just gives you a mail exchangers. It says nothing about how your mail will be exchanged to its dest. It could be IP (SMTP), UUCP, BITNET, DECNET, SLIP, CSNET or just about anything. Mostlikily it will be forwarded with LOCAL! Assuming that it is a UUCP connection is WRONG and should not be done! > I did a -d8.99 and the nameserver IS finding the MX record AND > the gateway info, it's just not telling sendmail about it. B^(. Sendmail doesn't need to know! > When you do a $[ site $] how do you tell that a gateway is in You don't, $[ $] are for canonicalize. > the picture. It appears that since it finds some reference to > joe.com it assumes it's a tcp destination; DEAD WRONG assumption. No. It assumes you are going to talk SMTP with the mail exchanger. Dead right good idea. > I guess I need to reparse the output of $[ site $] somehow, what No, $[ $] is going to return the canonical name for the site (if known). > Any help would be greatly appreciated, I would suggest do something similiar to what we do: 1) rewrite address into a standard form and canonicalize with named 2) check to see if it is you - deliver with "local" 3) check to see if it someone you chat with over a non-SMTP link - deliver using whatever 4) check to see if it is a psuedo-domain (.UUCP, .BITNET, etc.)) - deliver to Internet-Whatever gateway 5) Assume SMTP - deliver to lowest MX (or Addr if no MX) 6) Error if not yet delivered. If you're Internet based I see no need to use the UUCP maps for routing and would rather NOT have my domain registered with the project. Use BIND, that's what it's there for. > -Rob Healey > rhealey@ub.d.umn.edu -- Kurt