[Prev][Next][Index][Thread]

Re: Emulate FallbackMXhost?



> 
> > Sendmail's FallbackMXhost is pretty useful for those connecting via
> > dialup links.  While I like direct delivery, I prefer to get the mail
> > off my home machine to my provider's hub if a recipient host is down.
> > Is there any way for me to get equivalent functionality?  
> 
> I don't think so.  (Obviously, you can easily punt everything to your
> provider.  Unfortunately, if you still want your mail to be delivered
> quickly without being munged, you'll have to persuade your provider to
> run qmail...)
> 
> It shouldn't be too hard to add another control file, and 
> > If not, is there some way to force a queue run?
> 
> Kill qmail-send and wait for it to exit; touch queue/remote/*/*; run
> qmail-start.


 Since you want to flush the queue at the same time, there is one way.

 prepare a file in qmail/control called Smtproutes (note the capital)
containing the line

:{providers-smtp-machine}

replacing {providers....} with the machine name, this gives you the
equivalent of a smarthost.


 As root 

   kill qmail-send
   ln -s /var/qmail/control/Smtproutes /var/qmail/control/smtproutes
   start qmail-start

   When you bring your link down, remove the symlink to smtproutes




References: