[comp.mail.sendmail] Possible ucb mail bug?

dmildram@maxzilla.encore.com (Doug Mildram) (03/22/91)

I am seeing this behavior with /usr/ucb/mail, when the recipient is:
  To: user                     and the sender is:
  From: another@host.dom

When user hits "r", he sees To: host.another@dom (truly mangled)

To avoid this for now I config (set up sendmail.cf) to change 
RCPT ruleset so that it's To: user@host or user@host.mydom.com

I've seen the code in optim.c where netmap(name,from) 
   does a quick return() if it finds the @ or % in "name"
   so I know I'm close to the offensive code...

Is this a bug, a known bug, is there a patch ?  many thanks...
Please reply via mail....thanks a bunch!

dmildram@encore.com Encore Computer Corp, Marlboro, Mass 508-460-0500

rickert@mp.cs.niu.edu (Neil Rickert) (03/22/91)

In article <14375@encore.Encore.COM> dmildram@maxzilla.encore.com (Doug Mildram) writes:
>I am seeing this behavior with /usr/ucb/mail, when the recipient is:
>  To: user                     and the sender is:
>  From: another@host.dom
>
>When user hits "r", he sees To: host.another@dom (truly mangled)

 This has been reported before.  There is a patch I think at
uxc.cso.uiuc.edu:/mail/sendmail/ucbMail.patch
 (or look for similar names).  The patch doesn't stop the real problem,
which is that ucbMail should probably not copy the senders domain to
recipient addresses.  But with the patch it at least does the copying
correctly.

>dmildram@encore.com Encore Computer Corp, Marlboro, Mass 508-460-0500

 I have cross posted this to comp.sys.encore.  The problem is not directly
related to encore - it is in the Berkeley sources.  BUT - I reported this
to encore more than 6 months ago, and I believe I sent a patch at that
time.

 Perhaps now that the problem has struck home, we will see some action.

-- 
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
  Neil W. Rickert, Computer Science               <rickert@cs.niu.edu>
  Northern Illinois Univ.
  DeKalb, IL 60115                                   +1-815-753-6940

paul@uxc.cso.uiuc.edu (Paul Pomes - UofIllinois CSO) (03/29/91)

dmildram@maxzilla.encore.com (Doug Mildram) writes:

>I am seeing this behavior with /usr/ucb/mail, when the recipient is:
>  To: user                     and the sender is:
>  From: another@host.dom
>
>When user hits "r", he sees To: host.another@dom (truly mangled)

[ Note: sources for /usr/ucb/Mail are on uunet.uu.net for those victims w.o.
  sources.  -pbp ]
 
Written  2:30 pm  Jun  7, 1990 by paul@uxc.cso.uiuc.edu in uiuc.general
	Note title: Fix to Berkeley mail

Subject: /usr/ucb/mail botches some return addresses 
Index: ucb 4.3BSD-tahoe

Description:
	Given a message with a mix of relative and fully-qualified addresses,
	/usr/ucb/mail will apply parts of the fully-qualified domain name to
	the relative recipients.
Repeat-By:
	Given a message like the following:

	From bscheid Wed Jun  6 16:13:06 1990
	Date: Wed, 6 Jun 90 16:12:58 -0500
	From: Beth Scheid <bscheid@ux1.cso.uiuc.edu>
	To: krol
	Subject: TCP Product
	Cc: andys, bscheid, german

	(text deleted)

	Using the 'r' (reply) command creates the following:

	To: ux1.uiuc:krol@edu bscheid@ux1.cso.uiuc.edu
	Subject: TCP Product
	Cc: ux1.uiuc:andys@edu ux1.uiuc:bscheid@edu ux1.uiuc:german@edu
Fix:
	The cause is that "." is being used as one of the address separators.
	My guess that this is a holdover from the BerkNet days.  The fix is
	to eliminate "." from the list of separators in config.c.  Apply the
	following patch and re-compile.  Alternatively, patch the master
	ida/cf/Sendmail.mc file with the second patch below.  

	*** /tmp/,RCSt1014232	Thu Jun  7 10:41:16 1990
	--- config.c	Thu Jun  7 10:38:50 1990
	***************
	*** 29,35 ****
	  /*
	   * Set of network separator characters.
	   */
	! char	*metanet = "!^:%@.";
	  
	  /*
	   * Host table of "known" hosts.  See the comment in configdefs.h;
	--- 29,35 ----
	  /*
	   * Set of network separator characters.
	   */
	! char	*metanet = "!^:%@";
	  
	  /*
	   * Host table of "known" hosts.  See the comment in configdefs.h;

=====Alternate ida/cf/Sendmail.mc patch=====
	*** /tmp/,RCSt1007353	Thu Jul 12 13:12:05 1990
	--- Sendmail.mc	Thu Jul 12 13:11:34 1990
	***************
	*** 698,704 ****
	  #########################################################################
	  S10
	  
	! R<>,@$=w$=Y$+		<>,$3			Remove default host.
	  R<$+>$*$=Y$~A$*		$:<$1>$2$3?$4$5		Mark user portion.
	  R<$+>$*!$+,$*?$+	<$1>$2!$3!$4?$5		! is inferior to @
	  R<$+>$+,$*?$+		<$1>$2:$3?$4		Change src rte to % path
	--- 698,705 ----
	  #########################################################################
	  S10
	  
	! # The next line commented out for now; usr/ucb/Mail is broken.
	! #R<>,@$=w$=Y$+		<>,$3			Remove default host.
	  R<$+>$*$=Y$~A$*		$:<$1>$2$3?$4$5		Mark user portion.
	  R<$+>$*!$+,$*?$+	<$1>$2!$3!$4?$5		! is inferior to @
	  R<$+>$+,$*?$+		<$1>$2:$3?$4		Change src rte to % path
--
         Paul Pomes

UUCP: {att,iuvax,uunet}!uiucuxc!paul   Internet, BITNET: paul@uxc.cso.uiuc.edu
US Mail:  UofIllinois, CSO, 1304 W Springfield Ave, Urbana, IL  61801-2910