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

Backup/Secondary MX

Discussion in 'Plesk for Linux - 8.x and Older' started by freaky@, Apr 12, 2007.

  1. freaky@

    freaky@ Regular Pleskian

    26
     
    Joined:
    May 2, 2006
    Messages:
    104
    Likes Received:
    0
    Hey there,

    can plesk be used to set it up as a secondary/backup MX? Some of our customers host their own mailserver on their internet connection. We'd like to be backup/secondary MX in case their line is down, so people sending mail won't get delayed messages and such.

    Doubt it's possible from within plesk tho', only see enable/disable and when disabled it doesn't appear to function as backup/secondary mx.
     
  2. faris

    faris Guest

    0
     
    Doing this is very easy thankfully.

    1) Add an additional MX record for the domain to point to your Plesk server. Give it a lower priority (which equates to a higher number) than the original MX record.

    2) Manually edit (or create when doing it the first time) /var/qmail/control/morercpthosts and add the name of the domain to it (e.g. mydomain.com)

    3)Manually edit (or potentially create) /var/qmail/control/smtproutes and add:
    domain.com:x.x.x.x:25 where x.x.x.x is the IP of the customer's own server/dsl connection. The :25 is optional.

    4) Restart qmail.

    5) TEST!!!

    NOTE ABOUT STEP 2: Step 2 may not work by itself. You may need to run qmail-newmrh
    (qmail-newmrh reads the instructions in /var/qmail/control/morercpthosts and writes them into /var/qmail/control/morercpthosts.cdb in a binary format suited for quick access by qmail-smtpd.)

    Alternatively just add the domain.com:x.x.x.x:25 directly into rcpthosts but keep in mind that this file may get overwritten at some point. Having said that this is what I ended up doing.

    WARNING: Spammers tend to send to the last defined MX record hoping it has less spam filtering. other spammers send to the A record of the domain name, again hoping to bypass spam filters.

    Please see http://forum.swsoft.com/showthread.php?s=&threadid=11515 for more info on everything.

    NOTE: Use my instructions at your own risk. AND BACKUP.

    Faris.
     
  3. freaky@

    freaky@ Regular Pleskian

    26
     
    Joined:
    May 2, 2006
    Messages:
    104
    Likes Received:
    0
    Thanks for the re'.

    I already was afraid Plesk didn't support it. Whilst I might be (easily) able to do this, my collegues aren't familiar with CLI/linux and our customers don't even have access to it (nor would anyone want them to have write access to those files).

    Besides that, it's quite error prone I guess.

    Will be filing a feature request I suppose.

    Anyways thanks for the solution, who knows when it might come in handy.
     
Loading...