Reverse DNS does not match SMTP Banner

sheshman

Member
Jan 16, 2023
55
4
13
Hi,

I'm using proxmox mail gateway 7.3-3, when i check my domain through https://dnschecker.org/domain-health-checker.php it returns "Reverse DNS does not match SMTP Banner", i've found this post to fix it https://forum.proxmox.com/threads/smtp-banner-check-reverse-dns-does-not-match-smtp-banner.101161/ and it advices to do;

Code:
Hello,

if you want to be fully green with mxtoolbox, then do this:
cp /var/lib/pmg/templates/main.cf.in /etc/pmg/templates/

Edit the file /etc/pmg/templates/main.cf.in
and replace this:

myhostname = [% dns.hostname %].[% dns.domain %]

to this to the fqdn you need:
myhostname=mail.domain.com

Then reload the pm filter service:
systemctl restart pmg-smtp-filter.service

The problem is "/var/lib/pmg/templates/main.cf.in" or "/var/lib/pmg/templates/main.cf" is not exist on my server, post belongs to 2021 so i assume that things have changed since then, any advice?
 
The problem is "/var/lib/pmg/templates/main.cf.in" or "/var/lib/pmg/templates/main.cf" is not exist on my server, post belongs to 2021 so i assume that things have changed since then, any advice?
The location of the templates has not changed - you can check yourself with `dpkg -L pmg-api`

it returns "Reverse DNS does not match SMTP Banner",
the setting from the template sets the myhostname variable to 'hostname' (which is read from /etc/hostname usually) and the first entry of your search domains in /etc/resolv.conf

see the reference documentation:
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#_configuration_files_overview

I hope this helps!