Tempalias is a project mainly written in JAVASCRIPT and SHELL, based on the MIT license.
Generate temporary mail aliases for throwaway purposes. This is the full code behind the tempalias.com web service
The code you see here is the code that runs behind the site tempalias.com
tempalias.com allows you to create email aliases for any email address of your chosing. These aliases self-destruct after any mount of time or after any amount of messages sent trough.
The project is written in JavaScript intended to be run under node.js.
To run the tempalias.com code, you need:
Everything else is included in the package.
After cloning the repository, here's the stuff you need to do:
git submodule update --init
)node tempalias.js
in the project root.garbage_collect.js
which I recommend you run every 30 minutes or so that removes expired aliases.tempalias will launch a web server (localhost:8080 by default) and an SMTP proxy (localhost:2525 by default). The website will be both the web frontend (http://locahost:8080/) and a webservice endpoint (http://localhost:8080/aliases). Have a look at public/jslib/app.js to see how the web service works, or use curl and adjust the following command to your liking:
curl --no-keepalive -H "Content-Type: application/json"
--data-binary '{"target": "[email protected]","days": 3,"max-usage": 5}'
-qsS http://localhost:8080/aliases
The frontend code is pure HTML/CSS/JavasScript using Sammy for the interesting part of the logic. You will find that in public/*. The beef of the code lies in the SMTP proxy (lib/tempalias_smtp.js
) and in the model class representing an alias (lib/tempalias.js
). Static webpages are served by the web server (lib/tempalias_http.js
) using node-paperboy which is - as are all other dependencies - located in deps/
as a git submodule.
All the main code is licensed under the MIT license (see LICENSE) (lib/uuid.js is dual-licensed under GPL and MIT)
This should be enough to get you going. Please have a look at the bugs tab on my github page to get an idea of the currently known issues.