Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Feb 2013 08:50:33 +0100
From:      Bernt Hansson <bah@bananmonarki.se>
To:        Chris Maness <chris@chrismaness.com>
Cc:        david.robison@fisglobal.com, freebsd-questions@freebsd.org
Subject:   Re: Sendmail relaying for Intranet?
Message-ID:  <511B45C9.4050201@bananmonarki.se>
In-Reply-To: <CANnsUMG-g_=-8zFLJRAj3GHXZu5_T-8Fhzduq14rOQeY%2B8BSyQ@mail.gmail.com>
References:  <CANnsUME8sbH9T3Ni3-AZ1D0OKwYwq2hd4tyDhcqudraWnpy8cg@mail.gmail.com> <511ACAC8.80801@fisglobal.com> <CANnsUMG-g_=-8zFLJRAj3GHXZu5_T-8Fhzduq14rOQeY%2B8BSyQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2013-02-13 06:30, Chris Maness skrev:
> On Tue, Feb 12, 2013 at 3:05 PM, Robison, Dave
> <david.robison@fisglobal.com> 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.



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