| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
12-11-2012, 01:53 PM
|
#1
|
|
Member
Registered: Jun 2012
Posts: 54
Rep: 
|
Add MX Records
Hi Expert,
We use our mail servers to trusted relay to Google Apps server and they require to add their MX records to our mail server CentOS 5.3 and I was wondering if someone can provide me the command lines to input or a link to that.
Any helps greatly appreciate!
Thanks,
Hiep
|
|
|
|
12-11-2012, 01:57 PM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,711
|
you just go to your DNS registrar, whoever / whatever / wherever they may be and add those records. This is NOT a change to your mail server, but to your DNS records. Without knowing how your DNS works, we can't posisbly tell you what changes to make as there are SO many ways to provide public DNS records.
|
|
|
|
12-11-2012, 01:59 PM
|
#3
|
|
Member
Registered: Jun 2012
Posts: 54
Original Poster
Rep: 
|
Thank for your reply. We control our DNS. So it must done from our server not from registrar.
|
|
|
|
12-11-2012, 02:02 PM
|
#4
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,711
|
what server?
Did you read any of googles support docs about this? they are very useful... e.g. http://support.google.com/a/bin/answ...&answer=140034
Last edited by acid_kewpie; 12-11-2012 at 02:03 PM.
|
|
|
|
12-11-2012, 02:03 PM
|
#5
|
|
Member
Registered: Jun 2012
Posts: 54
Original Poster
Rep: 
|
mail1.wemadeusa.com
mail2.wemadeusa.com
|
|
|
|
12-11-2012, 02:39 PM
|
#6
|
|
Member
Registered: Jun 2012
Posts: 54
Original Poster
Rep: 
|
Unfortunately this url http://support.google.com/a/bin/answ...&answer=140034 is just for if we don't control our DNS. But in my case, we did control our DNS.
Could you provide me command lines or a link on how to add MX records?
|
|
|
|
12-11-2012, 03:42 PM
|
#7
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,711
|
If you control your own DNS, why do you need instructions?? you'd just add an entry to the right zonefile. I'ts pretty trivial for anyone runnign their own name servers. And given that you've entered "mail1.domain.com" I presume that is a mail server, not a dns server? have a google for "mx record bind" and you'll get loads of results.
Last edited by acid_kewpie; 12-11-2012 at 03:46 PM.
|
|
|
|
12-11-2012, 03:44 PM
|
#8
|
|
Member
Registered: Jun 2012
Posts: 54
Original Poster
Rep: 
|
what do you meant by "what software are they running"? are you asking what OS on my mails server? if so it is CentOS 5.3. This mail server is handle DNS, SMTP and Time
|
|
|
|
12-11-2012, 03:49 PM
|
#9
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,711
|
How are you running a DNS server without apparently knowing anything about it at all? I'm confused.
|
|
|
|
12-11-2012, 03:51 PM
|
#10
|
|
Member
Registered: Jun 2012
Posts: 54
Original Poster
Rep: 
|
OK. Can you tell me how can YOU add a MX records on the linux server?
|
|
|
|
12-11-2012, 03:54 PM
|
#11
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,711
|
first of all I pick some DNS software. What did you pick? bind? maradns? djbdns? powerdns?
|
|
|
|
12-11-2012, 03:54 PM
|
#12
|
|
Member
Registered: Jun 2012
Posts: 54
Original Poster
Rep: 
|
Sorry BIND DNS
|
|
|
|
12-11-2012, 03:58 PM
|
#13
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,711
|
right so I open the appropriate zone file, probably under /var/named/ and add an MX entry as per the google example, or an example like this... http://www.zytrax.com/books/dns/ch8/mx.html many many others out there.
|
|
|
|
12-11-2012, 04:03 PM
|
#14
|
|
Member
Registered: Jun 2012
Posts: 54
Original Poster
Rep: 
|
Thank you for the link. But it doesn't show me step by step or what command line I should use to add the MX records
When I run this commands vi /var/named/mydomainname.com.db and I got this no where to add MX records.
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/var/named/wemadeusa.com.db" [New File] 0,0-1 All
Any ideas?
|
|
|
|
12-12-2012, 03:18 AM
|
#15
|
|
Member
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 531
Rep:
|
Yeah the file doesn't exist or it's empty:
Code:
"/var/named/wemadeusa.com.db" [New File] 0,0-1 All
As you can see there "New File" means new file, which pretty much means that maybe you are using the wrong configuration file or you don't have it setup.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:13 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|