Skip to content

vadesecure/anonemail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Tool to remove personal information from body and headers of an email message (anonymization)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages