On Sun, 24 Dec 2000, Andy Furnell wrote:
> Hello,
>
> Is there a specific way of configuring qmail so that it will only
> act as a relay/spooling server for backup MX. (ie. when the main
> server goes down, this one has the next highest DNS MX Pref and
> holds the mail until the destination server goes back up). I've
> given the docs a brief looking over, but can't find anything too
> specific.
put the domain name in /var/qmail/control/rcpthosts
e.g.
if the DNS has:
mail.example.com IN MX 10 primary.example.com.
IN MX 20 secondary.example.net.
then rcpthosts on secondary.example.net. needs a line:
mail.example.com
so it knows to accpt mail for that domain. As it is not in 'locals' qmail
qill then know that it needs to forward mail using SMTP.
RjL