SUMMARY: Problems with "From" line in email headers

From: Gary Richardson (gpr@proteon.com)
Date: Wed Sep 29 1993 - 21:00:52 CDT


Hello all..

Sorry for the delayed response. I got some responses and wanted
to take the time to properly test them before I summarized. I've
found one solution that works just ducky for me.

To briefly summarize my original question, There are a couple
of from lines in a mail header:

>From jmoy@starsky.proteon.com Mon Sep 20 15:14:53 1993

AND

From: jmoy@proteon.com (John Moy)

Because the first one has the hostname in it, and we have access
controls on our router to the internet, some email was not getting
thru. I wanted to be able to get rid of the hostname in the
mail header completely and have both "From" lines be merely:

user@proteon.com

SOLUTION(S):

1>

Edit your sendmail.cf file.
Look for:

############################################################
#####
##### Ethernet Mailer specification
#####
##### Messages processed by this configuration are assumed to remain
##### in the same domain. This really has nothing particular to do
##### with Ethernet - the name is historical.

Mether, P=[TCP], F=msDFMuCX, S=11, R=21, A=TCP $h
S11
R$*<@$+>$* $@$1<@$2>$3 already ok
R$+ $@$1<@$w> tack on our hostname

On the last line you would need to change $w to $m.
That should do it.

-----------------------
2>

I do this here by setting the sender rewriting rule set for the mailer ether
(normally 11) to the empty rule set 21.
The mailhost appends only the domain with the sendmail.main.cf.

-------------------------
3>
# UNIX header format
DlFrom $g $d

Try using

# UNIX header format
DlFrom $f@proteon.com $d

-----------------------------

I initially used solution #2, and it worked seemingly fine. But
we have a relay machine between the UNIX world and the PC / CcMail
world (it translates the messages to and from CcMail format).
It didn't like the way the address was being sent in. Since
the SW is homegrown, and I didn't grow it, I couldn't fix that.
Thus I couldn't use that solution (too bad, I liked it alot too!!)

I then tried solution #1. So far everybody seems to like what
that change does, so I'm satisfied with it!!

Solution #3 seems like it'd work, but it's too "hard coded" to
Proteon for me. I like things that are portable. Oh well... picky me. :-)

Anyways, I have my answer, and I have the following people to thank:

zod@ncube.com (Zod Mansour) (for an old email he sent back in March
                                on a related question I had that helped me
                                greatly this time around)
eckhard@ts.go.dlr.de (Eckhard Rueggeberg)
camm@fmlrnd.co.uk (Ian Camm - Systems Administrator)
John Stanley <stanley@oce.orst.edu>

Thank you all!!!

-Gary
    ____ ___ ____ ____ ____ ____
   /___/ /__/ / / / /__ / / /| / WHO: Gary Richardson
  / / | /___/ / /____ /___/ / |/ INC. HOW: gpr@proteon.com
  9 Technology Dr, Westborough, Ma 01581 WHAT: Unix Systems Admin



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:08:19 CDT