LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 12-11-2012, 02:53 PM   #1
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Rep: Reputation: Disabled
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
 
Old 12-11-2012, 02:57 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
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.
 
Old 12-11-2012, 02:59 PM   #3
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
Thank for your reply. We control our DNS. So it must done from our server not from registrar.
 
Old 12-11-2012, 03:02 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
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 03:03 PM.
 
Old 12-11-2012, 03:03 PM   #5
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
mail1.wemadeusa.com
mail2.wemadeusa.com
 
Old 12-11-2012, 03:39 PM   #6
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
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?
 
Old 12-11-2012, 04:42 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
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 04:46 PM.
 
Old 12-11-2012, 04:44 PM   #8
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
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
 
Old 12-11-2012, 04:49 PM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
How are you running a DNS server without apparently knowing anything about it at all? I'm confused.
 
Old 12-11-2012, 04:51 PM   #10
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
OK. Can you tell me how can YOU add a MX records on the linux server?
 
Old 12-11-2012, 04:54 PM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
first of all I pick some DNS software. What did you pick? bind? maradns? djbdns? powerdns?
 
Old 12-11-2012, 04:54 PM   #12
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
Sorry BIND DNS
 
Old 12-11-2012, 04:58 PM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
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.
 
Old 12-11-2012, 05:03 PM   #14
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
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?
 
Old 12-12-2012, 04:18 AM   #15
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 587

Rep: Reputation: 58
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add Txt records hiep.pham Linux - Server 12 11-30-2012 06:59 PM
How to add ptr records in SunOS 5.10 DNS Server riyaskt Linux - Newbie 5 10-10-2012 08:11 AM
Add/edit/delete MS DNS records from Linux psychobyte Linux - Networking 3 05-24-2011 03:23 PM
[SOLVED] MX Records / A Records / CNAME Records - Advice Please fusion1275 Linux - Newbie 15 01-18-2011 05:06 AM
command line tool to add user records to LDAP fantasygoat Linux - Server 1 06-12-2010 05:13 AM


All times are GMT -5. The time now is 07:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration