Sendmail relaying for Intranet?

Bernt Hansson bah at
Wed Feb 13 07:55:21 UTC 2013

2013-02-13 06:30, Chris Maness skrev:
> On Tue, Feb 12, 2013 at 3:05 PM, Robison, Dave
> <david.robison at> 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 on the host to be your relay, check for "DS" and use it
>> like this:
>> DS
>> in 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/ 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.

More information about the freebsd-questions mailing list