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.

My $.02.