From: Jim Osborn
Date: Sun, 31 Dec 2000 14:39:32 -0800 (PST)
Message-Id: <200012312239.OAA01049@eskimo.com>
Subject: Re: sending mail from home
Thanks to all who replied to my query. For those still interested,
I thought I'd close the loop and pass on the solution. I had to
change one entry in the SuSE config file for sendmail, which is
now (in my SuSE 6.3) located in /etc/rc.config.d/sendmail.rc.config.
Since /sbin/SuSEconfig builds the /etc/sendmail.cf file from various
sources, I thought it'd be nice to see how far I could get without
editing /etc/sendmail.cf directly. Anyway, I needed to set:
#
# From:-Line in email and News postings
# (otherwise the FQDN is used)
#
FROM_HEADER="eskimo.com"
and voila' I could send mail via the smarthost at my ISP. (I already
had SENDMAIL_SMARTHOST="smtp:mail.eskimo.com") The result of this
change in the rc.config source was this entry in sendmail.cf:
# who I masquerade as (null for no masquerading) (see also $=M)
DMeskimo.com
So, it's the masquerading that does the job. I had been fooled by
the comments in rc.config, since I knew that an email's From: line
has little to do with its being accepted by MTAs---after all, this
header entry is routinely forged for various legitimate or not-so
legitimate purposes. Apparently SuSEconfig's script processors
use that FROM_HEADER line to control masquerading.
For those that asked me to me-too them on documentation I find,
I recommend /usr/share/sendmail/README. I'm grinding my way through
it now, all 2274 lines of it, with an eye toward better understanding
this whole subject. In particular, I'll want to take charge of what's
revealed in Received: lines I generate, and make my wife's mail use
the appropriate combination of her real name and my email addr, and
who knows what else. In any case, the sendmail README, though long,
seems clear and probably has enough info to allow intelligent tweaking
of /etc/sendmail.cf directly.
I suppose once I touch sendmail.cf, I'll hope SuSEconfig will leave
it alone. Alternatively, I could paw through
/sbin/conf.d/SuSEconfig.sendmail and try to figure out what, if
anything, I might change or add to /etc/rc.config.d/sendmail.rc.config
to change /etc/sendmail.cf to what I want. Probably not worth it...
Another posibility is to choose one of the .mc files in
/usr/share/sendmail/cf/ and generate /etc/sendmail.cf from it with
m4, as described in the README. Anyone tried that, and if so,
which .mc file did you start with? I don't see any .mc file
referenced in /sbin/conf.d/SuSEconfig.sendmail.
Cheers,
Jim