Install amispammer by entering the following commands in the terminal:
sudo apt update sudo apt install amispammer
Powerful Mail Server checker on blacklists
amispammer is a command line tool to check if one or more IP addresses or every MX domain records appear blacklisted in the most important blacklists. It's very useful for SysAdmins and security Professionals.