From owner-freebsd-questions@FreeBSD.ORG Wed May 4 02:36:27 2005 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 3EF9B16A4CE for ; Wed, 4 May 2005 02:36:27 +0000 (GMT) Received: from bigbird.logicsquad.net (ppp247-224.lns2.adl2.internode.on.net [203.122.247.224]) by mx1.FreeBSD.org (Postfix) with SMTP id 01BE243D5E for ; Wed, 4 May 2005 02:36:26 +0000 (GMT) (envelope-from paulh@bigbird.logicsquad.net) Received: (qmail 81288 invoked by uid 1001); 4 May 2005 02:36:21 -0000 Date: Wed, 4 May 2005 12:06:21 +0930 From: "Paul A. Hoadley" To: freebsd-questions@freebsd.org Message-ID: <20050504023621.GA78622@bigbird.logicsquad.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HlL+5n6rz5pIUxbD" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: Sendmail masquerading breaks local mail delivery 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, 04 May 2005 02:36:27 -0000 --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, Because of a bizarre email topology that exists at an office I have a 5.3 machine installed at, I have recently configured sendmail to masquerade the hostname of outgoing mail to drop the machine name part. This is in bert.coremedicalsolutions.com.submit.mc: divert(-1) # Comments... divert(0)dnl VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.submit.mc,v 1.1 2003/10/19 00= :03:13 gshapiro Exp $') define(`confCF_VERSION', `Submit')dnl define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet define(`confTIME_ZONE', `USE_TZ')dnl define(`confDONT_INIT_GROUPS', `True')dnl define(`confBIND_OPTS', `WorkAroundBrokenAAAA')dnl dnl dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1] MASQUERADE_AS(coremedicalsolutions.com)dnl FEATURE(`masquerade_envelope')dnl FEATURE(`msp', `[127.0.0.1]')dnl As a result of this, though, all the periodic mails and the output from cron are now (I gather) having the local hostname stripped, and being sent off to the MX-listed mailer for the wider domain at an ISP. How do I get local mail delivered locally, while still masquerading the domain name for non-local mail? --=20 Paul. w http://logicsquad.net/ h http://paul.hoadley.name/ --HlL+5n6rz5pIUxbD Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCeDUl730Z/jysbzIRAgGoAJ9VfK6hNH53o2fmnn5YP/AGKJCd0ACdHU8E eCHDc7lyV9ZHUqYckKaQ3bQ= =halG -----END PGP SIGNATURE----- --HlL+5n6rz5pIUxbD--