LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Add MX Records (https://www.linuxquestions.org/questions/linux-server-73/add-mx-records-4175441011/)

hiep.pham 12-11-2012 01:53 PM

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

acid_kewpie 12-11-2012 01:57 PM

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.

hiep.pham 12-11-2012 01:59 PM

Thank for your reply. We control our DNS. So it must done from our server not from registrar.

acid_kewpie 12-11-2012 02:02 PM

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

hiep.pham 12-11-2012 02:03 PM

mail1.wemadeusa.com
mail2.wemadeusa.com

hiep.pham 12-11-2012 02:39 PM

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?

acid_kewpie 12-11-2012 03:42 PM

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.

hiep.pham 12-11-2012 03:44 PM

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

acid_kewpie 12-11-2012 03:49 PM

How are you running a DNS server without apparently knowing anything about it at all? I'm confused.

hiep.pham 12-11-2012 03:51 PM

OK. Can you tell me how can YOU add a MX records on the linux server?

acid_kewpie 12-11-2012 03:54 PM

first of all I pick some DNS software. What did you pick? bind? maradns? djbdns? powerdns?

hiep.pham 12-11-2012 03:54 PM

Sorry BIND DNS

acid_kewpie 12-11-2012 03:58 PM

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.

hiep.pham 12-11-2012 04:03 PM

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?

robertjinx 12-12-2012 03:18 AM

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.


All times are GMT -5. The time now is 03:26 AM.