Skip to content

Latest commit

 

History

History
50 lines (27 loc) · 1.34 KB

README.md

File metadata and controls

50 lines (27 loc) · 1.34 KB

anonemail

anonemail is a script used to anonymize an email, i.e. to remove Personally Identifiable Information from the content of the email.

It can be used for instance to anonymize a spamtrap so that it can be forwarded to third parties without the risk of beeing compromised.

Description

anonemail extracts all relevant data from To header that may identify the recipient: alias, local-part, domain...

These relevant data are then removed in email headers and body.

Furthermore:

  • Links are anonymized by removing relevant data and tracking tokens.
  • Extended headers are removed.
  • DKIM fields can be optionally removed.

Other features:

Dependencies

Requires Python 3.4 or newer. Also requires Beautiful Soup.

How to use the script

For an exhaustive list of available options, use -h option:

$ ./anonemail.py -h

To send the anonymized version of myfile.eml file from bonnie@clyde.com to tips@police.net:

$ ./anonemail.py --from bonnie@clyde.com --to tips@police.net -i myfile.eml