Skip to content
/ maily Public

A privacy-first email solution that provides an email alias @maily.org to hide the original email address when using the internet

License

Notifications You must be signed in to change notification settings

lockerpm/maily

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Locker Password Manager


Maily

Maily is the core of Locker Private Email that allows users to create email aliases @maily.org to keep their original email addresses hidden when using the internet. With Maily, users can create unique email aliases for different purposes, such as online shopping, social media, or business contacts, and manage them within one secure inbox.

Development

Maily is written in Python 3.10 and utilizes a stack of AWS (Amazon Web Services) to process and store messages including S3, SES, and SQS.

Run locally

  1. Clone and change to the directory:

    git clone https://github.com/lockerpm/maily.git
    cd maily
  2. Create and activate a virtual environment:

    Unix based systems:

    virtualenv env
    source env/bin/activate

    Windows:

    python -m venv env
    source env/Scripts/activate
  3. Install Python requirements:

    pip install -r requirements.txt
  4. Set environment variables Maily requires a list of variables defined in the config file. You should set the following variables:

    Variable Description Example
    RELAY_DOMAIN The relay domain maily.org
    REPLY_EMAIL The email used for replying [email protected]
    RELAY_FROM_ADDRESS The relay email address [email protected]
    LOCKER_TOKEN_API The token to authenticate with the Locker server. You should implement your own backend server to serve requests from Maily
    AWS_REGION The default region of AWS S3 us‑east‑1
    AWS_SES_CONFIG_SET Maily uses AWS SES to send emails, so you have configure the configure set in SES
    AWS_SNS_TOPIC The SNS topic of AWS for getting new notifications
    AWS_SQS_URL The SQS URL of AWS for getting tasks from the queue

    The variables can be set by the command export NAME=VALUE

  5. Run the prgram

    python manage.py

Docker

In the production environment, Maily is packaged in Docker containers and run on Kubernetes (k8s). You can run an instance of Maily as following

docker build -t maily .
docker run maily 

API Access

We published the docs for using Locker Private Email here. You can use it to create unlimited email aliases without building Maily

Credits

Maily is inspired by Mozilla Private Relay and uses some of its code for message handling. Thanks to Mozilla for the awesome project.

License

GPLv3

Releases

No releases published

Packages

No packages published