[net.bugs.4bsd] .ARPA hard coded into sendmail/src/daemon.c

martin@vax135.UUCP (Martin Levy) (03/02/84)

when using sendmail around a local ethernet and or thru any other media
where sendmail (in daemon mode) get's it's mail via sockets, it will set
up the Received header line like this:-

Received: from vax135.UUCP (vax135.ARPA) by marvin.UUCP (4.12/4.7)
	id AA03076; Thu, 1 Mar 84 19:58:24 est

now, we are not on the ARPANET, and hence the .ARPA is not correct. this
is very hard coded in, and only happens when the HELO argument (SMTP RFC???)
does not match gethostbyaddr() of the socket.
now, i pass vax135.UUCP over as the HELO arg, and the output of gethostaddr()
is "vax135", ok so whats up?, i think i should just send over "HELO vax135",
but the default sendmail scripts use vax135.UUCP.
a simple fix is to put .ether instead of .ARPA in the name, but that's even 
worse!!.
whats the correct fix while still leaving things 'configurable' by sendmail.cf?.

martin levy.

bill@cornell.UUCP (Bill Nesheim) (03/05/84)

Wouldn't it be better to use the localnet name, instead of .ARPA or .ether?
We have several localnets here, and it sure would be nice to see
the localnet name put in where the .ARPA is hard coded now.

Opinions?

		-- Bill Nesheim
		Cornell U. Dept of Computer Science
		{vax135,uw-beaver}!cornell!bill
		bill@cornell
		bill@CRNLCS.BITNET

rick@seismo.UUCP (Rick Adams) (03/15/84)

Re:
	Nothing is hard-coded into sendmail.  It all comes from the .cf file.
	I know they're hard to deal with, but all the flexibility you
	want is there.

Funny, this certainly looks hardcoded to me:
		/* determine host name */
		hp = gethostbyaddr(&otherend.sin_addr, sizeof otherend.sin_addr, AF_INET);
		if (hp != NULL)
--->			(void) sprintf(buf, "%s.ARPA", hp->h_name);
		else
			/* this should produce a dotted quad */
			(void) sprintf(buf, "%lx", otherend.sin_addr.s_addr);
		RealHostName = newstr(buf);

How do you propose I get it to say .UUCP instead of .ARPA?

---rick

ed@unisoft.UUCP (Ed Gould) (03/20/84)

Nothing is hard-coded into sendmail.  It all comes from the .cf file.
I know they're hard to deal with, but all the flexibility you
want is there.

-- 
Ed Gould
ucbvax!mtxinu!ed