From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f4424,fff6ea5146a6874d X-Google-Attributes: gidf4424,public X-Google-Thread: fee84,fff6ea5146a6874d X-Google-Attributes: gidfee84,public X-Google-Thread: 10de99,fff6ea5146a6874d X-Google-Attributes: gid10de99,public X-Google-ArrivalTime: 1993-07-21 16:36:45 PST Xref: gmd.de comp.mail.misc:5716 comp.mail.sendmail:3914 comp.unix.osf.osf1:663 Newsgroups: comp.mail.misc,comp.mail.sendmail,comp.unix.osf.osf1 Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!usc!cs.utexas.edu!uunet!newsflash.concordia.ca!alcor.concordia.ca!anne From: anne@alcor.concordia.ca (Anne Bennett) Subject: sendmail overwrites top line (WAS: Mail Transport Agent for DEC OSF1) Message-ID: Followup-To: poster Sender: usenet@newsflash.concordia.ca (USENET News System) Nntp-Posting-Host: alcor.concordia.ca Reply-To: anne@alcor.concordia.ca (Anne Bennett) Organization: Concordia University, Montreal, Canada References: Date: Wed, 21 Jul 1993 23:26:23 GMT 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)