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.

Sub Domain on Different Server Exim Unroutable Address - WHM/cPanel

Discussion in 'E-mail Discussions' started by g18c, Jul 28, 2009.

  1. g18c

    g18c Member

    Joined:
    Jul 7, 2007
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Hi, I have two servers running cPanel/WHM, with BIND and Exim. I have my main domain running on one server (gizmo.mywebhost.net) and wish to host a seperate helpdesk on a subdomain support.mydomain.com (on a second server, stripe.mywebhost.net).

    The subdomain mail account test@support.mydomain.com works fine with hotmail, i can send and reveive between my stripe.mywebhost.net server and hotmail without any issue.

    The problem is when i try and send mails from accounts hosted on gizmo.mywebhost.net, to the subdomain server stripe.mywebhost.net, i get the following unroutable address error fired back by the local exim process:

    This message was created automatically by mail delivery software.

    A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:

    Code:
     [email]test@support.mydomain.com[/email]
        Unrouteable address
    
    ------ This is a copy of the message, including all the headers. ------
    
    Return-path: <csmorley@myotherdomain.com>
    Received: from [91.22.11.42] (helo=cartman)
    	by gizmo.mywebhost.net with esmtpa (Exim 4.69)
    	(envelope-from <csmorley@myotherdomain.com>)
    	id 1MVuGJ-0004h0-3p
    	for [email]test@support.mydomain.com[/email]; Tue, 28 Jul 2009 22:31:07 +0100
    From: "Chris Morley" <csmorley@myotherdomain.com>>
    To: <test@support.mydomain.com>
    Subject: 
    Date: Wed, 29 Jul 2009 01:32:57 +0400
    Message-ID: <00f901ca0fca$fa206d40$ee6147c0$@com>

    I have setup the subdomain in WHM, with the following bind zone as follows (this is a DNS cluster so zone files are the same on both gizmo and stripe):

    Code:
    root@stripe [/var/named]# cat mydomain.com.db
    ; cPanel first:11.24.4-RELEASE_36167 latest:11.24.4-NIGHTLY_36950 Cpanel::ZoneFile::VERSION:1.2 mtime:1248815949 hostname:stripe.mywebhost.net
    ; Zone file for mydomain.com
    $TTL 14400
    mydomain.com.        86400   IN      SOA     ns1.mywebhost.net.   mymail.hotmail.com.       (
                                                    2009071311 ;Serial Number
                                                    86400 ;refresh
                                                    7200 ;retry
                                                    3600000 ;expire
                                                    86400 ;minimum
            )
    mydomain.com.        86400   IN      NS      ns1.mywebhost.net.
    mydomain.com.        86400   IN      NS      ns2.mywebhost.net.
    mydomain.com.        14400   IN      A       91.43.22.89
    localhost       14400   IN      A       127.0.0.1
    mydomain.com.        14400   IN      MX      0       mydomain.com.
    mail    14400   IN      CNAME   mydomain.com.
    www     14400   IN      CNAME   mydomain.com.
    ftp     14400   IN      A       91.43.22.89
    cpanel  14400   IN      A       91.43.22.89
    whm     14400   IN      A       91.43.22.89
    webmail 14400   IN      A       91.43.22.89
    webdisk 14400   IN      A       91.43.22.89
    support 14400   IN      A       91.12.11.112
    support 14400   IN      MX      0       support.mydomain.com.
    helpdesk.support        14400   IN      A       91.12.11.112

    The exim dump on gizmo is as follows:

    Code:
    root@gizmo [~]# tail -n 50 /var/log/exim_mainlog
    *snip*
    2009-07-28 22:31:07 1MVuGJ-0004h0-3p <= [email]csmorley@mydomain.com[/email] H=(cartman) [91.73.14.49] P=esmtpa A=fixed_login:csmorley@mydomain.com S=5457 id=00f901ca0fca$fa206d40$ee6147c0$@com
    2009-07-28 22:31:07 1MVuGJ-0004h0-3p ** [email]test@support.mydomain.com[/email]: Unrouteable address
    2009-07-28 22:31:07 1MVuGJ-0004hJ-Ix <= <> R=1MVuGJ-0004h0-3p U=mailnull P=local S=6360
    2009-07-28 22:31:07 1MVuGJ-0004h0-3p Completed
    2009-07-28 22:31:07 1MVuGJ-0004hJ-Ix => csmorley <csmorley@mydomain.com> R=virtual_user T=virtual_userdelivery
    2009-07-28 22:31:07 1MVuGJ-0004hJ-Ix Completed
    When i try and send from stripe (the server that hosts the subdomain support.mydomain.com) to an email address as the main parent domain (hosted on gizmo), i get the following failure:

    Code:
    [email]csmorley@mydomain.com[/email]
        SMTP error from remote mail server after RCPT TO:<csmorley@mydomain.com>:
        host mydomain.com [91.43.22.89]:
        550-Verification failed for <test@support.mydomain.com>
        550-Unrouteable address
        550 Sender verify failed
    The dump exim dump from the main domain machine is as follows:

    Code:
    root@gizmo [~]# tail -n 50 /var/log/exim_mainlog
    *snip*
    2009-07-28 22:32:19 H=stripe.mywebhost.net [91.12.11.112] Warning: Sender rate 4.6 / 1h
    2009-07-28 22:32:19 H=stripe.mywebhost.net [91.12.11.112] sender verify fail for <test@support.mydomain.com>: Unrouteable address
    2009-07-28 22:32:19 H=stripe.mywebhost.net [91.12.11.112] F=<test@support.mydomain.com> rejected RCPT <csmorley@mydomain.com>: Sender verify failed

    Does anyone have any idea what is going on with the above? Been scratching my head and googling for a while but so far have drawn a blank.

    Many thanks in advance,

    Chris
     
  2. g18c

    g18c Member

    Joined:
    Jul 7, 2007
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Hi, managed to resolve this:

    I moved the domain from /etc/localdomains to /etc/remotedomains, from that point on exim started looking up the subdomains mx record instead of going to local host.

    In summary,

    mydomain.com is now in /etc/localdomains
    support.mydomain.com. is now in /etc/remotedomains


    References:

    http://forums.cpanel.net/f43/what-proper-way-set-up-external-mail-server-cpanel-76471.html
    How to setup External Mail server on cPanel Hosting | Wired GORILLA - Hosting - Scripting - Linux - PHP - mySQL

    Regards,

    Chris
     
Loading...

Share This Page