The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

2 Server for 1 Domain

Discussion in 'E-mail Discussions' started by nyoman, Feb 3, 2015.

  1. nyoman

    nyoman Active Member

    Joined:
    Nov 25, 2008
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Hello all

    Case
    1 Domain has 2 server

    1 server running cpanel on Dedicated for Mobile and overseas user
    1 server running on LAN (use MDaemon) for Local user to minimize traffic to the Internet

    What we setup now is create a user/mailbox on both server
    For local user we use fetchmail and multipop the email to the local server
    And for overseas/mobile user on our local server, we forward it to Dedicated without leave a copy on local

    Now i am thinking to NOT make a mailbox, just make a forward to subdomain

    Dedicated hostname mail2.domain.com
    Local hostname mail.domain.com aliases domain.com

    On Dedicated i just create a forward email (no mailbox), sample
    test@domain.com: test@mail.domain.com and this working properly

    But on Local Server when i forward email to dedicated i got error, sample
    dedicated@domain.com = dedicated@mail2.domain.com

    Error/Bounce message:
    dedicated@mail2.domain.com
    No Such User Here

    Where is the setup/config for my server to allow incoming email for mail2.domain.com is same a domain.com ?

    Thanks

    Nyoman
     
  2. nyoman

    nyoman Active Member

    Joined:
    Nov 25, 2008
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    I got temporary solution

    Make a forward on email on Dedicated server

    dedicated@mail2.domain.com to dedicated@domain.com

    To make a faster way just edit /etc/valiases/mail2.domain.com

    If you all has another method whiteout adding the forward i will appreciate it

    Regards
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Have you considered simply updating the MX records for your domain names so that all email is handled on the remote mail server?

    Thank you.
     
  4. nyoman

    nyoman Active Member

    Joined:
    Nov 25, 2008
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for the reply Michael,

    Do you mean update the MX record for sub.domain.com ?
    I am no trying yet.
    It is possible just make a MX record on cpanel for sub domain and is the mailbox will be same as maindomain.com ?

    I mean if in my LOCAL server i forward to user@dedicated.domain.com is the email will delivered to user@domain.com mailbox ?

    Regards
     
  5. nyoman

    nyoman Active Member

    Joined:
    Nov 25, 2008
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Got it,

    It is on cpanel, under Forward, you will see Add Domain Forwarder to setup this functions

    The files is created under /etc/vdomainaliases/sub.domain.com
    sub.domain.com : domain.com

    Nyoman
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Yes, per our documentation, you can use domain forwarders to forward copies of all of the incoming mail for all of a domain's addresses to another domain. Domain forwarders override the default address for the forwarded domain.

    Domain Forwarders

    Thank you.
     
Loading...

Share This Page