abrams@cass.amd.bnl.gov (The Ancient Programmer) (02/09/91)
I have built trn on my Sun3 (OS4.1) and it reads news beautifully. However, I have encountered one problem, and have been unable to locate the cause of it. My machines name is dan.amd.bnl.gov, but when I post an article that machine the From: line says "From abrams@dan.tmc.edu". Grepping the trn source for "dan.amd" produces: Pnews: '') sitename="dan.amd" ;; Pnews: sitename="dan.amd" Rnmail: '') sitename="dan.amd" ;; Rnmail: undef) sitename="dan.amd" ;; config.h: #define SITENAME "dan.amd" config.sh: sitename='dan.amd' and a grep for "bnl.gov": Pnews: sitename=${sitename}.bnl.gov Rnmail: sitename=${sitename}.bnl.gov config.h: #define OURDOMAIN "bnl.gov" config.sh: domain='bnl.gov' And in NNTP/common/conf.h: #define DOMAIN "bnl.gov" I've defined HOSTFILE in config.h as dan.amd.bnl.gov #define HOSTFILE "/usr/local/lib/usenetname" I then thought that I could find tmc.edu in either trn's or nntp's source. All that I turned up were comments! grep tmc.edu Nntp/*/* Nntp/common/README.SYSV: from archi... Nntp/common/README.SYSV: If you hav... Nntp/doc/nntpd.dst: Stan Barber (In... Nntp/inews/inews.c: * Send bug rep... Nntp/server/main.c: * (Internet: ... Nntp/server/misc.c: * by Stan Barb... Nntp/server/misc.c: * written by S... Nntp/support/nntp_awk: # Stan Barbe... Nntp/xfer/nntpxfer.c: * Stan Barbe... #dan<su 11> grep tmc.edu Trn/* Trn/trn.1: and is now under the... Trn/trn.1.02: and is now under ... Question: Where is the tmc.edu coming from in my From: line? I had to login on this machine in order to post an article with the correct return address. Any clues as to what to do or what to look for would be greatly appreciated. Thanks in advance.
abrams@dan.amd.bnl.gov (The Ancient Programmer) (02/13/91)
Thanks to a clue from Don "Truck" Lewis of Harris Semiconductor, I was lead to the solution to the problem. > Check the definition of DOMAIN in Nntp/common/conf.h. Be sure that it > was correct when you built inews. > -- > Don "Truck" Lewis Harris Semiconductor Domain was defined correctly, however a close reading of the docs concerning DOMAIN showed me what the solutions was. By changing my hostname.le0 file to contain my fully qualified name, and undefining DOMAIN in common/conf.h, the From: line was corrected. I still do not know how tmc.edu got into my From: line. What the hell, it's working. -- INTERNET: abrams@bnl.gov |/ | ^ BITNET: abrams@bnlux0.BITNET |\ |__ /-\