From owner-freebsd-questions@FreeBSD.ORG Thu Jan 3 13:59:24 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC63316A41A for ; Thu, 3 Jan 2008 13:59:24 +0000 (UTC) (envelope-from barry.byrne@wbtsystems.com) Received: from hermes.wbtsystems.com (hermes.wbtsystems.com [193.120.231.28]) by mx1.freebsd.org (Postfix) with ESMTP id 7031F13C447 for ; Thu, 3 Jan 2008 13:59:24 +0000 (UTC) (envelope-from barry.byrne@wbtsystems.com) Received: from SUNYA (sunya.wbt.wbtsystems.com [10.12.1.197]) by hermes.wbtsystems.com (Postfix) with ESMTP id 7C3CFF7426; Thu, 3 Jan 2008 13:59:22 +0000 (GMT) From: "Barry Byrne" To: "'Jerahmy Pocott'" , "'FreeBSD Questions'" References: <8089C65A-1218-4FCE-8040-16D21296E3DE@optusnet.com.au> Date: Thu, 3 Jan 2008 13:59:11 -0000 Message-ID: <009501c84e10$d147dc50$c5010c0a@SUNYA> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 In-Reply-To: <8089C65A-1218-4FCE-8040-16D21296E3DE@optusnet.com.au> Thread-Index: AchOB50/xJCQukuPS2Sk9dhJHseJowACPDSQ Cc: Subject: RE: Sendmail: sub-domain masquerade as top level X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2008 13:59:24 -0000 > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of > Jerahmy Pocott > I'm having an issue with getting sendmail to masquerade > as the top level domain when the host is a sub domain. > > For example I want server.exmaple.com to send mail as > user@example.com rather than user@server.example.com, > how ever the masquerade options don't seem to work for > this.. It works fine if the server is a different domain, but > not when it's a sub domain.. > > How do I get this behavior? Jerahmy, You don't say what you've tried already. I use postfix these days, but from memory, something like the following should work for you: MASQUERADE_AS(`domain.com') MASQUERADE_DOMAIN(`sub.domain.com') - Barry