in reply to Re: DNS problems with Mail::SPF
in thread DNS problems with Mail::SPF

It is a very strange error. My test mails are OK. I have also tried the script with static IPs and domains. The DNS settings seams to be Okay:
cat /etc/resolv.conf
nameserver 80.237.128.144
nameserver 80.237.128.145

It seems to depend where the line my $spf_server = Mail::SPF::Server->new(); is in the script. It only works when the line is direct after my using directive.
pass (Mechanism 'ip4:185.82.77.171' matched)

Replies are listed 'Best First'.
Re^3: DNS problems with Mail::SPF
by Corion (Patriarch) on Aug 01, 2018 at 08:17 UTC

    The filename should be /etc/resolv.conf. If you copy and pasted the command line, maybe you are looking at the wrong file?

      Sorry. Just a typo. The name of the file is correct.
      Sorry, just a typo. The path is correct.