Page 1 of 2 12 LastLast
Results 1 to 15 of 16

Thread: Website Hosted with me, Mail hosted at company site

  1. #1
    Member
    Join Date
    Dec 2005
    Posts
    11

    Default Website Hosted with me, Mail hosted at company site

    Hi all,

    I have a client that hosts their website with me and hosts their mail(Exchange) on site. Do i just need to Edit the DNS zone, create an A record for mail, then point mail to the IP of their company?

    Please advise.

    Thanks,
    Matthew

  2. #2
    Member ntwaddel's Avatar
    Join Date
    Nov 2003
    Location
    Templeton, CA
    Posts
    173

    Default

    they probably already have an dns record for their exchange server, so you just need to change the MX record to point to their server

  3. #3
    Member adept2003's Avatar
    Join Date
    Aug 2003
    Location
    ~ "/(extra|special)/data"
    Posts
    283

    Default

    You will also need to edit /etc/localdomains to remove the domain name, so that mail isn't delivered locally.
    Chad
    Adept Hosting Ltd
    UK Web Hosting

  4. #4
    Member
    Join Date
    Oct 2004
    Posts
    124

    Default

    ......and add the domain name to /etc/remotedomains and restart Bind for the changes to take effect.

  5. #5
    Member verdon's Avatar
    Join Date
    Nov 2003
    Location
    Northern Ontario, Canada
    Posts
    792

    Default

    Quote Originally Posted by mstorman
    ...just need to Edit the DNS zone, create an A record for mail, then point mail to the IP of their company?
    I have a couple setup like that and it works fine. It's also important to make sure the correct entries are done in /etc/remotedomains and /etc/localdomains.

  6. #6
    Member
    Join Date
    Dec 2005
    Posts
    11

    Default

    Quote Originally Posted by verdon
    I have a couple setup like that and it works fine. It's also important to make sure the correct entries are done in /etc/remotedomains and /etc/localdomains.
    Can you expand on what exactly needs to be done. I have access to WHM, however i don't have root access.

    Thanks,

  7. #7
    Member adept2003's Avatar
    Join Date
    Aug 2003
    Location
    ~ "/(extra|special)/data"
    Posts
    283

    Default

    As a reseller, you really should be getting support for this issue from your webhost.

    Depending on whether they've allowed you to edit DNS / MX records, you may be able to do that yourself.

    However, you will need to ask them to remove/add entries for the domain to localdomains/remotedomains. If you aren't able to edit dns/mx records, then your web host will need to do that for you too.
    Chad
    Adept Hosting Ltd
    UK Web Hosting

  8. #8
    Member
    Join Date
    Dec 2005
    Posts
    11

    Default

    Quote Originally Posted by adept2003
    As a reseller, you really should be getting support for this issue from your webhost.

    Depending on whether they've allowed you to edit DNS / MX records, you may be able to do that yourself.

    However, you will need to ask them to remove/add entries for the domain to localdomains/remotedomains. If you aren't able to edit dns/mx records, then your web host will need to do that for you too.
    I do have DNS edit rights, so i do have an A record for mail.domain.com pointing to the company's IP. However, im not sure what you mean by "However, you will need to ask them to remove/add entries for the domain to localdomains/remotedomains"

    Please advise.

    Thanks

  9. #9
    Member
    Join Date
    Dec 2005
    Posts
    11

    Default

    Also,

    Can you post the proper DNS configuration for my current situation?

    Thanks,

  10. #10
    Member
    Join Date
    Dec 2005
    Posts
    11

    Default

    Quote Originally Posted by verdon
    I have a couple setup like that and it works fine. It's also important to make sure the correct entries are done in /etc/remotedomains and /etc/localdomains.
    I spoke to them about this. They have completed this.

  11. #11
    Member verdon's Avatar
    Join Date
    Nov 2003
    Location
    Northern Ontario, Canada
    Posts
    792

    Default

    Quote Originally Posted by mstorman
    Also,

    Can you post the proper DNS configuration for my current situation?

    Thanks,
    Here's an example from mine...
    Code:
    ; Modified by Web Host Manager
    ; Zone File for domain.com
    $TTL 14400
    @	14440	IN	SOA	ns1.host.com.	admin.host.com.	(
    					2005080502
    					7200
    					7200
    					2419200
    					86400
    					)
    
    domain.com.	14400	IN	NS	ns1.host.com.
    domain.com.	14400	IN	NS	ns2.host.com.
    
    domain.com.	14400	IN	A	xx.xx.xxx.xx
    
    localhost.domain.com.	14400	IN	A	127.0.0.1
    
    domain.com.	14400	IN	MX	0	mail.domain.com.
    domain.com.	14400	IN	MX	50	backupmx.host.com.
    
    mail	14400	IN	A	xxx.xx.xxx.xxx
    www	14400	IN	CNAME	domain.com.
    ftp	14400	IN	A	xx.xx.xxx.xx

  12. #12
    Member
    Join Date
    Dec 2005
    Posts
    11

    Default

    Verdon, that worked however.....

    When i send email from the timbermountain.net domain to other domains that i host i get a bounceback
    -----------------------------------
    Your message did not reach some or all of the intended recipients.

    Subject: testing
    Sent: 12/10/2005 9:33 AM

    The following recipient(s) could not be reached:

    matthew@thestormans.com on 12/10/2005 9:33 AM
    There was a SMTP communication problem with the recipient's email server. Please contact your system administrator.
    <mail.timbermountain.net #5.5.0 smtp;550-Verification failed for <Fax@timbermountain.net>>
    ------------------------------------------


    Also, when i send email from any of the domains i host to the timbermountain.net domain, i also get a bounceback
    --------------------------------------------------
    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:

    fax@timbermountain.net
    unrouteable mail domain "timbermountain.net"

    ------ This is a copy of the message, including all the headers. ------

    Return-path: <matthew@thestormans.com>
    Received: from 69-160-141-103.ontrca.adelphia.net ([69.160.141.103] helo=home01)
    by server41.integrityserver.net with esmtp (Exim 4.52)
    id 1El8Jg-00054Z-Pr
    for fax@timbermountain.net; Sat, 10 Dec 2005 11:15:24 -0600
    From: "Matthew Storman" <matthew@thestormans.com>
    To: <fax@timbermountain.net>
    Subject: testing once more
    Date: Sat, 10 Dec 2005 09:15:36 -0800
    Message-ID: <000901c5fdad$57e82b90$6401a8c0@home01>
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
    boundary="----=_NextPart_000_000A_01C5FD6A.49C4EB90"
    X-Mailer: Microsoft Office Outlook 11
    thread-index: AcX9rVYEfIgYwW/NRsyQSb8jKNT+jQ==
    X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180

    This is a multi-part message in MIME format.

    ------=_NextPart_000_000A_01C5FD6A.49C4EB90
    Content-Type: text/plain;
    charset="windows-1250"
    Content-Transfer-Encoding: 7bit

    Testing.
    -------------------------------------

    However, if i send email from the timbermountain.net domain to Yahoo, Gmail etc, the email goes just fine. And likewise if i send it from Yahoo, Gmail etc, email is recieved at the timbermountain.net domain.

    Please HELP!

    Thanks,
    Matthew

  13. #13
    Member verdon's Avatar
    Join Date
    Nov 2003
    Location
    Northern Ontario, Canada
    Posts
    792

    Default

    well, I'm not sure I'm really the best one to answer... I just set mine up based on tips I found here, and I've had no problems. If I had to guess, I would guess that the timbermountain.net hasn't been moved from localdomains to remotedomains. Also, to be honest, I can remember if it's neccessary to re-start exim or not after making the change.

    Sorry I can't be more help, it's been a few months since I did one of these on my server.

  14. #14
    TAK
    TAK is offline
    Member
    Join Date
    Dec 2003
    Posts
    65

    Default

    Just to simplify a few things:

    If you use the MX editor in WHM, it will automatically remove the domain from localdomains and put it in remotedomains. If you edit the DNS zone and do it from there, then it will not.

    Restarting bind either way is recommended.

  15. #15
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,144
    cPanel/WHM Access Level

    Root Administrator

    Default

    Also, I've found that if you modify the default "mail.domain.com" record sometimes cpanel doesn't seem to realize that you've changed the default MX. To change the incoming SMTP server (MX) for a domain, I'd do two things (assuming the IP address for the SMTP server is 200.200.200.200):
    1. Create a DNS A record mailserver.domain.com with IP 200.200.200.200
    2. Use the cpanel MX changer to point the MX record to mailserver.domain.com.
    These two steps, if they both work, are all that's required, I've done it lots. You don't need another MX, it really adds very little.

    Never, ever point MX records to IP addresses - while it works for about 95% of incoming email, it breaks agreed Internet email standards and will prevent some people from emailing you. You don't want to cause this sort of obscure pain for yourself!

    After using the cpanel MX function, if you have server login access, or know how to write a simple PHP script, you should check that domain.com has been removed from /etc/localdomains and put in /etc/remotedomains. Cpanel's Exim will try to process mail for domains listed in /etc/localdomains itself, so unless the domain.com line is removed and put into /etc/remotedomains, it just won't work for you. It's worth checking that cpanel is getting this right, because as I said above, it wasn't for a few months back earlier this year - I think it gets it right now.

    Once you've made the changes, go to www.dnsstuff.com and use the top right column to check the MX record definition has changed. If it hasn't, check your DNS settings in WHM's "Edit DNS Zone". If that still doesn't fix it, try either editing again, or getting the server admin to restart your server Bind. (probably unlikely you'll need to do either, it should work).

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 9
    Last Post: 02-17-2012, 07:57 AM
  2. Host a website for a domain hosted somewhere else?
    By atodea in forum New User Questions
    Replies: 10
    Last Post: 11-20-2011, 07:30 AM
  3. 1 website needs to be hosted on 2 servers ??
    By mohit in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 03-22-2006, 06:19 AM
  4. New User: want a simple website hosted
    By A_O in forum New User Questions
    Replies: 1
    Last Post: 11-01-2004, 04:38 PM