Newmail: Generating random email aliases on OpenSMPTD
hakon.gylterud.net
hakon.gylterud.net
I receive wildcard@wildcard.domain in a single mailbox and when I register in a service I use something like
facebook@social.domain, stripe@service.domain
This makes it trivial to see who is leaking my email addresses and also allows me to tag the emails
facebook-com-a2bdc0@domain.com
This makes it less trivial to guess the other domains. (although you could bruteforce the entire range)
I did manage to get something similar in spirit but waaay simpler using GSuite filtering+routing and regexes.
The problem I have, is to remember what I used for each service :/ . So I really liked the idea of `whichmail`.
At that point I gave up, and I use a single Gmail account for all the services that I don't use very frequently (also because it's not always easy to send mail from self-hosted mailservers, some destinations simply refuse any mail that is not from Gmail/Yahoo/Hotmail).
It also might get awkward at the cash register :)
After it's configured, my password manager stores the email too so that's not a problem
I set star@hi.example.com as a catch-all and then have a rule that, unless otherwise categorized elsewhere, anything sent to star@hi.example.com is automatically filed into a "Catch-All" folder.
With Fastmail, I can set a reply address that matches any of my aliases and * (star) works as expected, it matches anything, so I can just create a sending identity in Thunderbird as, say, mybank@hi.example.com without having to go into Fastmail's control panel and do anything else.
For instance:
$ newmail facebook.com
qesruftug@example.com
Then later:
$ whichmail facebook.com
qesruftug@example.com
The address is automatically updated every day.
So whenever I need to an email to register on some app or website, this is the one I give. It will be gone the next day.
> The scripts are written in rc (the shell of Plan9port). You can easily port them to any other shell your self. The newmail script itself is roughly ten lines.
It is the same with mk (the Plan9 redesigned make). They took a few lessons from problems they had discovered in make and improved them. And made it simpler in the process.
I'm fine with writing code to call APIs from email providers to manage email addresses though.
Doesn't strike me as much easier than running a local email daemon to receive email, TBH.
When I say "writing code", it would be more or less like the newmail script here. Much simpler than running a full fledge email infrstructure. :-)
It's really targeted for intranet use though, I wouldn't recommend exposing anything other than the SMTP port to the internet.
If you're on a small scale, those 2 services I mentioned aren't going to cost you much (free and maybe about 5 cents a month.)
I even proxy my hobby personal domain server because I don't want my personal mails get buried in people's junk folder.