On Wednesday, November 6, 2002, at 01:45 PM, Nate D. wrote:
A client of mine had their mailserver go down this week, and has asked me if
we can have ours act as a backup mailserver.
I've got a pretty standard LWQ qmail setup with vpopmail.
I have the client's mailserver's MX as 10, and my server as 20.
I did some research, and found that all I should have to do is add the domain
to the rcpthosts or morercpthosts, but make sure that it isn't added to
locals or virtualdomains. I also found out about the smtproutes file, but
seems that this file is only necessary if you need to force the server NOT to
use the MX records.
Here's my questions:
1. If I add the domain to morercpthosts, do I need to restart qmail or do
anything with vpopmail?
No, just run /var/qmail/bin/qmail-newmrh to update the cdb file.
The reasons I ask are because I saw a morercpthosts.cdb and morerspthosts.lockYes, you'll need to add an entry to smtproutes like so:
that I honestly don't remember seeing when I setup the server. Also, I added
the domain in question to morercpthosts and watched the e-mail enter the
queue and stay in there until I restarted qmail.
2. The smtproutes file doesn't exist in /var/qmail/control. Do I need it? If
so, would I just add the file and qmail would know what to do with it?
Where domain is the domain you are acting as a backup mail server for, and host is the hostname of the server should receive the mail.