Subject: Re: Sendmail
To: Randy Decker <rdecker@kingdominc.com>
From: Brett Lymn <blymn@baea.com.au>
List: netbsd-help
Date: 06/07/1997 14:38:11
According to Randy Decker:
>
>     Is there a way to tell the mail server to send all mail to 
>     the gateway???
>     

In short, yes.  You need to hack you sendmail config somewhat to do
this.  The way I do this at work (unfortunately not on NetBSD but it
will work the same) is to setup your DNS et al to refer to the mail
server by two names, one is the name you already have, the second is
something like forms_gw or somesuch (just needs to be distinctive).
You set up sendmail to accept forms_gw as being the local machine on
the mail server and in the rule 0 BEFORE the localisation is done you
check for the forms_gw in the address, if it is there you select a
delivery agent right away - in the delivery agent you put in your
cc:mail gateway machine as the gateway for delivery.

The total effect is that mail sent to someone@mail.server gets
delivered locally but anything sent to someone@forms_gw gets pushed
through to the cc:mail SMTP gateway.  We do this on our main
mailserver to handle a groupwise SMTP gateway.

If you need samples of rewrites then just let me know - if there is
sufficient interest I can post them back to netbsd-help....

-- 
Brett Lymn, Computer Systems Administrator, British Aerospace Australia
===============================================================================
  What do you get when you cross a cantaloup with a dog?        Melancholy :-P