Subject: Re: Re[2]: stupid questions about sendmail
To: Frederick Bruckman <fredb@immanent.net>
From: Denis Lagno <dlagno@mail.ru>
List: current-users
Date: 02/18/2005 22:08:15
> You want "flam.gado" to send all mail to "chup.gado"?

yes

> Then configure
> "flam" as a nullclient. First, create a file "nullclient.mc",
> 
> define(`_CF_DIR_', `/usr/share/sendmail/')
> include(`/usr/share/sendmail/m4/cf.m4')
> OSTYPE(bsd4.4)
> FEATURE(nullclient,chup.gado.)
> 
> (or, even better, substitute for "chup.gado." its IP address,
> in brackets).  Now backup "/etc/mail/sendmail.cf", then do
> 
>   m4 nullclient.mc > /etc/mail/sendmail.cf
> 
> and restart sendmail with
> 
>   /etc/rc.d/sendmail restart
> 
> Note that "flam" will now be a really dumb dumb client -- it won't
> even consult the "aliases" database anymore.
> 
> There are other ways to do it. Starting with
> "/usr/share/sendmail/cf/submit.mc", you could change the argument
> to FEATURE('msp',...). to "chup.gado"'s IP address, and compile the
> result to "/etc/mail/submit.mc". For that, you don't have to run
> the network listener "sendmail" at all, but you can still start the
> "smmsp" client queue runner. I haven't tried that one yet.

before I try it -- I want to say that chup.gado is a laptop,
and it may be disconnected at any time.  In such cases I want
messages just to stay in sendmail queue and deliver them when
reconnected.  Do you think those methods should work for such a scenario?