DNS error - pmg-smtp-filter

thiagotgc

Active Member
Dec 17, 2019
149
18
38
37
For some days now I have been having problems with DNS in my PMG.

For no reason, why nothing has changed in those days.

See the syslog log

Jun 29 13:07:18 pmg pmg-smtp-filter[31382]: WARNING: dns: sendto() to [208.67.222.222 ]:53 failed: Invalid argument, failing over to [1.1.1.1]:53
Jun 29 13:07:18 pmg pmg-smtp-filter[31382]: WARNING: error creating a DNS resolver socket: Address family for hostname not supported at /usr/local/share/perl/5.28.1/Mail/SpamAssassin/DnsResolver.pm line 434, <GEN7526> line 539.
Jun 29 13:07:18 pmg pmg-smtp-filter[31382]: WARNING: dns: unable to connect to [1.1.1.1]:53, failing over to [8.8.8.8]:53
Jun 29 13:07:18 pmg pmg-smtp-filter[31382]: WARNING: error creating a DNS resolver socket: Address family for hostname not supported at /usr/local/share/perl/5.28.1/Mail/SpamAssassin/DnsResolver.pm line 434, <GEN7526> line 539.
Jun 29 13:07:18 pmg pmg-smtp-filter[31382]: WARNING: dns: unable to connect to [8.8.8.8]:53, failing over to [9.9.9.9]:53
Jun 29 13:07:18 pmg pmg-smtp-filter[31382]: WARNING: error creating a DNS resolver socket: Address family for hostname not supported at /usr/local/share/perl/5.28.1/Mail/SpamAssassin/DnsResolver.pm line 434, <GEN7526> line 539.
Jun 29 13:07:18 pmg pmg-smtp-filter[31382]: WARNING: dns: unable to connect to [9.9.9.9]:53, no more alternatives
Jun 29 13:22:22 pmg pmg-smtp-filter[31382]: WARNING: razor2: razor2 check failed: Invalid argument razor2: razor2 had unknown error during get_server_info at /usr/local/share/perl/5.28.1/Mail/SpamAssassin/Plugin/Razor2.pm line 186. at /usr/local/share/perl/5.28.1/Mail/SpamAssassin/Plugin/Razor2.pm line 329.

This appears many times in a row, and suddenly my pmg server stops, and I need to restart

Any idea?
 
how is your network/dns setup
please post your /etc/network/interfaces /etc/hosts and /etc/resolv.conf
 
Interface
auto lo
iface lo inet loopback

auto ens2
iface ens2 inet dhcp

# control-alias ens2
iface ens2 inet6 static
address xxxxxxxx::1/64
gateway xxxxxxxx::

Hosts
127.0.0.1 localhost.localdomain localhost
xxx.xxx.xxx pmg.domain.com pmg

#::1 localhost ip6-localhost ip6-loopback
#ff02::1 ip6-allnodes
#ff02::2 ip6-allrouters

Resolv
nameserver 1.1.1.1
nameserver 8.8.8.8
nameserver 9.9.9.9
search domain.com
options edns0
 
can your pmg resolv downloads.apache.org?

root@pmg:~# ping downloads.apache.org
PING downloads.apache.org(2a01:4f8:10a:201a::2 (2a01:4f8:10a:201a::2)) 56 data bytes
64 bytes from 2a01:4f8:10a:201a::2 (2a01:4f8:10a:201a::2): icmp_seq=1 ttl=56 time=14.8 ms
64 bytes from 2a01:4f8:10a:201a::2 (2a01:4f8:10a:201a::2): icmp_seq=2 ttl=56 time=15.4 ms
64 bytes from 2a01:4f8:10a:201a::2 (2a01:4f8:10a:201a::2): icmp_seq=3 ttl=56 time=15.0 ms
64 bytes from 2a01:4f8:10a:201a::2 (2a01:4f8:10a:201a::2): icmp_seq=4 ttl=56 time=14.9 ms
 
Sorry, I am saying can your pmg resolv downloads.apache.org when the error happen?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!