newbie needs help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sturmdogg
    Junior Member
    • Apr 2004
    • 12

    #1

    newbie needs help

    Hi guys,

    I need some help here. I have this client who is running his own mail server, but he needs me to host his website. What do I need to do so that his emails go to his mail server while pointing the url to his webhosting account?

    Thanks!
  • KyleC
    Senior Member
    • Mar 2004
    • 291

    #2
    there is an option in cpanel to 'Modify Mail Exchanger' but that requires a domain, so u would prob need to edit the dns zone in whm to make mail. point to his servers ip

    and he would need to configure his server to accept mail from the domain you are hosting
    -Kyle

    Comment

    • Buddha
      Senior Member
      • Mar 2004
      • 825

      #3
      To edit the DNS zone in WHM you need to sumit a trouble ticket to have that function activated.
      "Whatcha mean I shouldn't be rude to my clients?! If you want polite then there will be a substantial fee increase." - Buddha

      Comment

      • openbox
        Senior Member
        • Mar 2004
        • 238

        #4
        Once you setup the domain, you need to edit your DNS info and change the MX record to reflect your customer's mail server domain name. If your customer doesn't have a domain name for their server, then create an A record for their IP address and point your MX record at that domain.

        Comment

        • sturmdogg
          Junior Member
          • Apr 2004
          • 12

          #5
          Originally posted by openbox
          Once you setup the domain, you need to edit your DNS info and change the MX record to reflect your customer's mail server domain name. If your customer doesn't have a domain name for their server, then create an A record for their IP address and point your MX record at that domain.
          His domain name is already active, and is using it to send/ receive email to his mail server. Does this mean I need to change his domain's A record so that it points to the account im hosting?

          Comment

          • openbox
            Senior Member
            • Mar 2004
            • 238

            #6
            Nope, just create/edit an MX record to point at the domain of his mail server and the mail server should handle the rest.

            Comment

            • Dan
              Member
              • Mar 2004
              • 99

              #7
              Hello Sturmdogg, having gone through this with my companies website recently I can give you a few pointers on the procedure.

              Create the domain on your server.
              Upload all of their files.
              Change the dns at the registrar to point to your server.

              At this point you need to determine what the existing MX record and their gateway/servers IP is. You can do this a number of ways, doing a dig, looking at the existing DNS on their existing server, or (possibly) even by guessing as many times it's just mail.domain.com.

              Once you've determined this you will need to edit the DNS zone for the domain on your server.

              Go to DNS functions in your WHM and select Edit a DNS zone.
              Select the domain from the list then select edit.

              By default WHM creates an MX record of:
              domain.com. 14400 IN MX 0 domain.com.

              And it also creates a CNAME of:
              mail 14400 IN CNAME domain.com.

              Those are the two records that you are interested in. Note the 0 (zero) in the first, being the lowest number that makes this the MX for the domain of the highest priority (the first to handle email).

              For the purpose of this post I will assume that their existing gateway/server is setup as mail.domain.com.

              Change this record:
              domain.com. 14400 IN MX 0 domain.com.

              To be:
              domain.com. 14400 IN MX 0 mail.domain.com.

              Change this record:
              mail 14400 IN CNAME domain.com.

              To be:
              mail 14400 IN A ###.###.###.###

              Replacing the #'s with the IP assigned to their gateway/server.

              What doing this will accomplish is:
              Assigning an IP as mail.domain.com.
              Assigning all email for domain.com to be sent to mail.domain.com.
              All email for domain.com will then be sent directly to them.

              There should not be any configuration changes that need to take place on their server. The rules of propagation will apply though. Meaning that these changes will take up to three days to go into effect and that it is possible that emails may be returned as undeliverable. When I have done it though I did not have any such problems as servers will hold mail and continue to try to resend.

              Hope that helps!

              Comment

              • piku
                Senior Member
                • Mar 2004
                • 153

                #8
                my signature was deleted. i miss my signature-filled-with-helpful-dathorn-links *sniff*sniff*

                Comment

                • vizability
                  Junior Member
                  • Apr 2004
                  • 8

                  #9
                  I have followed Dan's instructions on a clients site that has their email hosted externally...

                  My problem is that the results from a form on their website aren't being emailed to any address on that domain - when I look at webmail on the client's account, all the emails are sitting there with nowhere to go.

                  If I change the recipient in the cgi script to my email address it comes through fine

                  so... any ideas to sort this out? Is it a DNS issue or is there some trick to setting up a default accounts or forwarders? Should I be able to email form results in this way?

                  many thanks
                  Stuart

                  Comment

                  • openbox
                    Senior Member
                    • Mar 2004
                    • 238

                    #10
                    It's a DNS issue. When your script sends the mail, it looks at DNS records and sees that you have a local entry. As currently configured, you won't be able to have mail sent to an external SMTP server from your local account.

                    Comment

                    • vizability
                      Junior Member
                      • Apr 2004
                      • 8

                      #11
                      Originally posted by openbox
                      ...it looks at DNS records and sees that you have a local entry..
                      Thanks openbox - I take that to mean that the external mail server may not be properly identified..

                      I have adjusted the DNS settings as follows:
                      domain.com.au 14400 MX 10 mail.maildomain.com.au.
                      mail.maildomain.com.au. 14400 A 203.xxx.x.xxx


                      Are any other changes necessary? Am I correct in presuming that because this is local then changes should be immediately effective for testing?

                      Cheers

                      Comment

                      • openbox
                        Senior Member
                        • Mar 2004
                        • 238

                        #12
                        Unfortunately, mail originating from the server, will stay at the server. Mail incoming to the server will see the MX record and head to the other server.

                        Comment

                        • vizability
                          Junior Member
                          • Apr 2004
                          • 8

                          #13
                          waaat??
                          how do i send mail from the website then? must be a way...

                          Comment

                          • AndrewT
                            Administrator
                            • Mar 2004
                            • 3655

                            #14
                            Originally posted by vizability
                            waaat??
                            how do i send mail from the website then? must be a way...
                            Submit a trouble ticket and this is something that we can correct for you. Be sure to include the domain name.

                            Comment

                            • openbox
                              Senior Member
                              • Mar 2004
                              • 238

                              #15
                              Good luck. I haven't put too much effort/thought into it yet, but I haven't heard of it working yet. The question has been asked a couple of times before. One way would be to delete your DNS records and host your DNS somewhere else.

                              Edit: Oops, I stand corrected by Andrew
                              Last edited by openbox; 10-08-2004, 07:05 AM. Reason: Correction

                              Comment

                              Working...