Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 May 2005 12:06:21 +0930
From:      "Paul A. Hoadley" <paulh@logicsquad.net>
To:        freebsd-questions@freebsd.org
Subject:   Sendmail masquerading breaks local mail delivery
Message-ID:  <20050504023621.GA78622@bigbird.logicsquad.net>

next in thread | raw e-mail | index | archive | help

--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--



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