Skip to content

Easily find spam and phishing emails received at disposable email addresses.

License

Notifications You must be signed in to change notification settings

wheelercj/email-linter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

email-linter

Go Reference

Easily find spam and phishing emails received at disposable email addresses. This command line app currently works with Fastmail, Topicbox, and any other email services that have a JMAP API. See more examples of these services here.

demo.png

email-linter lists each of your disposable addresses and all the addresses they have received from so you can quickly spot suspicious senders.

Download

Either:

  • run go install github.com/wheelercj/email-linter@latest and then email-linter --help
  • or download a zipped executable file, unzip it, and run the app with ./email-linter --help

Privacy

email-linter does not store any of your data anywhere and only communicates with your email service. There is a chance future versions of email-linter will store email addresses locally to work more efficiently and offer more features.

What are disposable email addresses?

They are email addresses created to be used for only one account each. Whenever one of these addresses starts receiving spam or phishing emails, you know exactly which account was compromised and can disconnect the address from your inbox. This way, you immediately stop receiving spam and never have to give your main email address to anyone you don't trust. Some examples of these email protection services are DuckDuckGo's Email Protection, Fastmail's Masked Email, Proton's hide-my-email aliases, Firefox Relay, and iCloud+'s Hide My Email. Since the emails received by these addresses should have predictable "from" fields, suspicious senders can be easily found with email-linter. If needed, you can customize which email protection service addresses email-linter searches for. Use the --help option for more info.

Why

I got phished. Fortunately, it was a fake phishing email for training against phishing, but I learned to not look at emails while half-asleep and, more importantly, the sender's address was different from normal for the disposable address I used. Email services don't seem to consider that suspicious (at least not yet), and checking the sender's address manually for every email is tedious if you don't remember the correct sender address. email-linter automates checking sender addresses for you. I hope someday email services will make email-linter obsolete.

How does it work?

  1. First, email-linter finds all emails in your inbox that went through an email protection service.
  2. Next, it finds all emails outside your spam folder those disposable addresses have ever received.
  3. Then it lists each disposable address and the addresses they have received from. This makes it simple to spot suspicious senders so you can easily search your inbox for malicious emails and decide what to do with them.

API token

email-linter needs a read-only JMAP API token to securely connect to your account. If you're using Fastmail, you can create an API token here.

Choose one. The token can be entered in any one of three ways:

  • When you run the app, you can enter the token interactively if you haven't chosen any of the other options.
  • Create a file for the token with the location and name ~/.config/email-linter/jmap_token (~ is the user folder, such as C:/Users/chris).
  • Create an environment variable named JMAP_TOKEN. This option is generally not recommended because any process can read the environment variable.

If both a token file and environment variable are provided, the file is used.

Caveat

Emails with multiple recipients usually don't say which address is yours. Sometimes there are patterns in the recipient addresses that hint at the answer, and email-linter looks for some of those, but sometimes there are not. This means there's a chance email-linter could say someone else's address is yours. If this happens to you but you see a pattern in the recipient addresses email-linter could use to improve its output, please let me know by creating a new issue!

I've considered letting users enter their email addresses, but I doubt anyone who really puts email protection services to good use would want to be constantly updating the list.

Example:

When an email is forwarded to a duck address, all the recipient addresses are changed to include the duck address. For example, let's say these are the email's original recipient addresses, and that one of them is yours:

If your duck address the email is forwarded to is [email protected], then DuckDuckGo's email protection service will change them to:

Since email-linter can't tell which is yours, its output of recipient addresses includes only the last part, your duck address [email protected].

Dev resources

Here are some resources that were helpful while creating this app.