A custom email server built from scratch in TypeScript that I can self-host to generate temporary emails and alternate emails (possibly also for generating quick Slack alts)
A custom email server built from scratch in TypeScript that I can self-host to generate temporary emails and alternate emails (possibly also for generating quick Slack alts)
Script to use the SMTP server for hack club account login has been updated to also do signups so now I’ve uhhh created uhhhh… let’s just say “a few” new users while testing
Anyway soon I’ll automate creating a bunch of these and store their tokens in a file so i can do fun stuff with them
Log in to leave a comment
Yay a use for my project
So I spent a long time automating a browser (using “Astral” with Deno) to sign into a Hack Club account and Slack with only the email (pointing to the SMTP server I coded) and it will retrieve the OTP from the email (and delete it) to sign in. This means I can sign in to alt accounts completely programmatically, and soon make new accounts too. Plus, it logs a simple javascript script to run in the console of slack.com that will log you in.
Note about the video: I can enable headless mode if I want, this is just for showing how it works internally. Also I censored my tokens at the end so you can’t get into my Slack alt!
(nora please increase your rate limits :P /hj
it tried to sign in too fast and got rate limited lol)
Log in to leave a comment
Added DELETE method for API routes so that programs using this can delete emails such as OTPs after reading them to save space, also now the api returns an array of all emails that match instead of the most recent one if “/email” is replaced with “/emails”
Log in to leave a comment
I set up a Postgres database and now new emails are added to it with only a tiny bit of logging, plus I’ve started on an API to get the most recent email with a certain ID, subject, or “to” address.
The screenshot is of me going to the API and seeing a test email I sent at sendtestmail.com
Log in to leave a comment
idk why there’s two identical pictures i only added it once lol
i think that’s just a bug that happens sometimes for some reason
weird
Header parsing and refactoring so now it’s easier to read output programatically
Log in to leave a comment
YES IT CAN FINALLY LOG EMMMAIILLSSSSSSSZSSSS!!!! THIS TOOK SO LONG ok so yeah it logs emails to the console and it’s super messy looking but it WORKS!!! I send an email to it and now it tells me the contents so I can sign up for stuff with this if i want
oh yeah side note i fixed spelling of receive from recieve oops
Log in to leave a comment
I can send an email now and it receives and logs it! Finally! Turns out I needed to include “\r\n” instead of “\n” to end my lines for some reason, so that works better now. Will try with real emails soon.
Credit for the testing program I’m using: https://jetmore.org/john/code/swaks/
Log in to leave a comment
Wow SMTP servers are weird
OK so I made a TCP server with Deno on port 25 (SMTP) that listens for connections then sends a message back basically saying hello to the client, and it logs packets received to the console. This took way too long. Seems like the online checkers do not work correctly or maybe I’m missing a gigantic thing but I found a program to test it so yeah hope that works.
Note about screenshot: This is an external testing program I found on the internet that I’m hoping didn’t give me a virus, you can see at the top that it connects and receives “220” and more from my server. This is the part that was so harddddddd
Log in to leave a comment
For some reason my 3 screenshot attempts (which i thought i removed) appeared anyway but they’re all the same anyway so yeah