From owner-freebsd-questions@FreeBSD.ORG Wed Feb 13 07:55:21 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 21BFAD2A for ; Wed, 13 Feb 2013 07:55:21 +0000 (UTC) (envelope-from bah@bananmonarki.se) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) by mx1.freebsd.org (Postfix) with ESMTP id C8908EA for ; Wed, 13 Feb 2013 07:55:19 +0000 (UTC) Received: from kw.news4all.se (usenet4all.se [82.182.32.53]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id r1D7okcY046198; Wed, 13 Feb 2013 08:50:53 +0100 (CET) (envelope-from bah@bananmonarki.se) Message-ID: <511B45C9.4050201@bananmonarki.se> Date: Wed, 13 Feb 2013 08:50:33 +0100 From: Bernt Hansson User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Chris Maness Subject: Re: Sendmail relaying for Intranet? References: <511ACAC8.80801@fisglobal.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: david.robison@fisglobal.com, freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2013 07:55:21 -0000 2013-02-13 06:30, Chris Maness skrev: > On Tue, Feb 12, 2013 at 3:05 PM, Robison, Dave > wrote: >> >> On 02/12/2013 12:54, Chris Maness wrote: >>> I have a FreeBSD box running sendmail that can see the whole internet. >>> I have another mail server that hosts mail for an intranet. It does >>> not have access to the i-net. I think I remember reading that it is >>> possible for the i-net attached sendmail to relay mail for a domain to >>> another host. Is there an easy answer and configuration for this? If >>> not, no biggy since this exercise is more academic than a necessity. >>> >>> Thanks, >>> Chris Maness >>> >>> >> >> in sendmail.cf on the host to be your relay, check for "DS" and use it >> like this: >> >> DS relayhost.domain.com >> >> in sendmail.cf on the hosts which will be relaying, use the DS command >> but point them to your new relay host. >> >> hope this helps. >> >> Dave > > Dave, how would I add this to the MC file instead of the CF file? I > usually rebuild these after an upgrade or a configuration change, and > I would rather do it in the MC file for that reason. > > Thanks, > Chris Maness Look in /etc/mail/your-hosts-name.mc for this line dnl define(`SMART_HOST', `your.isp.mail.server') on your intranet machine and put in your inet machine name. You also need to edit /etc/mail/access on your relay to allow to relay for your itranet machine.