From owner-freebsd-questions@FreeBSD.ORG Fri Apr 23 01:22:00 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 D49A316A4CE for ; Fri, 23 Apr 2004 01:22:00 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0933443D2F for ; Fri, 23 Apr 2004 01:22:00 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i3N8LtER072241 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 23 Apr 2004 09:21:55 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i3N8Lt9h072240; Fri, 23 Apr 2004 09:21:55 +0100 (BST) (envelope-from matthew) Date: Fri, 23 Apr 2004 09:21:55 +0100 From: Matthew Seaman To: antwort@schmalzbauer.de Message-ID: <20040423082155.GC71296@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , antwort@schmalzbauer.de, freebsd-questions@freebsd.org References: <200404211547.54837.h@schmalzbauer.de> <200404211651.19004.h@schmalzbauer.de> <20040421154041.GD43999@happy-idiot-talk.infracaninophile.co.uk> <200404230943.27247.h@schmalzbauer.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KN5l+BnMqAQyZLvT" Content-Disposition: inline In-Reply-To: <200404230943.27247.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: Fri, 23 Apr 2004 08:22:01 -0000 --KN5l+BnMqAQyZLvT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 23, 2004 at 09:43:22AM +0200, Harald Schmalzbauer wrote: > I have another question(s) please: > How can I have sendmail using a specified EHLO "domain.tld" instead of th= e=20 > machines name (changing the machines name is not a solution for me) Use: define(`confDOMAIN_NAME', `domain.tld')dnl in your `hostname`.mc file. > And a last question: What do I have to use for sendmail when I want to do= =20 > masquerading on a MTA which has a "smart host" defined? If I use the same= two=20 > lines like on my local machine (which works) nothing happens on the MTA. = No=20 > mail gets masqueraded. It's basically the same basic setup as for your local machine. You might find adding the following useful: FEATURE(limited_masquerade)dnl Applies masquerading only to those machines listed as MASQUERADE_DOMAIN below. The default is to do that plus all of the names listed in 'local-host-names'. FEATURE(masquerade_entire_domain)dnl Applies masquerading to all of the hosts under 'domain.tld' (from the MASQUERADE_DOMAIN setting below). MASQUERADE_AS(`domain.tld')dnl MASQUERADE_DOMAIN(`domain.tld')dnl See /usr/share/sendmail/cf/README for more details on these and other settings. 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 --KN5l+BnMqAQyZLvT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAiNIjdtESqEQa7a0RAuM/AJ9HD9H5wpgNWRp81/dumzlxt9UY1QCfXL3/ DUtEZQhDkQjnXOroonfllpc= =1EML -----END PGP SIGNATURE----- --KN5l+BnMqAQyZLvT--