From owner-freebsd-questions@FreeBSD.ORG Sat Jan 24 15:06:37 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 C606616A4CE for ; Sat, 24 Jan 2004 15:06:37 -0800 (PST) Received: from gabby.gsicomp.on.ca (CPE00062566c7bb-CM000039c69a66.cpe.net.cable.rogers.com [67.60.231.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D62143D45 for ; Sat, 24 Jan 2004 15:06:36 -0800 (PST) (envelope-from matt@gsicomp.on.ca) Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by gabby.gsicomp.on.ca (8.12.9p2/8.12.9) with SMTP id i0ON7u0Z019578; Sat, 24 Jan 2004 18:07:56 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <004b01c3e2ce$46a8e500$1200a8c0@gsicomp.on.ca> From: "Matt Emmerton" To: , "freebsd-questions@FreeBSD. ORG" References: Date: Sat, 24 Jan 2004 18:03:27 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Re: sendmail /etc/mail/Makefile usage 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: Sat, 24 Jan 2004 23:06:37 -0000 > Looking for explanation documentation on the customization process > of FBSD's sendmail. > > The /etc/mail/README talks about using the > m4 command to customize sendmail. I have all ready been told that > process is incorrect for the built in version of sendmail as > delivered by the FBSD install. > > Previous posters to my sendmail questions said to read the > /etc/mail/Makefile which I have. > It does not explain the overall process either. > It just gives some hints. The key point is that you need to edit /etc/mail/freebsd.mc to suit your environment. Specifically, copy /etc/mail/freebsd.mc to /etc/mail/gateway.fbsdjones.com.mc, and edit it with the modification for your environment. Do the same with freebsd.submit.mc (copy to gateway.fbsdjones.com.submit.mc). The Makefile in /etc/mail will be smart enough to pick up this "local" version instead of the default one. > I am only interested in 2 things, have sendmail use > 'fbsdjones.com' as the local domain and tell sendmail not to > do reverse DNS lookups. > > I have /etc/rc.conf hostname='gateway.fbsdjones.com' for the > gateway/firewall/sendmail PC which is the doorway to my private Lan. Add the following to gateway.fbsdjones.com.mc: FEATURE(`masquerade_envelope')dnl MASQUERADE_AS(`fbsdjones.com')dnl Then run 'make' from /etc/mail and your internal hostnames should never appear on outgoing mail. (Reference: http://www.sendmail.org/m4/masquerading.html ) -- Matt Emmerton