1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

backup mx

Discussion in 'Plesk for Linux - 8.x and Older' started by tvengel, Jan 5, 2006.

  1. tvengel

    tvengel Guest


    We use Plesk as control panel and I was wondering how I could create backup-mx records for our clients.
    Is there anyone that can help me?

    Tim Van Engeland
  2. BoXie

    BoXie Guest

    Just go to DNS in the domain and add an MX record. Choose a lower priority (by that i mean .. your primary MX host is 10 and the fallback could be 30 or 40 or so).
  3. tvengel

    tvengel Guest

    Hello BoXie,

    If I'm right, I don't think the email will be "backed-up", because there is no configuration on the mail server. So wgen the primary mx goes down, the secondary can be contacted but the mailer daemon will not recognize the domain if i'm right.
    Isn't there anything that also has to be done at mail server's level?

    Tim Van Engeland
  4. BoXie

    BoXie Guest


    That's true .. but i have to look that up.
    Please check www.lifewithqmail.com.

    It should be in there.

    Is the fallback MX server also a Plesk machine ? Because then things are a bit more complex ..

    Maybe someone else here has a best-practise.
  5. sieb@

    sieb@ Guest

    Usually, you will want to put a server infront of your Plesk server, like a scanning server (ART's Gamera server or FSL.com's DefenderMX). Then, if your Plesk server goes down, any mail going to these servers will just hang out in the queue until the Plesk server comes back up, in most cases anyway. You will have to set these servers with a higher priority MX record (i.e. 10) than the Plesk server (i.e. 40). This is how my network is setup. Note that there is a time limit of some three days by default that the server will queue the mail.

    This also goes for most servers out there who are attempting to send to your server. If your Plesk server is down, they will usually try for up to three days before discarding an email.

    If you want a "failover" mail server, that goes beyond the scope of Plesk into the realm of Plesk Expand.
  6. tvengel

    tvengel Guest

    Hello Sieb,

    I think I didn't made up my question properly.

    I'll explain.
    We have several clients with a dsl-connection and static ip. On some time it is possible that the dsl connection isn't working, and their email can't be delivered.
    So we want to have our server as backup mx, but I suppose plesk doesn't support it out-of-the-box.
    How can we configure out server to act as backup-mx server?

    Tim Van Engeland
  7. BoXie

    BoXie Guest

    I think adding the clients domains on your fallback MX server in /var/qmail/control/rcpthosts should do the trick.

    You might consider adding them to 'morercpthosts' because Plesk will overwrite 'rcpthosts' everytime you change something in Plesk itself.

    Dont forget to run 'qmail-newmrh' after that to create a binary version of 'morercpthosts'.


    And : TEST FIRST .
  8. schatje

    schatje Guest

    If you want add a domain in plesk, and this machine/plesk will be setup as backup MX, just disable mailserver on domain control panel, Your Domian -> Mail -> Disable,
    After that.. login to shell, add your domain in /var/qmail/control/morercpthosts as BoXie says running /var/qmail/bin/qmail-newmrh, next.. you add your domain in /var/qmail/control/smtproutes files
    202.xx.22.xx is the primary mailserver,
    thats it... If you dont add the domain through plesk control panel.. just edit these 2 files, and dont forget to add/modify your MX DNS server

    Hope this help you

  9. BoXie

    BoXie Guest

    Ehm .. I really doubt if the smtproutes needs to be modified.

    Doesn't DNS take care of the mailrouting when speaking of fallback MX'es?!
  10. ShadowMan@

    ShadowMan@ Guest

    The smtproutes file change is to tell Qmail where to send the stored email for the domain(s)