spfquery.libspf2 command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
spfquery.libspf2: command not found
or when using sudo you get the following error message
sudo: spfquery.libspf2: command not found
Solutions to spfquery.libspf2: command not found
How To Fix spfquery.libspf2: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu spfquery.libspf2 is provided by spfquery package.
spfquery is:
The Sender Policy Framework (SPF) is one part of the SPF/SRS protocol pair. SPF allows email systems such as Sendmail, Postfix, Exim, Zmailer and MS Exchange to check SPF records and make sure that the email is authorized by the domain name that it is coming from. This prevents email forgery, commonly used by spammers, scammers and email viruses/worms.
This package contains simple utilities that use libspf2 to test and query SPF records.
To fix this problem, we can install more using the command below.
sudo apt-get -y install spfquery
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install spfquery.
sudo apt -y install spfquery
Or if you have aptitude installed you can use the following command.
sudo aptitude install spfquery
Summary
In this tutorial we learn how to fix spfquery.libspf2 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.