Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: RDouro on June 04, 2019, 10:08:25 AM

Title: MX Record
Post by: RDouro on June 04, 2019, 10:08:25 AM
Hello all,

 I try use a site to see failures and e see have issues on MX records .
i go dns funsions - list  dns zones i edit my domain  an i cread Mx record  but stil fail
Same one can help me ?

Regads ,
Title: Re: MX Record
Post by: Igor S. on June 04, 2019, 12:41:41 PM
Hi, try to test your mail server with https://mail-tester.com/
Also, you can check the MX/SPF with dig or nslookup commands ;)
Title: Re: MX Record
Post by: RDouro on June 04, 2019, 05:59:21 PM
hello

when i use command in terminal
dig @myip  domain MX
dig mydomain mx

; <<>> DiG 9.9.4-RedHat-9.9.4-73.el7_6 <<>> mydomain mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36966
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 2048
;; QUESTION SECTION:
;mydomain.      IN   MX

;; AUTHORITY SECTION:
mydomain   2349   IN   SOA   dns1.host-redirect.com. hostmaster.mydomain. 2019060411 3600 600 604800 3600

;; Query time: 10 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Ter Jun 04 18:56:23 WEST 2019
;; MSG SIZE  rcvd: 111


But  not found  you have same sugestion ?

Tank you
Title: Re: MX Record
Post by: maxmind on June 08, 2019, 02:34:12 PM
Hi, Some basic questions..

1) Are the domain NS pointed to your CWP server?
2) Did you add the A records pointing to the IPS for each NameServer?

If you provide me with your domain name I can run some basic tests to show you were the issue resides.


Thanks!
Title: Re: MX Record
Post by: RDouro on June 15, 2019, 11:25:31 AM
hello

I can give you the name of my domain but bifore  that i make onother test
 nslookup -type=txt domain.com

i make a command and aopears these :
Non-authoritative answer:
*** Can't find domain : No answer

Authoritative answers can be found from:
domain.com
        origin = dns1.host-redirect.com
        mail addr = hostmaster.domain.com
        serial = 2019061501
        refresh = 3600
        retry = 600
        expire = 604800
        minimum = 3600


:(

tank you

Title: Re: MX Record
Post by: evansa on June 15, 2019, 08:37:07 PM
If you are not using CWP as DNS server, then please create an MX record in your domain DNS to point to the hostname of CWP.

Also note, Hostname should be an A record that point to the IP of your CWP server like server.example.com

IF you are using CWP as dns server, then this should be automatic created
Title: Re: MX Record
Post by: evansa on June 15, 2019, 08:38:13 PM
Also go to leafdns.com and enter your domain, you will get all the resource records for the domain
Title: Re: MX Record
Post by: RDouro on June 19, 2019, 12:27:35 PM
hello,

ok  when i make a test in leafdns appears my domain  100%  0 wonings and 0 failures.

So another question when i use leafdns in soa all time area appears hostmaster@domain.com it's correct ?

when i use command dig appears these :

dig domain.com mx

; <<>> DiG 9.9.4-RedHat-9.9.4-74.el7_6.1 <<>> domain.com mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32355
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 2048
;; QUESTION SECTION:
;domain.com.      IN   MX

;; ANSWER SECTION:
domain.com.   60   IN   MX   10 domain.com.

;; Query time: 24 msec
;; SERVER: 62.169.70.160#53(62.169.70.160)
;; WHEN: Qua Jun 19 13:24:59 WEST 2019
;; MSG SIZE  rcvd: 61


this is correct ?


Title: Re: MX Record
Post by: evansa on June 19, 2019, 08:32:35 PM
this is correct. You had an answer in the ANSWER SECTION:

domain.com.   60   IN   MX   10 domain.com.


Title: Re: MX Record
Post by: Igor S. on June 23, 2019, 07:13:27 AM
@RDouro please note, MX record not enough if you really want to use mail server.
You must add SPF/DKIM/DMARC and PTR (rDNS) as weel as.