From owner-freebsd-questions Wed Apr 17 10:19:55 2002 Delivered-To: freebsd-questions@freebsd.org Received: from humpty.finadmin.virginia.edu (humpty.finadmin.Virginia.EDU [128.143.87.245]) by hub.freebsd.org (Postfix) with ESMTP id 16D5537B41B for ; Wed, 17 Apr 2002 10:19:48 -0700 (PDT) Received: (from mrg8n@localhost) by humpty.finadmin.virginia.edu (8.11.6/8.11.6) id g3HHJlp72186 for freebsd-questions@FreeBSD.ORG; Wed, 17 Apr 2002 13:19:47 -0400 (EDT) (envelope-from mrg8n) Date: Wed, 17 Apr 2002 13:19:47 -0400 From: Mike Galvez To: freebsd-questions@FreeBSD.ORG Subject: Re: can't get sendmail to masquerade envelope sender Message-ID: <20020417131947.E71480@mail.virginia.edu> References: <170402107.15191@194.213.62.3> <20020417090405.B71480@mail.virginia.edu> <20020417154948.GP396@roman.mobil.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020417154948.GP396@roman.mobil.cz>; from neuhauser@mail.cz on Wed, Apr 17, 2002 at 05:49:48PM +0200 X-Operating-System: FreeBSD UNIX 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 Wed, Apr 17, 2002 at 05:49:48PM +0200, Roman Neuhauser wrote: > > Date: Wed, 17 Apr 2002 09:04:05 -0400 > > From: Mike Galvez > > To: neuhauser@mail.cz > > Cc: freebsd-questions@FreeBSD.ORG > > Subject: Re: can't get sendmail to masquerade envelope sender > > > > On Wed, Apr 17, 2002 at 04:13:11AM -0700, neuhauser@mail.cz wrote: > > > This computer is behind NAT, and all outgoing trafic should go > > > to a smarthost. I have edited `hostname`.mc, adding these lines: > > > > > > MASQUERADE_AS(mail.cz) > > > FEATURE(masquerade_entire_domain) > > > FEATURE(masquerade_envelope) > > > define(`SMART_HOST', `mail.cz') > > > > You need to have a backtick ` and single quote ' around these items: > > > > FEATURE(`masquerade_envelope')dnl > > FEATURE(`use_cw_file')dnl > > FEATURE(`access_db')dnl > > FEATURE(`local_procmail')dnl > > Are you sure that's the culprit? The distributed freebsd.mc doesn't > have them either. I don't believe it's bogus. > > Anyway, I tried it, and it didn't help; or at least I don't think it > did. Here's my current sendmail.mc, with `' added everywhere per > your suggestion. > > More ideas? :) > > -- > FreeBSD 4.4-STABLE > 3:27PM up 2 days, 4:40, 9 users, load averages: 0.04, 0.10, 0.08 > VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.10.2.11 2001/07/14 18:07:27 gshapiro Exp $') > OSTYPE(`freebsd4') > DOMAIN(`generic') > > FEATURE(`access_db', `hash -o /etc/mail/access') > FEATURE(`blacklist_recipients') > FEATURE(`local_lmtp') > FEATURE(`mailertable', `hash -o /etc/mail/mailertable') > FEATURE(`relay_based_on_MX') > FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable') > > MASQUERADE_AS(`mail.cz') > FEATURE(`masquerade_entire_domain') > FEATURE(`masquerade_envelope') > define(`SMART_HOST', `mail.cz') > > > define(`confCW_FILE', `-o /etc/mail/local-host-names') > > define(`confMAX_MIME_HEADER_LENGTH', `256/128') > define(`confNO_RCPT_ACTION', `add-to-undisclosed') > define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy') > MAILER(`local') > MAILER(`smtp') Roman, From the header below, masquerade envelope is working. Received: from [194.213.194.145] by mail.virginia.edu id aa04419; 17 Apr 2002 11:33 EDT Received: (qmail 28627 invoked by uid 204); 17 Apr 2002 15:33:57 -0000 Received: from neuhauser@mail.cz by k0r3.reflektor.cz with qmail-scanner-1.03 (uvscan: v4.1.40/v4174. . Clean. Processed in 0. +601351 secs); 17 Apr 2002 15:33:57 -0000 Received: from nat3.mobil.cz (HELO roman.mobil.cz) (194.213.62.3) by mail.cz with SMTP; 17 Apr 2002 15:33:56 -0000 Received: (from roman@localhost) by roman.mobil.cz (8.11.6/8.11.6) id g3HFnmL24759; Wed, 17 Apr 2002 17:49:48 +0200 (CEST) (envelope-from neuhauser@mail.cz) ^^^^^^^^^^^^^^ X-Authentication-Warning: roman.mobil.cz: roman set sender to neuhauser@mail.cz using -f Date: Wed, 17 Apr 2002 17:49:48 +0200 From: Roman Neuhauser To: Mike Galvez Cc: freebsd-questions@freebsd.org Subject: Re: can't get sendmail to masquerade envelope sender -- Michael Galvez Information Technology Specialist III E-Mail: mrg8n@nospam.virginia.edu University of Virginia Office: 434-982-2975 'I generally avoid temptation unless I can't resist it." -- Mae West To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message