• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Qmail relay and cache

M

Makapuu

Guest
Hi,
I would like to set up Qmail as a cache only server so that when my primary MX servers go down, email will be stored on the Qmail server until they are back up. I know how to do this for Sendmail but even after reading documentation and FAQs, I am still having a problem understanding what to do for Qmail. I do not desire any local delivery of mail on the Parallels server hosting Qmail. Any help would be appreciated.
 
Hi All,

I found this information concerning Qmail and relaying. I thought it might be helpful to someone else.

http://www.gossamer-threads.com/lists/qmail/users/750

| Say I wanted to set up a computer as a secondary MX. But I don't
| want any of the mail to actually be _delivered_ on that machine, I
| just want it to be queue'd up and delivered to the primary once it
| comes back online. Will putting an entry into control/smtproutes on
| the secondary MX accomplish this?


Yes, that will accomplish what you want, but it is not necessary.
Make sure the domain is *not* in the secondary MX's virtualdomains or
locals file (but it should obviously be in the rcpthosts file), and
the incoming mail, once arrived, will not be considered local. So it
ends up with qmail-remote, which looks up the domain in the DNS, finds
that this machine is in fact one of the MX's for the domain, but there
are better ones -- so it will forward the mail to those, starting with
the best. In your case there will be just one, but you can do the
same for a third or forth MX, and it will successively try the best,
then the second best, and so on, until it runs out of MX's better than
itself.

Note that if qmail-remote finds it has been asked to send to a domain
that this host itself is a *primary* MX for, it will bounce the
message. So be careful when you set up your DNS.
 
Machines same place or not ?

Do u create users and domains to backup mx machine ?

If your answer is yes basicly you set smtproutes file and add your backup mx machine ip or hostname first machine give mail and post to backup mx machine.

Thats it all
 
Hi,
I'm not quite understanding you. My machines are not located in the same place. I have no local email delivery on the qmail server. I do have setup in my DNS zone files multiple MX servers with the qmail server having the highest value. From the following link (http://www.qmail-ldap.org/wiki/index.php/~control/smtproutes) it appears that I do not have to add anything in the smtproutes file. I would only have to do that if I did not have my MX domains defined in my zone file.
Is that correct?
 
Back
Top