Self hosting mail server: external incoming/outgoing email problems

1 points by tonguim 8 hours ago

Good day!

After setting up our own mail server, external emails doesn't come and emails and nor going out.

Mail server was previously hosted by OVH. Any help is much appreciated. Thanks.

; ; BIND data file for local loopback interface ; $TTL 604800 @ IN SOA mango.tkangz.sa. admin.tkangz.sa. ( 2025101405 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL

@ IN NS mango.tkangz.sa. @ IN NS ns.tkangz.sa.

; ----- Serveurs de noms ----- mango IN A 10X.XXX.243.111 ns IN A 10X.XXX.243.112

; ----- Web OVH ------ @ IN A 87.98.154.146 www IN CNAME @

; ----- Email sur Google ----- ;@ IN MX 1 smtp.google.com.

@ IN MX 1 ASPMX.L.GOOGLE.COM. @ IN MX 5 ALT1.ASPMX.L.GOOGLE.COM. @ IN MX 5 ALT2.ASPMX.L.GOOGLE.COM. @ IN MX 10 ALT3.ASPMX.L.GOOGLE.COM. @ IN MX 10 ALT4.ASPMX.L.GOOGLE.COM.

_sophie.tkangz.sa. IN TXT "v=SOPHIE1; p=none; rua=mailto:admin@tkangz.sa" @ IN TXT "v=spf1 include:_spf.google.com ip4:10X.XXX.243.111 ~all"

google._domainkey IN TXT ()

; ----- Service internes ----- pmb IN A 10X.XXX.243.38 gpa IN A 10X.XXX.243.36

; ------ Sous domaine demandés par les partenaires ----- dspace IN A 52.92.8.10

(END)

Bender 8 hours ago

HN is not really a good place to troubleshoot such things but I will take a look.

I do not see an MX record in public DNS for tkangz.sa assuming that is the domain in question. I do not even see NS records for that domain in the root servers. Your DNS admin needs to verify they updated the name server configuration for the root DNS servers. Usually this is in a web interface option called something like "manage your DNS servers" in the new registrar. This can take some time to propagate depending on the back-end of the old and new registrars. If unsure call the new registrar and describe the problem.

    dig +short NS sa | head -n1
    s2.dns.sa.
    
    dig @s2.dns.sa. NS tkangz.sa | grep status
    ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN
Status should be "NOERROR" and list the names and IP addresses of your new name servers. After that is resolved then ensure the PTR record at the new location as been updated to match the forward mail server name.
tonguim 7 hours ago

Thank you Bender for answering and for the hints. What are those two dig commands are for?