LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   MX record set: 'unknown host' (https://www.linuxquestions.org/questions/linux-server-73/mx-record-set-unknown-host-603372/)

leif_84 11-29-2007 07:59 PM

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!

farslayer 11-29-2007 09:39 PM

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.

leif_84 11-29-2007 09:54 PM

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

leif_84 11-29-2007 10:58 PM

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?

farslayer 11-30-2007 11:55 PM

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


All times are GMT -5. The time now is 07:05 AM.