I need a python script that can check via the email headers if an email is spam or phishing.
(by making an API call to spamhaus or ipabuse or whatever)
The headers are in a txt file.
So the script needs to do the following:
1. read email headers from txt file
2. check if the sender email is a real email
3. check if sender SMTP is known for spam or phishing
4. check if the sender IP is malicious
5. print verdict (spam, phishing, or clean)