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.

Problem with External Mailservers

Discussion in 'E-mail Discussions' started by doubledome, Sep 17, 2004.

  1. doubledome

    doubledome Member

    Joined:
    Sep 14, 2004
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    I'm having a problem with our clients that have external mail servers.

    They cannot receive mail from our domain on the same server.
    They can send email to any domain outside our server.
    They can send email to our domain on the same server.


    Anyone have an idea as to why?
     
  2. GOT

    GOT Get Proactive!

    Joined:
    Apr 8, 2003
    Messages:
    900
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Norfolk, VA
    cPanel Access Level:
    DataCenter Provider
    You need to manually remove their domain from /etc/localhosts.
     
  3. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    Thats /etc/localdomains.. and add it to /etc/remotedomains, then run /scripts/mailperm
     
  4. GOT

    GOT Get Proactive!

    Joined:
    Apr 8, 2003
    Messages:
    900
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Norfolk, VA
    cPanel Access Level:
    DataCenter Provider
    Ha, oops! Thanks!
     
  5. doubledome

    doubledome Member

    Joined:
    Sep 14, 2004
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    WHM on a VPS

    I'm set up with CPanel and WHM on a VPS (Virtual Private Server). Where would this file be located? I've checked what seem to be the accounts set up for the VPS configuration, but the etc directories are blank.
     
  6. tulsabobt

    tulsabobt Active Member

    Joined:
    Aug 9, 2004
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    6
    I've tried the local and remote files over and over with no success. However this is the first time I have seen to run mailperm. When I do I get:

    /scripts/mailperm: line 6: require: command not found
    /scripts/mailperm: line 8: syntax error near unexpected token `('
    /scripts/mailperm: line 8: `my $mailgid = (getgrnam("mail"))[2];'


    Suggestions?

    Bob
     
  7. SupermanInNY

    SupermanInNY Well-Known Member

    Joined:
    Jul 19, 2003
    Messages:
    255
    Likes Received:
    0
    Trophy Points:
    16
    I do it differnetly:

    I edit the /var/named/domain.com.db

    and enter the following:


    myclientdomain.com. IN NS ns1.myserver.com.
    myclientdomain.com. IN NS ns2.myserver.com.

    myclientdomain.com. IN A localpri.mary.ip.addre.ss

    localhost.myclientdomain.com. IN A 127.0.0.1
    myclientdomain.com. IN MX 0 nameofremoteserver.myclientdomain.com.

    nameofremoteserver 14400 IN A remote.ip.addre.ss

    mail IN CNAME myclientdomain.com.
    www IN CNAME myclientdomain.com.
    ftp IN A localpri.mary.ip.addre.ss


    Good luck.
     
Loading...

Share This Page