LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-29-2007, 07:59 PM   #1
leif_84
LQ Newbie
 
Registered: Jun 2007
Posts: 25

Rep: Reputation: 15
MX record set: 'unknown host'


Hi!
I have trouble with MX record configuration. I bought my domain from GoDaddy. I set CNAMES like this:
Quote:
Host Points To
mail mail.mydomain.com

pop mail.mydomain.com

smtp mail.mydomain.com
And my MX record:
Quote:
Priority Host Goes To
0 @ mail.mydomain.com
When I try to ping it, it doesn't work:
Quote:
ping mail.mydomain.com
ping: unknown host mail.mydomain.com
But when I ping my domain using any other subdomain (except pop, mail and smtp), it works:
Quote:
ping sub.mydomain.com
PING sub.mydomain.com (xx.xx.xx.xx) 56(84) bytes of data.
64 bytes from xx-xx-xx-xx-WashingtonDC.hfc.comcastbusiness.net (xx.xx.xx.xx): icmp_seq=1 ttl=64 time=0.678 ms
I thought I need to set MX record as my domain, to get mailing to work, but now I can't even ping it, the previous MX record was something.secureserver.net, when I tried to ping mail.mydomain.com I always got response of that server.

Any guidance is much appreciated! Thanks!

Last edited by leif_84; 11-29-2007 at 08:00 PM.
 
Old 11-29-2007, 09:39 PM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Do you have an A record configured for mail.mydomain.net ?

Code:
default@debianetch:~$ dig MX gmail.com

; <<>> DiG 9.3.4 <<>> MX gmail.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9260
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 4, ADDITIONAL: 10

;; QUESTION SECTION:
;gmail.com.                     IN      MX

;; ANSWER SECTION:
gmail.com.              1560    IN      MX      50 gsmtp163.google.com.
gmail.com.              1560    IN      MX      50 gsmtp183.google.com.
gmail.com.              1560    IN      MX      5 gmail-smtp-in.l.google.com.
gmail.com.              1560    IN      MX      10 alt2.gmail-smtp-in.l.google.com.


;; ADDITIONAL SECTION:
alt2.gmail-smtp-in.l.google.com. 117 IN A       72.14.221.27
alt2.gmail-smtp-in.l.google.com. 117 IN A       72.14.221.114
gsmtp163.google.com.    4246    IN      A       64.233.163.27
gsmtp183.google.com.    4114    IN      A       64.233.183.27
gmail-smtp-in.l.google.com. 173 IN      A       64.233.185.27
gmail-smtp-in.l.google.com. 173 IN      A       64.233.185.114
Each MX entry has an associated A record..

Since you are hiding your domain name it's hard to look and see what your problem is....

Also not sure why you set pop, mail, and smtp, cnames for your server, that is un-necessary if you are hosting your own mail server. you are trying to make your setup work with how godaddys servers are configured..

Delete all the cname records for mail, create one valid A record for the Server and then point your MX record to the hostname for your mail server. DONE

I just point everything to mail.mydomain.net

Code:
A     mail     123.45.67.89
MX    10       mail.mydomain.net
that's really all you need.

Last edited by farslayer; 11-29-2007 at 09:40 PM.
 
Old 11-29-2007, 09:54 PM   #3
leif_84
LQ Newbie
 
Registered: Jun 2007
Posts: 25

Original Poster
Rep: Reputation: 15
Thanks!
The reason why I hide my domain name is because I have bunch of security flaws, that I haven't took care of..

this is what I got:
Quote:
; <<>> DiG 9.3.2 <<>> MX mail.mydomain.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9005
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;mail.mydomain.com. IN MX

;; ANSWER SECTION:
mail.mydomain.com. 3600 IN CNAME mail.mydomain.com.

;; Query time: 85 msec
;; SERVER: 68.87.73.242#53(68.87.73.242)
;; WHEN: Thu Nov 29 22:45:40 2007
;; MSG SIZE rcvd: 54
This is what I got under CNAME in GoDaddy:
Quote:
mail mail.mydomain.com 1 Hour

pop mail.mydomain.com 1 Hour

smtp mail.mydomain.com 1 Hour

www @ 1 Hour

mobilemail mobilemail-v01.prod.mesa1.secureserver.net 1 Hour

pda mobilemail-v01.prod.mesa1.secureserver.net 1 Hour

email email.secureserver.net 1 Hour

ftp @ 1 Hour

webmail webmail.secureserver.net 1 Hour

e email.secureserver.net
Should I remove everything that is associated with mail (email, pop, smtp, etc..)? I really haven't done this before, I got confused about the CNAME, so I thought I need to change it too, since it had secureserver.net. Under MX I have only one record:
Quote:
0 @ mail.mydomain.com
I will add the A entry now and by tomorrow hopefully it will work

Last edited by leif_84; 11-29-2007 at 09:57 PM.
 
Old 11-29-2007, 10:58 PM   #4
leif_84
LQ Newbie
 
Registered: Jun 2007
Posts: 25

Original Poster
Rep: Reputation: 15
OK, it updated, here's what I got now:
Quote:
; <<>> DiG 9.3.2 <<>> MX mydomain.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31209
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; QUESTION SECTION:
;mydomain.com. IN MX

;; ANSWER SECTION:
mydomain.com. 3600 IN MX 0 mail.mydomain.com.

;; ADDITIONAL SECTION:
mail.mydomain.com. 3600 IN A 11.22.33.44

;; Query time: 98 msec
;; SERVER: 68.87.73.242#53(68.87.73.242)
;; WHEN: Thu Nov 29 23:52:52 2007
;; MSG SIZE rcvd: 72
I can ping mail.mydomain.com, but when I tried to send mail from gmail account and mail from my server's account to gmail, it didn't work, and I haven't got any failure notice emails. I checked my mail log and all I got is my smtp log when I sent email to the gmail account. Any suggestions?
 
Old 11-30-2007, 11:55 PM   #5
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
IF you are hosting that on your Home Internet account, your ISP may have hte SMTP port blocked.. You could try using an internet based port scanner to see if port 25 is open to your mail server..

something like shieldsup on http://www.grc.com/default.htm
 
  


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
Unknown Host BH_Exeter Linux - General 8 04-05-2006 01:44 PM
i m getting the error unknown host while im pinging with the host name gunjan thakkar Linux - General 2 12-14-2004 01:19 PM
Unknown host frank-01 Linux - General 3 01-21-2004 09:34 PM
Unknown Host <Linuxmachinename> / Unable to ping by host name nishi_k_79 Linux - Networking 4 11-01-2003 01:24 PM
Unknown host nishi_k_79 Linux - Networking 2 04-19-2003 07:45 AM

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

All times are GMT -5. The time now is 02:36 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