From owner-freebsd-questions@FreeBSD.ORG Wed Apr 21 07:26:41 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 274A716A4CE for ; Wed, 21 Apr 2004 07:26:41 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id B60AB43D41 for ; Wed, 21 Apr 2004 07:26:39 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i3LEQRHv044512 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 21 Apr 2004 15:26:27 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i3LEQRLc044511; Wed, 21 Apr 2004 15:26:27 +0100 (BST) (envelope-from matthew) Date: Wed, 21 Apr 2004 15:26:27 +0100 From: Matthew Seaman To: antwort@schmalzbauer.de Message-ID: <20040421142627.GA43999@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , antwort@schmalzbauer.de, freebsd-questions@freebsd.org References: <200404211547.54837.h@schmalzbauer.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline In-Reply-To: <200404211547.54837.h@schmalzbauer.de> User-Agent: Mutt/1.5.6i X-Virus-Scanned: clamd / ClamAV version devel-20040420, clamav-milter version 0.70k X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: Sendmail and masquerading X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Apr 2004 14:26:41 -0000 --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 21, 2004 at 03:47:48PM +0200, Harald Schmalzbauer wrote: > Hi all, >=20 > I have to _believe_ there's something strange going on with sendmail in t= he=20 > base system. > I try to convince it to masquerade my righthandside. Therefore I added th= e=20 > following to bsdharry.zenk.de.mc: > MASQUERADE_AS(`zenk.de') >=20 > local-host-names reads: > bsdharry.zenk.de >=20 > host reads: > 150.20.100.18 bsdharry bsdharry.zenk.de >=20 > But sendmail still communicates with "Mail from: @bsdharry.zenk.de" Yup. That's the envelope sender address, as used in the SMTP dialog. That doesn't get masqueraded by default -- but you should see that the =46rom: line within the message is masqueraded. Use: FEATURE(masquerade_envelope)dnl to make sendmail rewrite the envelope sender address as well. You might also want to use: FEATURE(allmasquerade)dnl which applies masquerading to *recipient* addresses. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --Kj7319i9nmIyA2yE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAhoSTdtESqEQa7a0RAhxOAKCW6bH5pgqHOcjNs+LGbA0yWUaM2ACePdtm Ra3LuAvMBVzLUsY1AvQDDpo= =Tyz8 -----END PGP SIGNATURE----- --Kj7319i9nmIyA2yE--