SUMMARY: sendmail.cf - problems with 'From ' header

From: Amir J Katz (amir@matis.ingr.com)
Date: Thu Mar 11 1993 - 06:43:42 CST


Recently, I've posted a question regarding how to control the 'From ' mail
header field with Sun's sendmail.cf. The original query is too long to repeat
here, but mainly I was complaining that this field was NOT going thru the rewrite
rules specified in the S= in the mailer specification and I could not
control its format.
I've received a few responses, but in the meantime I devised a simple
solution that seems to do the job nicely:
What I did is just to remove the 'U' flag from the mailer flags (F=). This
flag tells sendmail to add an old-style 'From ' header field. It's
undocumented what happens when the flag is missing (well, it's probably
documented in some RFC doc), but I found out that when U flag is removed, a
'From ' field is still generated, but instead of looking like

   From matis.ingr.com!amir <date> remote from matis

it looks like

   From amir@matis.ingr.com <date>

which seems to sit well with those mailers which were barfing on the former
format.

Now the mailer line looks like this:

  Muucp, P=/usr/bin/uux, F=msDFMhu, S=14, R=23,
          A=uux - -r -a$f $h!rmail ($u)

---------------------------------------------------
medley@synercom.hounix.org (Bert Medley) said:
> Try modifying ruleset 4. I think everything ends up going through that
> ruleset.
---------------------------------------------------
ricky@fibhaifa.com (Ricardo Marek) suggested to add the Return-Receipt-To:
mail header so I'll get a blow-by-blow feedback of the mail progress.
---------------------------------------------------
Neil W Rickert <rickert@cs.niu.edu> gave a long and helpful explanation
about the 'From ' field.
---------------------------------------------------

Thanks for the following people:

ricky@fibhaifa.com (Ricardo Marek)
morrow@cns.ucalgary.ca (Bill Morrow)
ksparrow@baosc.com (Kent Sparrow 595-8110)
rickert@cs.niu.edu (Neil W Rickert)
medley@synercom.hounix.org (Bert Medley)

-- 
/* ----------------------------------------------------------------- */
/*  Amir J. Katz         | amir@matis.ingr.COM  (or ingr!matis!amir) */
/*  System Specialist    | Voice:  +972 52-584684                    */
/*  SEE Technologies Ltd.| Fax:    +972 52-543917                    */
/*  ......... To Boldly Go Where No One Has Hacked Before .......... */



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:07:35 CDT