Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!shelby!apple!arc!arc.UUCP From: chet@arc.UUCP (Chet Wood) Newsgroups: gnu.emacs Subject: emacs sendmail committing forgery Keywords: SunOS4.0, GNU Emacs, sendmail Message-ID: <276@arc.UUCP> Date: 3 May 89 21:14:59 GMT Sender: news@arc.UUCP Reply-To: chet@arc.UUCP (Chet Wood) Organization: Advansoft Research Corp, Santa Clara, CA Lines: 68 Several people at our organization use GNU emacs (18.53) for their mail. Until recently, everyone logged in to the main mailhost Sun 3/280 for mail purposes. Then we exported the mailhost's /var/spool/mail and mounted it on all subsidiary machines. When sending mail to people with a local address (e.g. "user"), from emacs running on a subsidiary machine, the message arrives claiming to be _from_ the first person on the "To: " line. An address of the form "user@machine" doesn't show the problem. Nor does the problem show up when using bsd "mail" for sending. For example, the following was sent by chet to "news." It showed up in news' mail as: --------------------------------------------------------------- Message 5: >From news Wed May 3 09:34:03 1989 Return-Path: Received: from sparcy.arc.UUCP by arc.UUCP (4.0/SMI-4.0) id AA09323; Wed, 3 May 89 09:34:02 PDT Date: Wed, 3 May 89 09:34:02 PDT From: news Message-Id: <8905031634.AA09323@arc.UUCP> Received: by sparcy.arc.UUCP (4.0/SMI-4.0) id AA02095; Wed, 3 May 89 09:35:51 PDT To: news Subject: from chet on sparcy using GNU emacs sendmail Status: RO ---------------------------------------------------------------- To figure out whether the problem was with emacs or sendmail, I wrote a little script to capture its own arguments, standard in, and environment. I told emacs to invoke this script instead of /usr/lib/sendmail, and sent mail. The result? ---------------------------------------------------------------- ENVIRONMENT: (lots of stuff) ARGS: -oi -t -oem -odb STDIN: To: news Subject: blah blah ---------------------------------------------------------------- Looks OK to me. Is sendmail doing the forgery? Hmmm... But when I invoke /usr/lib/sendmail from the command line, with the same environment, args, and input, the forgery does not occur. Everything works fine. How could emacs be invoking sendmail differently than I can on the command line? I own emacs, and it's not running setuid or setgid. Stumped, Chet Wood ~ (408)727-3357 arc!chet@apple.COM . Advansoft Research Corporation chet@arc.UUCP . 4301 Great America Parkway apple!arc!chet . Santa Clara, CA 95054, USA Chet Wood ~ (408)727-3357 arc!chet@apple.COM . Advansoft Research Corporation chet@arc.UUCP . 4301 Great America Parkway apple!arc!chet . Santa Clara, CA 95054, USA