Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Oct 2002 16:26:20 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        questions@FreeBSD.ORG
Subject:   Re: Configuring sendmail to use a relay
Message-ID:  <20021014152620.GA50000@happy-idiot-talk.infracaninophi>
In-Reply-To: <000a01c2738e$ef4b6080$ca0110ac@vinyl.tkvbp.com>
References:  <3DAAD526.9D492556@liwing.de> <000a01c2738e$ef4b6080$ca0110ac@vinyl.tkvbp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Oct 14, 2002 at 10:35:21AM -0400, Kliment Andreev wrote:
> > how can I configure the system sendmail to use our smtp server
> > instead of sending mails directly to the responsible MX for
> > the destination address?
> 
> In the file sendmail.cf, put the following line
> 
> DSnameoftherelayserver
> 
> You SHOULD NOT put space between DS and the name_of_the_relay_server!

Beware of editing the sendmail.cf file directly.  Serious masochists
only territory there.  The equivalent and recommended way of
customizing the sendmail configuration on FreeBSD is via the
`hostname`.mc file in /etc/mail:

    cd /etc/mail
    make   [ This will generate a default `hostname`.mc file if needed ]
    vi `hostname`.mc

Delete the 'dnl ' from the beginning of the line that says:

    dnl define(`SMART_HOST', `your.isp.mail.server')

and substitute the FQDN of your mail relay for the
your.isp.mail.server part.  Now simply run make to generate and
install the new configuration and prod sendmail into using it:

    make install restart

A guide to wrangling sendmail.mc files may be found in
/usr/share/sendmail/cf/README

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
                                                      Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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