SUMMARY: configuring sendmail under Solaris

From: Rashad Al-Yawir (rashad@ii.uni.wroc.pl)
Date: Thu Apr 27 1995 - 01:17:54 CDT


Hi managers,
        Two weaks ago I configured one of the machines as a mail server in
one of our departments. The machine was SparcServer5 running Solaris 2.3.
Every thing goes fine, except that mail sended from this host had the From
field addressed as user@host.domain.name while sending from another hosts
(SparcStation 2 running SunOS 4.1.3 and SparcStation 10 running Solaris 2.3)
had the correct address. I tried setting sendmail 8.6.11 on this machine but
the problem still. I got two answers for my problem. Many thanks go to
Bill Holzapfel for the summary which I include below. I didn't tried this yet
My thank go to
        mpr@fj-icl.com (Michael Ramchand Owner)
        billh@dcvast.com (Bill Holzapfel)

Rashad Al-Yawir.

---------------------------------------------------------------------------
> From billh@killians Thu Apr 6 13:17 CDT 1995
> Date: Thu, 6 Apr 1995 13:18:19 -0500
> From: billh@dcvast.com (Bill Holzapfel)
> To: sun-managers@ra.mcs.anl.gov
> Subject: Re: Getting sendmail to not put hostname in "From:" line
> Cc: billh@dcvast.com
>
>
> With the fine help of all who responded It looks like
> its fixed. Thanks to all, Heres what I ended up with:
>
> In the local /etc/mail/sendmail.cf change ..
> # format of a total name
> Dq$g$?x ($x)$.
>
> to look like ...
> # format of a total name
> DA$f@$m
> Dq$A$?x ($x)$.
>
> In /etc/sendmail.cf on the mail server change ( In Rule Set S22 ) ..
> R$+ $@$1<@$w.$m> tack on our full name
> to look like ..
> R$+ $@$1<@$m> tack on our full name
>
>
> I'm sure there's a few diffrent ways I could have fixed it.
> And I'm sure its very dependent on how sendmail.cf is
> set up to begin with, so for those "me too's" here's a
> summary of the responses I recieved and the names of the
> people who took the time to do so. Thanks again.
>
> Bill Holzapfel
> dcVAST Inc.
> billh@dcvast.com
>
> <--------------- begin summary --------------------->
> Pablo Ruiz <ruiz@babbage.csee.usf.edu>
> # name from which everyone will appear to come
> #i.e. DMblah.com
> DMDomain.name
>
> gmp@adc.com (Gregory M Polanski)
> We use the file, sendmail.cf, which is 3 lines shorter than the one in the
> distribuiton.
>
> laguna% diff -c sendmail.cf sendmail.cf.orig
> *** sendmail.cf Wed Mar 22 13:26:04 1995
> --- sendmail.cf.orig Wed Mar 22 13:20:52 1995
> ***************
> *** 164,169 ****
> --- 164,170 ----
> R$*<>$* $@@ turn into magic token
>
> # basic textual canonicalization
> + R<$*<@$+>> $@$1<@$2>
> R$*<$+>$* $2 basic RFC822 parsing
>
> # make sure <@a,@b,@c:user@d> syntax is easy to parse -- undone later
> ***************
> *** 237,245 ****
> --- 238,248 ----
> S11
> R$*<@$+>$* $@$1<@$2>$3 already ok
> R$=D $@$1<@$w> tack on my hostname
> + R$+ $@$1<@$k> tack on my mbox hostname
>
> S21
> R$*<@$+>$* $@$1<@$2>$3 already ok
> + R$+ $@$1<@$k> tack on my mbox hostname
>
> thill@mmts.eds.com (tommy hill)
> S21
> R$*<@$+>$* $@$1<@$2>$3 already ok
> R$+ $@$1<@$k> tack on my mbox hostname
>
> in the ethernet section. The line with the "tack" comment
> is the one I changed. Here is the old line:
> # R$+ $@$1<@$w> tack on my mbox hostname
>
> Boyd Fletcher <boyd@ccpo.odu.edu>
> This is the mail server's sendmail.cf for 8.6.x of sendmail. Make sure
> you change the ccpo.odu.edu and odu.edu references. I can send the
> mail client config if you need it.
> (I didnot attach the sendmail.cf file he sent. I
> can send it on request. billh)
>
> Tom Stidham <stidhamt@elwha.evergreen.edu>
> Please accept as one official me-too message. I have been wondering
> about this very thing for a while and have been unable to get it to go.
>
> bern@penthesilea.uni-trier.de (Jochen Bern)
> Depends a Lot on your specific sendmail.cf ...
> Usually (with plain Vanilla sendmail.cf), one uses:
>
> # Host.Do.Main with not-FQ Hostnames
> Dj$w.$m
>
> # Host.Do.Main when "Hostname" is FQ
> Dj$w
>
> # Do.Main
> Dj$m
>
> # Mailhost.Do.Main
> DjMailhost.$m
>
>
> Larry Chin <Larry_Chin@ca.cch.com>
> If you are using the stock sendmail.main.cf that comes with SunOs ( you
> didn't specify which OS you are on so I am making an assumption ), I
> believe you need to define "Dm".
>
> For example your domain name is dvcast.com ( or whatever ) you would
> put in:
>
> Dm dvcast.com.
>
> You would probably then want to define Cm to recognize incoming mail for
> name@dvcast.com, eg:
>
> Cm billh@dvcast.com
>
> and Cw for the name of the system that the mail is coming into ie:
>
> Cw killians.dvcast.com
>
>
> This is all assuming of course that mail is coming into a single mailhub
> for further distribution.
>
> I hope I haven't misunderstood your question, and that this is what you are
> looking for.
>
> lzerbi@vim.tlt.alcatel.it (Zerbi L.)
> I use mail info from Gary Richardson.
>
> i replace the original "# format of a total name" entry with:
>
> Dq$A ($x)$.
>
> where $A is defined as
>
> # fully qualified mail address
> DA$f@$m
>
> and $m is defined as
>
> # local domain name
> Dmcfsmo.honeywell.com
>
> thus, the "From:" field is always USER@DOMAIN, or for me
> pbh@cfsmo.honeywell.com
>
> I'm interesting to similar macros for HP-UX sendmail.cf
>
> Jorge Portugal Andrade <admin@di.uminho.pt>
> In sendmail.cf replace
>
> R$+ $@$1<@$k>
>
> with
>
> R$+ $@$1<@$m>
>
> sunlist@mendel.ucsc.edu
> I use the 'Dj mx.domain' convention.
>
> Such as: 'Djdomain.com if you are using MX records as your
> mailing address.
>
> pamela@jupiter.Legato.COM (Pamela Pledger)
> It is in the sendmail book.
> Our mail relay has : ^Dj$m # my official hostname.
> From the book : $m == domain name, $w == host name, Dj == defines what name to put on the mail
> You can use :
> Dj$w.$m # to put hostname.domainname
> Dj$m # to put just @domain.name on outgoing email.
>
---------------------------------------------------------------------------
From: mpr@fj-icl.com (Michael Ramchand Owner)

On your local (not mailhost) you may need to change Rule S11
last line should be

R$+ $@$1<@$m>

and on your mailhost, you need to change rule S22 to read:
the same as above.

Michael



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