Homingbot is a Fake SMTP Server & Low-Maintenance Email Generator. Its content are set to automatically expire after a set duration. It is divided into 2 parts:
- Controller or 'API' handles all rest API calls.
- Nest or 'SMTP Server' receives incoming mails.
- Python3.6
- uvloop (Doesn't support windows, but works fine on Bash On Ubuntu On Windows)
- Cassandra 3+
-
Install requirements
pip3.6 install -r requirements.txt
-
Update
config.py
Cassandra
Update cassandra_hosts. If cassandra has ssl enabled, you'll have to provide an ssl cert and key.
Nest
If you enable TLS, provide an ssl key and cert. -
Launch
python3.6 __main__.py
There are 3 API endpoints:
Endpoint | Method | Variables | Details |
---|---|---|---|
/generate |
POST | count* (INT) |
Generates and returns count email accounts |
/accounts |
GET | NONE | Returns all accounts that are yet to expire |
/emails |
POST | account* (TEXT), index (INT) |
Returns the email-message(s) for the specified account |
* - required