🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.misc
Article #4201

Re: whether to prefix myhost! onto the From: or not..

#4201
From: Jeff Siegal
Date: Sat, 09 May 1987 01:18
53 lines
2804 bytes
In article <749@mcgill-vision.UUCP> mouse@mcgill-vision.UUCP (der Mouse) writes:
>Smail uses sendmail, right?  How does smail persuade sendmail to put
>different things in the From_ and From: lines?  I never managed to make
>sendmail change the From_ line without changing the From: line at the
>same time.

It doesn't.  The fix is to change sendmail.cf so that it _doesn't_ do
anything to either the From_ or From: lines.  The message then goes
through smail, which doesn't touch the From: line.  If you are a
uucp-only site, there is an option to smail to skip sendmail
altogether (smail replaces rmail, so it can process incoming message
directly if they aren't going to go somewhere other than uucp).

>What if it isn't in domain format originally?  What happens to mail
>that was really truly sent to a bang address?  

If your machine processes mail from/to a network that adheres to the
rfc822 mail standard, then mail that originates at your host, but is
transported elsewhere on the net should contain a From: line of the
form: 

	From: localpart@domainpart

Where domainpart is your hostname, and localpart is something that can be
interpreted by your mail software.  

So mail coming from uucp, in non-domain format, going to the other net
should have its From: line modified by appending an "@" and your
hostname:

	From: uucp-path-from-host-abc.com@abc.com

If the mail is coming from uucp, and going to uucp (through your
machine), you have the option of using a From: line of the above form,
or prepending your hostname and a "!".  As long as the message stays
within uucp, path-format From: lines are fine.  At sites like this
one, where many networks are involved, we chose put non-domain format
From: lines into domain format (i.e. append @hostname) whenever they
are leaving the machine, which is legal according to everybody's
standards.

>Wheredo we get a fix to just this problem, without dragging in all the
>rest of smail?

You don't.  At least not with sendmail.  Smail isn't that bad, though
(and doesn't take very long to install):

% size /bin/smail
text	data	bss	dec	hex
23552	5120	15844	44516	ade4
%

Jeff
Technical Details
Message-ID: <5760@eddie.MIT.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ll-xn!mit-eddie!jbs
References: <16238@amdcad.AMD.COM> <3546@cbosgd.ATT.COM> <749@mcgill-vision.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ll-xn!mit-eddie!jbs
From: jbs@eddie.MIT.EDU (Jeff Siegal)
Newsgroups: comp.mail.misc,comp.mail.uucp
Subject: Re: whether to prefix myhost! onto the From: or not..
Message-ID: <5760@eddie.MIT.EDU>
Date: Fri, 8-May-87 21:18:11 EDT
Article-I.D.: eddie.5760
Posted: Fri May  8 21:18:11 1987
Date-Received: Sat, 9-May-87 22:11:54 EDT
References: <16238@amdcad.AMD.COM> <3546@cbosgd.ATT.COM> <749@mcgill-vision.UUCP>
Reply-To: jbs@eddie.MIT.EDU (Jeff Siegal)
Organization: MIT EECS Computer Facility, Cambridge, MA
Lines: 53