Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Apr 2002 13:19:47 -0400
From:      Mike Galvez <mrg8n@virginia.edu>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: can't get sendmail to masquerade envelope sender
Message-ID:  <20020417131947.E71480@mail.virginia.edu>
In-Reply-To: <20020417154948.GP396@roman.mobil.cz>; from neuhauser@mail.cz on Wed, Apr 17, 2002 at 05:49:48PM %2B0200
References:  <170402107.15191@194.213.62.3> <20020417090405.B71480@mail.virginia.edu> <20020417154948.GP396@roman.mobil.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <mrg8n@virginia.edu>
> > 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 <neuhauser@mail.cz>
To: Mike Galvez <mrg8n@virginia.edu>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020417131947.E71480>