On Thu, Jan 25, 2001 at 07:16:59AM -0600, Clay Fandre wrote:
> Bob Tanner wrote:
> > 
> > I have linux on my laptop.
> > 
> > When I am at the office, behind the firewall, the smarthost is
> > mail.private.real-time.com, but when I am on the road the smarthost is
> > mail.real-time.com.
> > 
> > Is there a way to configure sendmail to relay to mail.private when I am on the
> > corporate network and mail when I outside?
> > 
> > Are something like try mail first, if that fails try mail.private?
> > 
> 
> You could use different run-levels for when you are in the office or on
> the road, and use 2 different sendmail.cf files Then have a script
> change your sendmail configs. Or write a script that check your IP and
> applied the proper sendmail.cf.
> 

I know of a couple of possible packages that might be helpful -
though they may be over kill if this is the only thing that you
want to change for the different networks is the mail config.
I've never used either divine or netenv to do what you want,
but I have used netenv to do other things.