mailaddrcrypt

Spam-prevention: a generator and validator for crypted email addresses

firefox screenshot  

Download

install xpi

Feedback

Documentation

NAME

mailaddrcrypt - a generator and validator for crypted email addresses

DISCLAIMER

This is a proof of concept and is not officially considered to be running stable. Please keep in mind that I wrote this set of utilities primarily for my own setups. If you have problems running the software please write a bug report.

VERSION

0.3

DESCRIPTION

With mailaddrcrypt you can generate email addresses that contain a crypted message, like, where you're going to use it, a suspicious company's name etc.

The encryption (or call it obfuscation) is very very simple: the message gets XORed with your key and the result gets encoded in base32.

When queried, the server application splits the email address in it's localpart and it's domain, base32 decodes the localpart, XORes it with all keys it finds for the domain and tries to find a valid latin1 string, ending with a null byte. Then it returns the corresponding account.

mailaddrcrypt-server

SYNOPSIS
mailaddrcrypt-server [OPTIONS]
OPTIONS
  • -c,--config FILE

    Mandatory. Read config from FILE.

  • -u,--user USER

    Drop privileges to USER.

  • -p,--port PORT

    Bind to port PORT.

  • --pidfile FILE

    Save pid to FILE.

  • -v,--verbose

    Be verbose and don't fork to background.

DEPENDENCIES
  • Postfix
  • MIME::Base32
  • IO::Select
  • IO::Socket
  • Pod::Usage
  • Getopt::Long
CONFIGURATION
mailaddrcrypt-server

Place a config file in /etc/mail/mailaddrcrypt-server.conf

global {
    user = nobody
    pidfile = /var/run/mailaddrcrypt-server.pid        
    port = 2525
}

@yourdomain.tld {
    yourniftykey = youraccount
    anotherkey = anotheraccount
}

@anotherdomain.tld {
    yetakey = yetanaccount
}
Postfix

Add this to your main.cf

virtual_alias_maps = tcp:127.0.0.1:2525

mailaddrcrypt-cli

SYNOPSIS

mailaddrcrypt-cli [OPTIONS] [DATA]

OPTIONS
  • -k,--key KEY

    Mandatory. Your KEY (e.g. your email address or whatever).

  • -d,--decrypt

    Decrypt DATA instead of encrypting it.

DEPENDENCIES
  • MIME::Base32
  • Pod::Usage
  • Getopt::Long

mailaddrcrypt.xpi

Run it by clicking in the toolbar button and select C to copy the address.

DEPENDENCIES
  • Firefox
CONFIGURATION

Add your key and your desired domain to the extension's configuration dialogue.