From owner-freebsd-questions Sun Apr 21 6:23:36 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id D173237B417 for ; Sun, 21 Apr 2002 06:23:23 -0700 (PDT) Received: from hades.hell.gr (patr530-b215.otenet.gr [212.205.244.223]) by mailsrv.otenet.gr (8.12.2/8.12.2) with ESMTP id g3LDNF5q026510; Sun, 21 Apr 2002 16:23:17 +0300 (EEST) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.2/8.12.2) with ESMTP id g3LDNF76010565; Sun, 21 Apr 2002 16:23:15 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from charon@localhost) by hades.hell.gr (8.12.2/8.12.2/Submit) id g3LDHJBn010342; Sun, 21 Apr 2002 16:17:19 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 21 Apr 2002 16:17:19 +0300 From: Giorgos Keramidas To: Munish Chopra Cc: questions@FreeBSD.ORG Subject: Re: sendmail masquerading Message-ID: <20020421131719.GF8347@hades.hell.gr> References: <20020421080557.GA48477@daemon.chronias.ninth-circle.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020421080557.GA48477@daemon.chronias.ninth-circle.org> User-Agent: Mutt/1.3.28i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-04-21 10:05, Munish Chopra wrote: > Having a bit of trouble getting sendmail to masquerade properly. > > I added the following lines to my .mc file: > > MASQUERADE_AS(`rogers.com') > FEATURE(`masquerade_envelope') > FEATURE(`allmasquerade') > > ...then dumped it in /usr/share/sendmail/cf/cf and executed: There is a documented and working way of making sendmail.cf files from your own master-config files. Look in the /etc/mail/README file for instructions. What you tried is almost certainly *not* going to work. On a slightly related sidenote, I've been using my own Makefile for sendmail.cf files for a while, after I tried making sendmail.cf files for a variety of Linux boxen and got bitten more than once by the differences in installation instructions of RedHat, Slackware, Debian and SuSE Linux. What you were trying to do can be done too. But you missed certain important parts of the m4 command line. The instructions that the Sendmail folks have made part of the source at /usr/src/contrib/sendmail/cf/README are very helpful when you're trying to do something like this. The following Makefile shows what is essential for using the m4 macros to roll your own sendmail.cf building rules: # $Id: Makefile,v 1.9 2002/04/08 10:26:27 charon Exp $ .SUFFIXES: .mc .cf CFVERSION?= 8.12.3 CFDIR= cf-$(CFVERSION) MY_CONFIGS= hades.hell.gr.cf .mc.cf: m4 -D_CF_DIR_="${CFDIR}/" "${CFDIR}/m4/cf.m4" $< > $@ all: ${MY_CONFIGS} clean: -/bin/rm -f ${MY_CONFIGS} Giorgos Keramidas FreeBSD Documentation Project keramida@{freebsd.org,ceid.upatras.gr} http://www.FreeBSD.org/docproj/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message