Sendmail problem: UUCP headers

Dan Glasser dglasser at yale.UUCP
Thu Aug 9 12:35:47 AEST 1984


    I'm having a problem getting sendmail to properly rewrite headers
on messages going out to UUCP.  Let's say that I compose a message
with the following header fields:

	From: dglasser
	To: decvax!foo, apollo!bar
	Cc: decvax!harpo!blah

    The copy of the message spooled for decvax!foo and decvax!harpo!blah
should have the headers rewritten as follows:

	From: yale!dglasser
	To: foo, yale!apollo!bar
	Cc: harpo!blah

    The copy of the message spooled for apollo!bar should have the
headers rewritten as follows:

	From: yale!dglasser
	To: yale!decvax!foo, bar
	Cc: yale!decvax!harpo!blah

    In other words, what we want to do is the following:

	1) Prepend "yale!" to the sender address.
	2) For recipient address a!b!c:
	   a) For copies of the message going to a, strip "a!"
	   b) For copies of the message NOT going to a, prepend "yale!".


    Now, I have two important questions:

    1) Is my description of how the headers should be rewritten correct?
       (I think it is, but I'd be interested to hear disagreements)
    2) Has anyone successfully implemented this sort of rewriting in
       sendmail?  (I tried doing it by using the $h macro in the UUCP
       recipient rewriting ruleset, but it didn't work)


					Danny Glasser

					decvax!yale!dglasser
					(formerly yale-comix!dglasser)

					Glasser-Daniel at YALE.ARPA



More information about the Comp.bugs.4bsd.ucb-fixes mailing list