tyager@maxx.UUCP (Tom Yager) (07/30/88)
I'm running the Xenix-patched version of smail 2.5 and running into a small problem: every time I send mail to a domain address, it gets resolved to all uucp. Example: fred@decwrl.dec.com gets resolved to smarthost!decwrl.dec.com!fred It is correctly determining that I want it routed through the smart-host, but I'd prefer it left the domain portion of the address alone and resolved to smarthost!fred@decwrl.dec.com because the 'smarthost' is running sendmail, which is not smart enough to route through the net if bang addressing is supplied (I think). Is this something smail is not able to do? I am hoping that a simple change to defs.h will give me the results I seek as I don't really have time to hack up the code. Thanks to all in advance. (ty) -- ----- Tom Yager E-Mail: ... decvax!mkunix!maxx!tyager --or-- ...tyager%maxx@m2c.m2c.org "Eat a live toad in the morning; nothing worse will happen to you that day."
james@bigtex.uucp (James Van Artsdalen) (08/01/88)
In article <28@maxx.UUCP>, tyager@maxx.UUCP (Tom Yager) wrote: > [...] every time I send mail to a domain address, it gets resolved to > all uucp. Example: > fred@decwrl.dec.com > gets resolved to > smarthost!decwrl.dec.com!fred > [...] I'd prefer it left the domain portion of the address alone and > resolved to > smarthost!fred@decwrl.dec.com The problem here is the issue of what a!b!c means vs. a!c@b. Many if not most mailers consider @ to be higher priority than ! - for example, feed smail your "smarthost!fred@decwrl.dec.com". I'll bet you get back "smarthost!decwrl.dec.com!smarthost!fred", which isn't what you wanted at all. I believe that RFC822 requires that @ have a higher priority than !, and that smail's interpretation is correct. In general it is a bad idea to mix ! and @. decwrl.dec.com!fred is perfectly legal under RFC976, and probably desired. -- James R. Van Artsdalen ...!ut-sally!utastro!bigtex!james "Live Free or Die" Home: 512-346-2444 Work: 328-0282; 110 Wild Basin Rd. Ste #230, Austin TX 78746
davidsen@steinmetz.ge.com (William E. Davidsen Jr) (08/03/88)
In article <28@maxx.UUCP> tyager@maxx.UUCP (Tom Yager) writes: | I'm running the Xenix-patched version of smail 2.5 and running into a small | problem: every time I send mail to a domain address, it gets resolved to | all uucp. Example: There's nothing wrong with that, it's a valid address. When you parse an address like a!b@c, the default is to treat it as if it were c!a!b. If you want it the other way, there is code (sorry, can't remember just where, I *think* in resolve.c) which has the code in sequence; check for @ else check for !. I just reversed the order of these checks and it works just fine the other was, ! before @. I can't really offer you the patches, since I have hacked the program *mightily* to work for another environment, but that's what does it. -- bill davidsen (wedu@ge-crd.arpa) {uunet | philabs | seismo}!steinmetz!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me