mailaddrcrypt – a generator and validator for crypted email addresses
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.
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 better 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 [OPTIONS]
mailaddrcrypt-server is a daemon that provides a virtual_alias_map to postfix. The given email address gets decoded/decrypted/deobfuscated, and if valid, mapped to a local account and given as response to postfix.
-c, --config <FILE><FILE>.-p, --port <PORT><PORT>. Defaults to 2525.-v, --verbose####### mailaddrcrypt-server
Place a config file in /etc/mail/mailaddrcrypt-server.conf:
@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 [OPTIONS] [DATA]
-k, --key <KEY><KEY> (e.g. your email address or whatever).-d, --decrypt<DATA> instead of encrypting it.This is the Firefox-extension to generate obfuscated email addresses for the current site.
Run it by right-clicking anywhere on the open tab and select generate address.
Add your key and your desired domain to the extension's configuration dialogue.
Philippe Kueck <projects at unixadm dot org>