Mail server setup using cpanel in VPS

Discussion in 'Site & Server Administration' started by Zacha, Apr 2, 2010.

  1. #1
    I am running several websites on my new VPS, and would like to set up individual mailservers for some of them. i.e. mail.mywebsite.com, instead of the default srv.serversite.com. This is so automatic emails do not get bounced by some mail clients.


    I am almost positive this can be done, but I am having problems setting this up.

    I have read numerous articles, and manuals. I have setup an MX for the website, but still cannot figure it out.

    Can anyone help?

    Thanks.
     
    Last edited: Apr 2, 2010
    Zacha, Apr 2, 2010 IP
  2. aroel

    aroel Well-Known Member

    Messages:
    154
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    125
    #2
    first you have to set reverse dns for the mail server, do you run your own ns server?
     
    aroel, Apr 2, 2010 IP
  3. PsyHost

    PsyHost Well-Known Member

    Messages:
    641
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Unless your host offers full control over your ip dns ( which i doubt it would ) the above reply won't help at all.

    Upon saying that, you will still need to be able to set a reverse DNS (PTR Record), without that you simply cannot guarantee all mail servers will accept mail from you.

    Email your hosting provider and ask if you can set a PTR Record (or if they can do it for you) on your ip you have to point to mail.yourwebsite.com, if they can do that then providing your IP/Hostname isn't in any blacklists you should see little to no mail being rejected by mailservers across the world.

    However, you can only have one PTR record per IP aswell, so unless you have "several" ips, you will have to set one global Mailserver to handle mail for all the websites you host.

    Hope this helps.
     
    PsyHost, Apr 2, 2010 IP