Skip to main content

Two VPS on 1 domain

Comments

6 comments

  • acenetgeorge
    You could use a third party mail service, like Google. Or just have mail go to one of the servers, and use that server for the MX host record.
    0
  • ronaldst
    Are you referring to Google Apps? It seem logic and reasonable to set up mail to be handeled by one of the servers. I'd very much like that idea. How is this done?
    0
  • ronaldst
    I'm checking the logs on VPS2 and there's a lot of failed deliveries in the logs. The mail server could not deliver mail to root@vps2. The account or domain may not exist, they may be blacklisted, or missing the proper dns entries.
    0
  • cPanelMichael
    My concerns are VPS2 and how it handles mail. How do I set this up so that VPS1 and VPS2 can send emails without them going to the wrong VPS? Traffic to mail.example.com or example.com:2096 will go to VPS1.

    Hello, You should not encounter any issues as long as the domain names from each VPS are not in the /etc/localdomains file on both servers (this shouldn't happen by default).
    The mail server could not deliver mail to root@vps2. The account or domain may not exist, they may be blacklisted, or missing the proper dns entries.

    Could you verify if the hostname is missing from the /etc/localdomains file on the affected system? If so, adding the server's hostname to this file should address the issue. Thank you.
    0
  • ronaldst
    /etc/localdomains/ on VPS1 does not have the hostname of VPS2 in it /etc/localdomains/ on VPS2 does not have the hostname of VPS1 in it hostname in /etc/localdomains/ on VPS2 (where I get the delivery error to root@vps2) is not missing. It says vps2.example.com account1.example.com account2.example.com
    0
  • cPanelMichael
    Feel free to open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0

Please sign in to leave a comment.