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.

email masquerade ?

Discussion in 'E-mail Discussions' started by valleytech, Nov 3, 2010.

  1. valleytech

    valleytech Member

    Joined:
    May 11, 2007
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    hi there
    I have a primary domain: myname.com which is hosted by a separate server (different from my cpanel one). I;d like to use cpanel/whm to host its email.

    myname.com has MX record pointed to mail.myname.com
    mail.myname.com has A record pointed to public_cpanel_license_IP_address

    On my cpanel/whm host, I created both accounts myname.com and mail.myname.com

    How can I create email such that it will appear as user@myname.com rather than user@mail.myname.com ?

    many thanks!!
     
  2. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Only one account is needed, with a primary domain in the format of "domain.tld" and not "mail.domain.tld". With only the correct account remaining, I would consider configuring the E-mail Routing preference to be "Local Mail Exchanger" or "Automatically Detect" via either of the following menu paths in cPanel & WHM:
     
  3. valleytech

    valleytech Member

    Joined:
    May 11, 2007
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Thanks!
    I actually created domain.com

    Then created email myname@domain.com

    I was able send an email to gmail. but not receive. Am I missing anything?

    I used "automatically detect ... " options while creating such account.

    Here is the DNS record file for domain.com

    Code:
    domain.org.      IN      MX 10   mail.domain.org.
    
    domain.org.      IN      A        212.84.180.225
    www             IN      A        212.84.180.225
    
    mail.pskin.org. IN A 209.171.24.3
    
     
  4. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I am seeing a different IP address in the A record for the "mail." sub-domain when querying the authoritative DNS/name servers:
    Code:
    # dig +noall +answer mail.pskin.org ANY @ns1.everydns.net
    mail.pskin.org.		3600	IN	A	209.172.108.3
    # dig +noall +answer mail.pskin.org ANY @ns2.everydns.net
    mail.pskin.org.		3600	IN	A	209.172.108.3
    # dig +noall +answer mail.pskin.org ANY @ns3.everydns.net
    mail.pskin.org.		3600	IN	A	209.172.108.3
    # dig +noall +answer mail.pskin.org ANY @ns4.everydns.net
    mail.pskin.org.		3600	IN	A	209.172.108.3
    # dig +noall +answer mail.pskin.org ANY @ns1.valleytech.net
    mail.pskin.org.		38400	IN	A	209.172.108.3
    # dig +noall +answer mail.pskin.org ANY @ns2.valleytech.net
    mail.pskin.org.		38400	IN	A	209.172.108.3
    If the IP address received from the DNS servers is not on the same server where the cPanel account is setup, then mail may not be received as expected. I would verify the correct IP address and ensure it is set at your authoritative DNS/name servers.

    From the cPanel server, please let us know the output of the following two commands (via root SSH access):
    Code:
    # grep -cHi "^pskin.org$" /etc/localdomains /etc/remotedomains
    # grep -HinR "^MXCHECK-pskin.org" /var/cpanel/users
     
  5. valleytech

    valleytech Member

    Joined:
    May 11, 2007
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    hi
    that's what i'm trying to do. I've done this before, but :confused:i Can't remember the procedure, also with cpanel

    domain.com is located at different server.
    I wnated to use cpanel as its mail server.

    Code:
    root@cpanel [~]# grep -cHi "^pskin.org$" /etc/localdomains /etc/remotedomains
    /etc/localdomains:1
    /etc/remotedomains:0
    root@cpanel [~]# grep -HinR "^MXCHECK-pskin.org" /var/cpanel/users
    root@cpanel [~]# 
    
    thanks!!
     
  6. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    The provided command-line (CLI) output appears normal. If I understand correctly, the only issue remaining is that the DNS zone should be updated to reflect the correct IP address. The DNS zone to modify is the one hosted at your authoritative DNS/name servers, as listed below:
    Code:
    ns1.everydns.net
    ns2.everydns.net
    ns3.everydns.net
    ns4.everydns.net
    ns1.valleytech.net
    ns2.valleytech.net
    If not using cPanel & WHM for your name servers I recommend contacting the service provider being used for DNS to determine what procedure they offer for editing DNS zones.
     
Loading...

Share This Page