LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 01: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, 01:57 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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, 01: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, 02:02 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 12-11-2012, 02: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, 02: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, 03:42 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 12-11-2012, 03: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, 03:49 PM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
How are you running a DNS server without apparently knowing anything about it at all? I'm confused.
 
Old 12-11-2012, 03: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, 03:54 PM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

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

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

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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, 04: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, 03:18 AM   #15
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Rep: Reputation: 73
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



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 05:59 PM
How to add ptr records in SunOS 5.10 DNS Server riyaskt Linux - Newbie 5 10-10-2012 07:11 AM
Add/edit/delete MS DNS records from Linux psychobyte Linux - Networking 3 05-24-2011 02:23 PM
[SOLVED] MX Records / A Records / CNAME Records - Advice Please fusion1275 Linux - Newbie 15 01-18-2011 04:06 AM
command line tool to add user records to LDAP fantasygoat Linux - Server 1 06-12-2010 04:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:20 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
Open Source Consulting | Domain Registration