Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 16 to 30 of 36
  1. #16
    Member
    Join Date
    Feb 2003
    Posts
    169

    Default

    I have a question along these lines. In the same situation, with a domain client wanting to use their outside servers for email, they give me an IP to forward MX to. Now, cPanel says you can't forward MX to an IP, only a domain name. So, would it be wise to edit the domain zone for their domain with me so that mail.domain.com goes to the ouside IP, then change MX records to forward to mail.domain.com? This has been confusing to me for some time. Thanks.

  2. #17
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    VIA WHM edit the dns zone so that the mail.domain.com points to the IP And change it from cname to A record. Make sure the MX has the mail.domain.com bit. Then in SSH, ad the domain to the /etc/remotedomains file on a new line then run /scripts/mailperm and your done!
    Beau Henderson

  3. #18
    Member
    Join Date
    Feb 2003
    Posts
    169

    Default

    Just to clarify, we are talking about files named "localdomains" and "remotedomains", not "localhosts" and "remotehosts", correct?

    David

  4. #19
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    That is correct.
    Beau Henderson

  5. #20
    Member
    Join Date
    Feb 2003
    Posts
    169

    Default

    Thanks. This worked perfectly

  6. #21
    Member
    Join Date
    Jan 2004
    Location
    Finland
    Posts
    36

    Default

    I had a situation when the customer wanted to keep the domain in their control, and handle mails and dns.
    This situation was, at the end, really simple, because all I had to do was to:
    1. create account,
    2. remove dns zones,
    3. remove the domain from localdomains,
    4. add the domain to remotedomains.
    (5) Also the customer had to change their 'A'-entry to point to my server.

    I was a bit confused about this earlier, but I have noticed that it's working. I'm happy about this as we have some customers who have hundreds of email account. And we prefer not to take that big amounts of email accounts, as we've had some problems with emails and cpanel (those problems are though fixed now *fingers crossed*).

  7. #22
    Member
    Join Date
    Mar 2004
    Posts
    70

    Default

    Quote Originally Posted by drmuey
    Howdy,

    We have a domain that we host the website for on Cpanel.

    They have their own mail server at a different IP.

    I've changed their MX record and if you do a host, dig, or nslookup you get the proper info back.

    I also put an entry in /etc/hosts for it.

    The problem is that if another domain on that same cpanel server sends mail to the domain with it's own mail server it gets delivered locally, bypassing /etc/hosts and dns!

    Therefore the domain with their own mail server do not receive mail from other domains hosted on the same cpanel server since it gets deleiverd locally and not to their mail server.

    Any ideas how to get exim to use /etc/hosts or dns?

    Or other wise have it not delivered locally but to their mail server?

    Thanks

    Dan

    cPanel.net Support Ticket Number:
    sorry for not reading rest of the post here (probably this answer is already there)... Delete domain from /etc/localdomains and it will fix everything. Use http://www.dnsstuff.com/ to chek mail delivry

  8. #23
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    Quote Originally Posted by naox
    sorry for not reading rest of the post here (probably this answer is already there)... Delete domain from /etc/localdomains and it will fix everything. Use http://www.dnsstuff.com/ to chek mail delivry
    removing the domain from localdomains is only half the battle. If its not present in /etc/remotedomains then the next upcp or mailperm run it will get re-added to localdomains.
    Beau Henderson

  9. #24
    Member
    Join Date
    Apr 2003
    Posts
    192

    Default

    Instented easier to user another server for e-mail server ?

  10. #25
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    Quote Originally Posted by budway
    Instented easier to user another server for e-mail server ?
    I'm not sure what your getting at with the above. The point of the thread is that the client wishes to use his or her own mail server for processing and receiving mail. cPanel is quite capable of handleing mail and there is no reason to avoid that aspect. The point here is that if you have a client with a remote mail server ( their own mail server ) then you would need to make that known to the software via the methods provided above. I hope that clears up your question, and I hope i got it right
    Beau Henderson

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

    Default Resurecting again

    Quote Originally Posted by pguy
    I'll tell you what you need to do in a Step by Step way -

    1) Use WHM to edit DNS and change the MX entries.
    2) pico /etc/localdomains & remove the domain name
    3) pico /etc/remotedomains & check if the domain you edited is there. If not, add it.
    Hi

    I've been kind of stumbling my way through this and ran into a little confusion. I have something set-up that seems to be working, but I'm not sure it is good...

    I first just tried to edit my DNS and change the MX entry from the standard put in by WHM - mydomain.com. IN MX 0 mydomain.com. - to one that pointed to the IP of the remote mail server. dnsreport.com didn't like this. Apparently I'm not supposed to use an IP there and am supposed to use a name. On the advice of a friend more knowledgeable than I, I pointed my MX to 'mail.mydomain.com.' instead of 'mydomain.com.' and then changed the CNAME for 'mail' in my zone file to an A pointing to the remote IP, and this seemed to work. I then removed the domain from localdomains and added it to remotedomains.

    Does anyone see a problem with this approach? It does seem to be working.

    mydomain.com.db BEFORE
    Code:
    ; Modified by Web Host Manager
    ; Zone File for mydomain.com
    $TTL 14400
    @	14440	IN	SOA	ns1.nameserver.com.	user.mydomain.com.	(
    					2005041506
    					7200
    					7200
    					2419200
    					86400
    					)
    
    mydomain.com. IN NS ns1.nameserver.com.
    mydomain.com. IN NS ns2.nameserver.com.
    
    mydomain.com. IN A  xx.xx.xxx.xx   
    
    
    localhost.mydomain.com. IN A 127.0.0.1
    
    mydomain.com. IN MX 0 mydomain.com.
    mydomain.com. IN MX 50 backupmx.nameserver.com.
    
    mail IN CNAME mydomain.com.
    www IN CNAME mydomain.com.
    ftp IN CNAME mydomain.com.
    mydomain.com.db AFTER
    Code:
    ; Modified by Web Host Manager
    ; Zone File for mydomain.com
    $TTL 14400
    @	14440	IN	SOA	ns1.nameserver.com.	user.mydomain.com.	(
    					2005041506
    					7200
    					7200
    					2419200
    					86400
    					)
    
    mydomain.com. IN NS ns1.nameserver.com.
    mydomain.com. IN NS ns2.nameserver.com.
    
    mydomain.com. IN A  xx.xx.xxx.xx   
    
    
    localhost.mydomain.com. IN A 127.0.0.1
    
    mydomain.com. IN MX 0 mail.mydomain.com.
    mydomain.com. IN MX 50 backupmx.nameserver.com.
    
    mail IN A xxx.xx.xxx.xx
    www IN CNAME mydomain.com.
    ftp IN CNAME mydomain.com.
    TIA for any insight

    best regards,
    verdon

  12. #27
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    That is exactly how you should do it
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

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

    Default

    coool... thanks

  14. #29
    Member KMK Enterprises's Avatar
    Join Date
    Feb 2005
    Posts
    53

    Unhappy

    Okay, I just set up a similar situation, where the client wanted to receive email on their server and host their Web site on ours. NetSol is handling the DNS in conjunction with their registration. I followed the directions posted here by Servia,

    1. create account,
    2. remove dns zones,
    3. remove the domain from localdomains,
    4. add the domain to remotedomains.
    5. change their 'A'-entries to point to an IP on our server.
    and ALMOST everything is working just fine. The MX is still pointing at their servers and an http call to the domain with www resolves to our server as does an ftp call, but just the domain name without the www or ftp is still pointing to the wrong IP. I changed the A records for @(none).domainname.com and *.domainname.com at NetSol same as I did for www.domainname.com. I checked the httpd.conf file to be sure both aliases were listed - they are.

    When I run host for all the variables (i.e. www, ftp, mail and nothing) from SSH, it returns the right IPs. When I do a DNS lookup at dnsstuff.com it returns the right IPs.

    Now I'm stumped. Any suggestions would be greatly appreciated.

  15. #30
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Not sure I understand which A records that you have changed, the only A record that should not be pointing to your web server is the new one you create for the MX entry that points to the mail server, not one that you already use. It would help if you posted the zone file.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. Domain with external DNS: external MX and local mail problem
    By vapetrov in forum E-mail Discussions
    Replies: 2
    Last Post: 01-14-2011, 08:33 PM
  2. Best way to point a domain to external IP / server, but keep mail local?
    By Metro2 in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 09-12-2009, 01:39 AM
  3. View Mail Statistics - Shows Mail From External Domain
    By oshs in forum E-mail Discussions
    Replies: 3
    Last Post: 07-11-2009, 08:20 AM
  4. Replies: 2
    Last Post: 01-06-2008, 10:03 AM
  5. Hosting external mail server troubles
    By docjohn in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-20-2004, 10:03 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube