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

Set Plesk as backup mailserver

Discussion in 'Plesk for Linux - 8.x and Older' started by teren, Feb 15, 2005.

  1. teren

    teren Guest

    0
     
    Hi, has anyone ever successfully setup a domain on Plesk to be a backup mail server? I have multiple plesk servers and would like to create some redundancy, I have the dns records all setup. All that I really need to know how to do is to setup qmail to forward everything to the master mail server. Can somebody tell me what files I have to edit? I remember seeing a post once about this but I couldn't find it. Thanks

    Teren
     
  2. RexAdmin

    RexAdmin Guest

    0
     
    Hi Teren,

    Plesk can't do good as secondary / backup MX server.

    But, you can order IP and setup on that IP new mail server (qmail, postfix, sendmail, whatever...) and use it as secondary MX. Of course you will not bind Plesk on that new iP.

    We are doing this for our clients with great success.

    Good luck.
     
  3. teren

    teren Guest

    0
     
    Thanks for the fast reply. What exactly do you mean by order a new IP? Do you mean just setup another box and just have that be a dedicated backup mail server? Thanks
     
  4. Cranky

    Cranky Guest

    0
     
    You can use the Plesk box as a backup MX. Disable mail within Plesk for that domain. Go to /var/qmail/control and add the domain to morercpthosts, run /usr/bin/qmail-newmrh to generate morercpthosts binary, then create a file called smtproutes with the following contents:

    domain.com:111.111.111.111

    Where domain.com is the domain you want backup MX for, and 111.111.111.111 is the IP.

    EDIT: You only need to add the domain in Plesk if you're using it for anything else - for backup MX only skip the "disable mail for that domain" bit.

    HTH
     
  5. RexAdmin

    RexAdmin Guest

    0
     
    rcpthost file would be re-written when mungling with new/exsiting domain names, upgrades, ... thus this solution is not good

    The only way to setup (and forget) backup MX on Plesk server is to order additional IP address and bind on it new MTA. Clean, nice and easy.
     
  6. Cranky

    Cranky Guest

    0
     
    I meant morercpthosts, wasn't thinking straight sorry - mchk doesn't overwrite this or smtproutes. Post above edited.
     
  7. steviemcg

    steviemcg Guest

    0
     
    Thanks!

    Cranky,

    Thanks for your solution, it was exactly what I was looking for. I managed to implement my Plesk server as a Backup MX by using morercpthosts and MX records in the DNS.

    Best wishes,
    Steve
     
  8. synergypoint

    synergypoint Guest

    0
     
    I need to do the same and want to make sure I have impletmented this correctly.

    In my case, I am hosting the web site under plesk and the DNS. The mail is being sent to a remote mail server. DNS is setup for that.

    Here is my DNS record:

    polknc.org. NS ns1.synergydns.net.
    ns.polknc.org. A 207.97.214.168
    polknc.org. A 207.97.214.168
    webmail.polknc.org. A 207.97.214.168
    mail.polknc.org. A 216.105.135.226
    backupmail.polknc.org. A 207.97.214.168
    ftp.polknc.org. CNAME polknc.org.
    lists.polknc.org. CNAME polknc.org.
    www.polknc.org. CNAME polknc.org.
    polknc.org. MX (50) backupmail.polknc.org.
    polknc.org. MX (10) mail.polknc.org.
    207.97.214.168 / 24 PTR polknc.org.

    Currently the domain polknc.org is in my rcpthosts and virtualdomains files in /var/qmail/control directory.

    Should I remove the domain from those files?

    Here is my morercpthosts file:

    polknc.org

    Here is my smtproutes file:

    polknc.org: 216.105.135.226

    Is this the correct setup?

    Thanks
     
  9. steviemcg

    steviemcg Guest

    0
     
    As I understand it:
    You should disable mail completely in Plesk for that domain. Plesk will therefore remove it from control/rcpthosts and control/virtualdomains

    You should keep it in morercpthosts (as you've done already).
    Then run /usr/bin/qmail-newmrh as somebody already said

    As your DNS is set up, smtproutes aren't necessary.

    I used this configuration several times for myself already, seems to work.

    Best wishes,
    Steve
     
  10. synergypoint

    synergypoint Guest

    0
     
    Thanks.

    In the past I was catching all of the mail on the backup server in a "catchall" account. I now have a mailbox full of messages. The client was supposed to be checking the mailbox periodically but hasn't.

    Is there an easy way to now forward all of that on to the main mail server?
     
  11. steviemcg

    steviemcg Guest

    0
     
    Set up two IMAP accounts in Outlook Express, and drag the mails from one to the other.

    or

    Move the physical mail files to the new server, and make sure they have the right user / group ownership (just make it the same as the rest of the emails in that directory).

    cheers
     
  12. editor

    editor Guest

    0
     
  13. Vane

    Vane Guest

    0
     
    A question from this side related to fallback mail:

    If I buy a server and install only the OS (let's say Debian Sarge). Then set a clean Qmail installation on it and add the domains where I want to be fallback mail for in /var/qmail/control/rcpthosts and add in the nameservers of that domain MX 20 with the hostname from my fallback mailserver.

    A'm I doing that on the right way or...?
     
  14. BDMM

    BDMM Basic Pleskian

    24
    90%
    Joined:
    Apr 28, 2005
    Messages:
    31
    Likes Received:
    1
    So if I want to use my Plesk server as a seconday MX for a domain or DNS which is not hosted with me then do I just need to add the domain to my morercpthosts and run qmail-newmrh.

    ie DNS records for domain.com (DNS records not on my box)

    domain.com 111.111.111.111
    mail.domain.com 111.111.111.111
    mail2.domain.com 222.222.222.222 (which is me)

    I add to morercpthosts
    domain.com

    is it that simple or do I need to add
    domain.com:111.111.111.111

    Roo
     
Loading...