Set NS Mail Server to correct reverse DNS entry

NethServer Version: 7.9.2009
Module: E-Mail Server

Hello,

so finally my NS e-mail server is running. The only issue I have right now is how to translate the server-name in the correct reverse-DNS name.

Records are set, DKIM is set, but if I look into “domain status” on NS it says that the reverse DNS entry insn´t valid. The reverse entry and DNS entry are both “mail.mydomain.de” with correct pointing of the DNS entry to the fix Ip-adress I have.
I also can receive mails. But to get it right would mean that I somehow translate the servername “neth.ad.mydomain.de” to “mail.mydomain.de”.
Is there a way to achieve that ?

Feel a little lost right now.

Thomas

Solved,

I gave NS an alias like reverse DNS and solved.

Everything green now

1 Like

https://wiki.nethserver.org/doku.php?id=email_protection_resources#rdns

Please read this

1 Like

One additional question about the right reverse DNS-Record for a Nethsever acting as Mailserver.
Should be the reverse DNS identical to the Server name or to the MX DNS-Record?

In my case is the PTR-Record identical to the Sever name

❯ dig -x 45.157.178.109

; <<>> DiG 9.10.6 <<>> -x 45.157.178.109
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41390
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;109.178.157.45.in-addr.arpa.	IN	PTR

;; ANSWER SECTION:
109.178.157.45.in-addr.arpa. 76119 IN	PTR	ns-srv01.dargels.de.

;; Query time: 44 msec
;; SERVER: 192.168.3.12#53(192.168.3.12)
;; WHEN: Sat Dec 04 18:21:57 CET 2021
;; MSG SIZE  rcvd: 89

my MX-record:

❯ dig dargels.de mx

; <<>> DiG 9.10.6 <<>> dargels.de mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61025
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;dargels.de.			IN	MX

;; ANSWER SECTION:
dargels.de.		1800	IN	MX	10 dargels.de.

;; Query time: 46 msec
;; SERVER: 192.168.3.12#53(192.168.3.12)
;; WHEN: Sat Dec 04 18:23:12 CET 2021
;; MSG SIZE  rcvd: 55

Within my DNS-Server I have some CNAME Defintions to mail.dargels.de, imap.dargels.de, smtp.dargels.de.

Now I read a postix documentation (Google translated) where it is recommended that PTR and MX record should be identical to prevent gray lisiting.

Do I need to change my configuration?
Or is the recommendation based on the fact that the doc refers to a local server?
Sincerely, Marko