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.

Hosting external mail server troubles

Discussion in 'E-mail Discussions' started by docjohn, Nov 19, 2004.

  1. docjohn

    docjohn Member

    Joined:
    Aug 30, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I have a domain in WHM/cpanel that has externally hosted mail servers and an externally hosted DNS. It uses web forms to send email to the organization.

    Unfortunately, the email never leaves the local server.

    I followed all the previous advice to remove the domain from /etc/localdomains and added it to /etc/remotedomains.

    I also completely removed the DNS Zone for this domain via WHM. Restarted exim.

    dig domain.com MX shows everything properly pointing to the right places.

    Resolvers are set to ISPs nameservers.

    However, when I send any email from this webform, it's still not getting to the remote mail server. The local server continues to collect it in the local mailbox. (Web serving on the box works fine.)

    I'm at my wit's end with this one so any help would be appreciated, thanks!!

    DIG results:

    ; <<>> DiG 9.2.4rc6 <<>> domain.com mx
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45031
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 3

    ;; QUESTION SECTION:
    ;domain.com. IN MX

    ;; ANSWER SECTION:
    domain.com. 12939 IN MX 10 mail42.messagelabs.com.
    domain.com. 12939 IN MX 20 mail30.messagelabs.com.

    ;; AUTHORITY SECTION:
    domain.com. 832 IN NS ns17.zoneedit.com.
    domain.com. 832 IN NS ns13.zoneedit.com.

    ;; ADDITIONAL SECTION:
    mail42.messagelabs.com. 19 IN A 38.118.4.19
    ns13.zoneedit.com. 103067 IN A 216.122.4.160
    ns17.zoneedit.com. 95195 IN A 209.126.159.118

    ;; Query time: 13 msec
    ;; SERVER: 216.234.234.30#53(216.234.234.30)
    ;; WHEN: Fri Nov 19 15:36:28 2004
    ;; MSG SIZE rcvd: 181
     
  2. fwwebs

    fwwebs Well-Known Member

    Joined:
    Feb 16, 2004
    Messages:
    329
    Likes Received:
    0
    Trophy Points:
    16
    If you have root access see what the logs say. There's a few possiblities, but the logs are a good place to start.
     
  3. docjohn

    docjohn Member

    Joined:
    Aug 30, 2004
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Ok, so from exim_mainlog I see something like this:

    2004-11-19 11:14:49 1CVCLR-00085j-7L <= abc@server1.domain.com U=abc P=local S=1512
    2004-11-19 11:14:49 1CVCLR-00085l-7w <= abc@server1.domain.com U=abc P=local S=964
    2004-11-19 11:14:49 1CVCLR-00085l-7w => abc <abc@domain.com> R=localuser T=local_delivery
    2004-11-19 11:14:49 1CVCLR-00085l-7w Completed

    It clearly thinks user "abc" is a local user that needs to be delivered locally to server1.domain.com. My problem seems to be with exim?

    I don't usually have to setup an external mail server like this, that's why I'm having so much trouble....
     
Loading...

Share This Page