Only follow that if your secondary mail server is tethered to the
primary. If the secondary mail server has any domains that are
independent of the primary OR is a secondary mail server for other
domains this will cause major issues.

In fact putting things into smtproutes should only be for routing mail
through a mail gateway when you are behind a firewall that only allows
your server to talk to one destination OR when your mail server has to
send to a gateway because you are on a dynamic address. For example a
friend of mine has a dsl line from sbc that he had when they were
giving out 1 static for every user. His machine is used for incoming,
but routes all of his outgoing mail through sbc's smtp server because
otherwise certain isps will drop it because they assume it's static.

Thanks,
Erik

On 10/22/05, Steve Huff <[EMAIL PROTECTED]> wrote:
>
> On Oct 22, 2005, at 8:35 PM, South Computers wrote:
>
> > Wow. This could be useful very shortly. My main server is in Miami,
> > with my backup (web server)  in Ft Lauderdale. I'm about to try
> > setting up my server to also do backup on the mail. It all looks
> > clear, except how to tell it (the backup mail server) to deliver it
> > all to the primary mail server. (?)
>
> assuming the secondary is also running qmail, edit /var/qmail/control/
> smtproutes and add the following line:
>
> :primary.mail.server
>
> this tells your secondary server to route all outgoing mail through
> the primary.  since your secondary should not normally receive any
> mail, this shouldn't be a problem.
>
> on the secondary, make sure each of the appropriate domains are in /
> var/qmail/control/rcpthosts but *not* in /var/qmail/control/locals
> or /var/qmail/control/virtualdomains (since you want the secondary to
> accept the mail, but not to attempt to deliver it locally, but rather
> to route it all on to the primary.
>
> since you'll want your messages to stick around in the queue, create
> the file /var/qmail/control/queuelifetime and put the message
> lifetime in seconds in it, as described here:
>
> http://www.qmailrocks.org/faq/?category=qmail#57
>
> i think this will do it for you.  does this look good, folks?
>
> -steve
>
> ---
> If this were played upon a stage now, I could condemn it as an
> improbable fiction. - Fabian, Twelfth Night, III,v
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to