net access under Linux progress and questions
Charles Hallenbeck
chuckh at mhonline.net
Sun Apr 15 15:25:32 EDT 2001
Greg -
Here is a copy of a letter I recently sent to Linux Gazette about
configuring sendmail. I worked out this plkn with the help of Steve
Holmes. Hope this helps...
Chuck
>From chuckh at hudson.mhonline.net Sun Apr 15 15:21:46 2001
Date: Mon, 2 Apr 2001 10:21:46 -0400 (EDT)
From: Charles Hallenbeck <chuckh at hudson.mhonline.net>
To: tag at ssc.com
Subject: Masquerading in sendmail
The question in issue 65 about masquerading with sendmail prompts me to
share my recent experience doing just that. My distro is Slackware 7.1,
and my sendmail version is 8.10.2, so the following may or may not work on
your system.
First, I found the source file from which my installed sendmail was
generated. It is called "linux.smtp.mc" and is located in
"/usr/src/sendmail/cf/cf/" (that is not a typo!) I copied it to "linux.mc"
in the same directory in case I screwed something up. No 'bridge burns'
here!
Second, I added four lines to the source file, just before the 'mailer'
lines at the bottom of the file. I have replace my actual ISP name with
"ispname" below:
define(`SMART_HOST', mail.ispname.net)
MASQUERADE_AS(ispname.net)
FEATURE(`masquerade_envelope')
LOCAL_USER(`root,chuckh,projects,sherwood,writings')
Third, I ran this source file through the m4 macro processor like this:
prompt:# m4 linux.mc > sendmail.cf
Finally, not noticing any error messages, I copied the resulting file to
where it belongs, in "/etc/mail".
The comma-delimited list of user names in the 'LOCAL_USER' line makes it
possible for those users to exchange email with each other locally,
without involving my ISP. DNS lookup is not disabled - I leave it active
to assist in antispamming. The email program I prefer is Pine, whose
configuration makes no mention anywhere of my ISP.
HTH - Chuck
My web site is http://www.mhonline.net/~chuckh
The Moon is Waning Crescent (49% of Full)
More information about the Speakup
mailing list