Skip to main content

Laelaps

Laelaps is an IMAP monitoring application that is capable of verifying signed aliases. This is particularly useful when using different catchall-based aliases. Catchall-based aliases are a convenient way to generate unique email addresses for online accounts and reduce the impact of potential data leaks. However with catchall mode turned on there is a risk of attracting lots of spam.

Laelaps solves this problem by verifying whether an alias is indeed generated by the user and not by some other random party such as a spammer. This is achieved without registering the known aliases by using cryptographic signatures within generated aliases themselves. In practice a user generates an alias using a private key and the TeumessianFox browser extension and Lealaps will separate spam from emails that are send to genuine aliases. This way the user can easily generate new aliases and still be in full control of messages send to her/his inbox.

As a bonus, albeit rather experimental, Laelaps can perform other checks on incoming email messages by analyzing the message headers, these checks include:

  • Verifying whether SPF, DMARC and DKIM passed.
  • Possibility to register an aliases for a specific domain that is allowed to send messages only to this specific alias.
  • Check wether the email was send with TLS enabled
  • Check wether the sending email address exists

Laelaps moves incoming messages either to an inbox folder for messages that passed validation or to a folder that failed validation.

Install

Install from pypi

pip install laelaps

Setting up with UV for local development

  1. Create a virtual environment:
uv venv .venv
source .venv/bin/activate
  1. Install dependencies:
uv pip sync pyproject.toml

To include test/dev dependencies:

uv pip sync --extra test pyproject.toml

Configure

Create a config.toml with the following contents in your working directory:

[imap]
host = "your.imap.server.host"
username = "yourImapUserName"
password = "ImapPassword"
mailbox = "FolderToMonitor"

[encryption]
# Generate yourself and keep safe!
key = "32CharacterStringEncryptionKey00"

[user]
own_domains = [ "list.of", "catchall.domains"]
target_folder_verified = "FolderToForVerifiedEmails"
target_folder_failed_validation = "FolderToForFailedVerificationEmails"

Configuring using environment variables

When running Laelaps in a container, it may be useful to configure it using environment variables. If the configuration file cannot be found Laelqaps will look for the following variables:

LAELAPS_IMAP__HOST=your.imap.server.host
LAELAPS_IMAP__MAILBOX=FolderToMonitor
LAELAPS_IMAP__USERNAME=yourImapUserName
LAELAPS_IMAP__PASSWORD=ImapPassword
LAELAPS_USER__OWN_DOMAINS=list.of,own.domains
LAELAPS_USER__TARGET_FOLDER_VERIFIED=FolderToForVerifiedEmails
LAELAPS_USER__TARGET_FOLDER_FAILED_VALIDATION=FolderToForFailedVerificationEmails
LAELAPS_ENCRYPTION__KEY=32CharacterStringEncryptionKey00

Run

Start laelaps with:

python -m laelaps

Stop laelaps with ctrl+C

Run with Docker

Make sure to have a configuration ready.

From the root of the repository run

docker compose up

Metadata

Release files for laelaps 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for laelaps 0.0.7
File Size Uploaded Provenance Actions
laelaps-0.0.7.tar.gz 9.8 kB Without provenance Details for laelaps-0.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for laelaps 0.0.7
File Interpreter ABI Platform Actions
laelaps-0.0.7-py3-none-any.whl Python 3 none any Details for laelaps-0.0.7-py3-none-any.whl

Total release size: 18.6 kB

Release files / laelaps-0.0.7.tar.gz

Download URL laelaps-0.0.7.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
beac72cceb670c8831810191ab35ca2b2a205f2e0adc4cc04c8aa7d0af88f724
BLAKE2b-256 checksum
How to use checksums
f9e41c2c485a836ed515eefeb695416bc243821ce5565bd4ba46fb3b7f721681
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / laelaps-0.0.7-py3-none-any.whl

Download URL laelaps-0.0.7-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6d02014b23512c3e199934ba1131cc349705635b6cc7ede1f06494c74d3417f1
BLAKE2b-256 checksum
How to use checksums
7bbdec39ad63f5761b1e8518cee989ea22f8e9ec8f400fa1ea69582e8fafebbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for laelaps 0.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page