1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Qmail relay and cache

Discussion in 'Plesk for Linux - 8.x and Older' started by Makapuu, Aug 21, 2009.

  1. Makapuu

    Makapuu Guest

    0
     
    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.
     
  2. Makapuu

    Makapuu Guest

    0
     
    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.
     
  3. sosbilisim

    sosbilisim Basic Pleskian

    26
    23%
    Joined:
    May 25, 2007
    Messages:
    55
    Likes Received:
    0
    I you have backup mx server u must use control/smproutes file.
     
  4. sosbilisim

    sosbilisim Basic Pleskian

    26
    23%
    Joined:
    May 25, 2007
    Messages:
    55
    Likes Received:
    0
    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
     
  5. Makapuu

    Makapuu Guest

    0
     
    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?
     
Loading...