[comp.mail.sendmail] Sendmail not rewriting my "Cc" field

iacovou@cs.umn.edu (Danny Iacovou) (03/18/91)

    Hello;

    I am having a bit of a problem with sendmail (5.61).  When sending 
    mail from machine A, to a user at machine B (machine B is not in
    the same domain as machine A), and Cc'ing user at machine C 
    (machine C is in the same domain as machine A), the address of
    machine C is not expanded when it reaches machine B. For example:

    This:

         From: user1@A.cs.Foo.edu
         To: user2@B.cs.Bar.edu
         Cc: user3@C

    Should look like this, when it reaches user2@B.cs.Bar.edu, so that
        user2@B.cs.Bar.edu could do a group reply:

         From: user1@A.cs.Foo.edu
         To: user2@B.cs.Bar.edu
         Cc: user3@C.cs.Foo.edu

    Instead it still looks like this:

         From: user1@A.cs.Foo.edu
         To: user2@B.cs.Bar.edu
         Cc: user3@C

    

    My first question is, am I correct to assume that sendmail should
    be re-writting the "Cc" field? My second question is, what can
    I do to fix the error? I guess I could go into soething like 
    ruleset 6 and "make" sendmail tack on ".cs.Foo.edu" every time
    mail gets sent to "C", but that's stupid. I'll need to add an
    entry for each machine within the "cs.Foo.edu" domain. My third
    question is, and this is the important one, does anyone reading
    this care, that I am having the problem stated above? If you do
    care I'd like to hear from you, I've been losing sleep over this,
    (for ghods sake, this is suppose to be spring break!!).

    Thanks.
-- 
--------------------------------------------------------------------------------
Neophytos Iacovou                                
University of Minnesota                     email:  iacovou@cs.umn.edu 
Computer Science Department                         ...!rutgers!umn-cs!iacovou

michi@ptcburp.ptcbu.oz.au (Michael Henning) (03/19/91)

iacovou@cs.umn.edu (Danny Iacovou) writes:


>    Hello;

>    I am having a bit of a problem with sendmail (5.61).  When sending 
>    mail from machine A, to a user at machine B (machine B is not in
>    the same domain as machine A), and Cc'ing user at machine C 
>    (machine C is in the same domain as machine A), the address of
>    machine C is not expanded when it reaches machine B. For example:


Interesting... I don't know how to solve the problem, but it seems that
it is more complicated than one is inclined to think.
To be specific, suppose my machine is "mymachine.dom", and I mail a user "x"
at "hismachine.dom", with a carbon copy to a user "local" on mymachine,
the Cc: line when the mail gets to "x@hismachine.dom" should look like

	Cc: local@mymachine.dom

However, things get more complicated with mixed addresses. Suppose
I have two Cc recipients, one on the Internet, and one on the other side
of a uucp link from "mymachine" to "uucphost", what should the
Cc: line in the mail for "x@hismachine.dom" look like ?

That is, how should a mail item sent from me@mymachine.dom to x@hismachine.dom
with Cc: as below appear at x's end ?

	Recipient:     x@hismachine.dom
	Carbon copies: local, uucphost!uucpuser

When user x gets this, one possibility is to rewrite the Cc: line to:

	Cc: local@mymachine.dom, uucphost!uucpuser@mymachine.dom

or possibly:

	Cc: local@mymachine.dom, uucpuser%uucphost@mymachine.dom

Worse, what should the headers look like when the mail gets to uucpuser ?
One thing I can think of is:

	From: mymachine!me
	To: uucphost!uucpuser
	Cc: mymachine!local, mymachine!x%hismachine.dom

Does anyone know whether there is a standard way of dealing with this ?
It seems to me that the Cc: address really needs to be rewritten twice,
once as a To: address to be given to the transport mechanism, and once as
a From: address, to be placed in the Cc: header of the recipient.
Is it possible to teach sendmail (5.61) to deal with this, or is it just not
worth the bother ?

I would really appreciate any help with this...

						Michi.
-- 
      -m------- Michael Henning			+61 75 950255
    ---mmm----- Pyramid Technology		+61 75 522475 FAX
  -----mmmmm--- Research Park, Bond University	michi@ptcburp.ptcbu.oz.au
-------mmmmmmm- Gold Coast, Q 4229, AUSTRALIA	uunet!munnari!ptcburp.oz!michi