Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!linac!mp.cs.niu.edu!rickert From: rickert@mp.cs.niu.edu (Neil Rickert) Newsgroups: comp.mail.sendmail Subject: Re: Help configuring sendmail in subdomain on NeXT cube Message-ID: <1991Jun5.221623.20086@mp.cs.niu.edu> Date: 5 Jun 91 22:16:23 GMT References: <172680@tiger.oxy.edu> Distribution: usa Organization: Northern Illinois University Lines: 50 In article <172680@tiger.oxy.edu> prophet@oxy.edu (Dale Bruce LaFountain) writes: >I have since changed the hostname to the full domainname (cub.math.oxy.edu) >and all of the above partially qualified addresses became fully qualified. >However, this is not a good solution to this problem. You can always define $w to be the fully qualified name, early in sendmail.cf Dwcub.math.oxy.edu Actually, if you have a 'sendmail.mx' you should probably be using that, in which case you may not need the Dw line. >To make matters worse, sending mail from bobcat.oxy.edu to cub.math.oxy.edu >will bounce, giving the error message 'Cannot find hostname "cub" "." "math" >in domain "oxy.edu".' I can, however, send mail to both 'prophet@cub' and This is a sure sign the address is not being recognized as local. >Several questions arise from my above ramblings: >1) Why does sendmail look at my hostname instead of my domainname when > building the mail headers? (and the next logical question of how > to fix it...) It uses $j. You defined $j to be $w which is your hostname. If you make $w your fully qualified hostname, and define $j after defining $w, this problem will be resolved. >2) Why does sendmail recognize user@cub.math.oxy.edu when mailed locally > (even though it mungs the address anyway) but doesn't recognize it when > mail comes through the SMTP port? Because you didn't kill and restart the daemon after changing sendmail.cf. Your SMTP daemon is still running on the old configuration. >3) Why does sendmail chop the To: line down to the domain of my machine when > sending mail to myself with a fully qualified address? Very likely there is a hostname lookup taking place. If you use 1.2.3.4 cub cub.math.oxy.edu you are telling it that 'cub' is the official name, and 'cub.math.oxy.edu' is an alias. If you go to a 'sendmail.mx' version, and have /etc/resolv.conf pointing to a suitable nameserver, this problem will probably go away. -- =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= Neil W. Rickert, Computer Science Northern Illinois Univ. DeKalb, IL 60115 +1-815-753-6940