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 [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to