Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: anne@alcor.concordia.ca (Anne Bennett)
Subject: sendmail overwrites top line (WAS: Mail Transport Agent for DEC OSF1)
Date: Wed, 21 Jul 1993 23:26:23 GMT	[thread overview]
Message-ID: <CAJFs0.J3K@newsflash.concordia.ca> (raw)
In-Reply-To: CAHGMz.KFD@newsflash.concordia.ca


Folks,

Yesterday I posted a question about MTAs for DEC OSF1, including the
following comment:  

> The sendmail that comes with it [i.e. DEC OSF1] is less than ideal:
> for example it does not insert a DNS-resolved "Received from" at the
> top of incoming SMTP mail, so it is very easy to spoof it.

I received a couple of suggestions that I change sendmail.cf to the
commented-out other alternative, i.e.:
   HReceived: $?sfrom $s $.by $j; ($v/$V)
	  id $i; $b

I had, actually, already tried this, but it didn't seem to do quite
what I wanted.  At fourth glance :-), I realized that the Received line
was getting inserted correctly, but that the top line (the one
containing the "Received: from system" information) was getting
overwritten by the "Unix From line"!

In an effort to diagnose the problem, I put a line
   HDummy-header: dummy
in the sendmail.cf before the Received line (actually, above the
Return-path line) to protect the Received line against being overwritten.  

I then experimented with sending mail via telnet (with and without
"helo" as the first command), the "usual way" (from another system
using MH+sendmail) and via "Mail" and "sendmail" on the local system.
I also experimented with receiving mail directly in
/var/spool/mail/$USER, or forwarded to a file or to a program (cat).  I
obtained the following results with respect to the top line, i.e.  my
dummy-header:

		       RECEIVED BY
TRANSMITTED BY         ---------------------------------
--------------------   direct:      file:      program:
telnet/remote:         overwritten  preserved  preserved
{M,sendm}ail (local):  preserved    preserved  preserved

Conclusion: there is something funny going on when sendmail delivers
mail directly to /var/spool/mail/$USER after having received it through
a remote connection: the "Unix From line" overwrites the previous top
line.  Is it a misconfiguration on my part?  Is it a bug?  Is it a
feature :-)?  Any ideas?


Anne.
--
Ms. Anne Bennett          anne@alcor.concordia.ca            (514) 848-7606
Computing Services,   Concordia University,   Montreal QC,   Canada H3G 1M8
(Administrator for Concordia University mail relay, news transfer, and DNS) 


      reply	other threads:[~1993-07-21 23:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-07-20 21:49 Mail Transport Agent for DEC OSF1 Anne Bennett
1993-07-21 23:26 ` Anne Bennett [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox