1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.
  2. Better Analytics for WordPress Get It Free

Email Unrouteable address when sending mail

Discussion in 'Site & Server Administration' started by rederick, May 24, 2007.

  1. #1
    Hi,

    I'm having an email issue. It's a bit of a complicated story but I am stumped and wonder if anyone can offer some assistance.

    Ok - So I recently moved a domain over to a new server. "Domain A"
    Everything went fine.
    Then I realized that owner of the website also has another domain hosted on the old server "Domain B" - which had 3 email forwarders set up to go to Domain A. - These forwarders stopped working.
    I realized this was because the server was routing the mail locally as the account still remained on the old server. I "terminated" the account expecting this to make the server realize that the domain was no longer hosted on it. - But no such luck any email I attempt to send from Domain B to Domain A gets held up in the mail queue clamming
    "Unrouteable address"

    So It seems to me that the server still is trying to route the mail locally.


    The Server is running Cpanel/WHM 11 Exim for the MTA.

    I've tried restarting bind, and exim, I don't really want to do a full server reboot and I am not sure it would help anyways..Also ping,dig, traceroute all report that the domain is in fact not on the old server.

    Hope this makes sense. - Anyone know how I might go about fixing this?

    Thank you,
    Aaron
     
    rederick, May 24, 2007 IP
  2. tandac

    tandac Active Member

    Messages:
    337
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Check the MX records for Domain A.

    They should be pointing to the server that handles the email for Domain A.

    host -t mx DomainA

    from a unix prompt will give you the information you seek.
     
    tandac, May 24, 2007 IP
  3. rederick

    rederick Peon

    Messages:
    128
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi,
    Thank you for the reply - however I am not sure how the information will help me. From using the "host" command ... the server still appears like it Should be not trying to route the mail locally and send it over to the new server. It might be some lag from the DNS switch .... but strange that all the tools report that the DNS is fully propigated.
     
    rederick, May 24, 2007 IP
  4. tandac

    tandac Active Member

    Messages:
    337
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #4
    If you're having trouble sending mail from Server B hosting Domain B to Server A hosting Domain A, here's how I would handle it.

    - Check the MX records for DomainA. Make sure it's pointing to ServerA
    - Make sure ServerB is not configured to accept mail for DomainA for some reason
    - Simulate an SMTP transaction using telnet from ServerB to ServerA:

    telnet ServerA 25
    helo ServerA
    mail from: <someone@domainB>
    rcpt to: <somebody@domainA>
    data
    Subject: This is a test

    Hello world
    .

    That should all work. You should get a pretty clear hint as to the problem.
     
    tandac, May 24, 2007 IP
  5. rederick

    rederick Peon

    Messages:
    128
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    That did work - but the problem persists - I was able to telnet and send the test mail. This is really got me puzzled.
    Everything "seems" like it is set up correctly and should work. I am just going to get him to move both domains to the new server. That has got to solve this issue.

    Thank you,
    Aaron
     
    rederick, May 25, 2007 IP
  6. bfebrian

    bfebrian Peon

    Messages:
    1,246
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I'm not sure about exim. but with sendmail you can modified mailertable file to look like this.
    in old server
    domain.a smtp:domain.b
    of if using ip address
    domain.a smtp:[some.ip.address.ok]

    all emails to domain.b will be sent firectly to domain.b
    This is should be working with sendmail, but I'm not sure about exim.
     
    bfebrian, May 25, 2007 IP
    Briant likes this.