As far as I can tell, setting up SendMail to act correctly as a secondary MX is a bit of a drag. SendMail seems to run into problems if it is a secondary MX, and it gets a message when all higher-priority MXes for the domain are down. Without special configuration, it will bounce the message with a "mail loops back to me (MX problem?)" error.
The very first steps to setting this up are:
mydomain.com. MX 0 preferredmx.mydomain.com. MX 10 secondarymx.otherdomain.org.
MXes with the lowest numbers are given the highest priority. I'm assuming that you already have a primary setup, and that part won't be explained here.
Now, on the secondary (this assumes you have /etc/mail/access and /etc/mail/mailertable):
Run make in /etc/mail. Check the timestamps of access.db and mailertable.db to be sure that they have just been regenerated. If they haven't, touch access mailertable and check your clock.
If you don't have a MakeFile, run makemap hash access.db < access; makemap hash mailertable.db < mailertable.
You should be all set. Try making the primary unreachable from the secondary, just to be sure, and repeat step 6. The easiest way to make it unreachable is to log into preferredmx and do route add secondarymx.otherdomain.org dev lo. By doing this you are (temporarily) adding a bad route between the two boxes. If you don't understand the implications of that, you probably don't want to do it. Do not do that if you are presently logged into preferredmx from secondarymx, and that is the only way you can reach preferredmx. Be sure to route del secondarymx.otherdomain.org dev lo after you are done testing.
If you run RedHat, this means you need to install the sendmail-cf Package.
Why there is a seperate package for people who want to actually configure SendMail, I don't know.
Part of UserSubmittedNotes
3 pages link to SendmailNotes: