Skip to main content

CLI tool for managing Rackspace hosted mailboxes

Project description

📨 rackmail

rackmail is a Python-based CLI tool for managing and interacting with Rackspace Hosted Mailboxes. Built with simplicity and flexibility in mind, it streamlines common admin-related tasks from your terminal—perfect for sysadmins, devs, and automation pros.

🚀 Features

  • 📤 Interact with emails
  • 📜 Get info about emails
  • ⚙️ Easy setup with just 3 ENV Variables.
  • 🔌 Integrates cleanly into scripts and cron jobs

📦 Installation

pip install rackmail

Or install from source:

git clone https://github.com/yourusername/rackmail.git
cd rackmail
pip install -e .

🛠 Usage

rackmail --help

Common Commands

rackmail enableuser -e user.name -d domain.com #Enables a users mailbox
rackmail disableuser -e user.name -d domain.com #Disables a users mailbox

⚙️ Configuration

You will need information from your Rackspace Hosted Email tenant to fully setup this tool. Since this tool uses the Rackspace API, you can find most of this information in the API Key's section of Rackspace's Admin console.

  1. User Key
  2. Customer ID
  3. X-Api-Signature Header

To get the correct X-API-Signature Header. Please use rackmailcli as the useragent header.

After you get the three items listed above, you need to setup the environment on your machine. Please use the following key value pairs in your environment. Replacing the values of each with the values you got from Rackspace's admin console.

  1. RACKSPACE_API_KEY = User Key
  2. RACKSPACE_CUSTOMER_ID = Customer ID
  3. RACKSPACE_API_HEADER = X-Api-Signature Header

🔧 Development

To Setup the code base.

git clone https://github.com/lilrebel17/rackmail.git
cd src
pip install -r requirements.txt

To install the project as a package for testing.

cd rackmail #Projects root directory
pip install . #Installs the project as a pip package.

To build a distributable

cd rackmail #Projects root directory
python -m build

🤝 Contributing

Issues and PRs welcome. Just follow the standard Python etiquette and maybe don’t name your test email “bombthis@company.com” (again).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rackmail-0.6.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rackmail-0.6.0-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file rackmail-0.6.0.tar.gz.

File metadata

  • Download URL: rackmail-0.6.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rackmail-0.6.0.tar.gz
Algorithm Hash digest
SHA256 a7147a5fcff5444eabc5bbe42ac59d580615a5fe6db2b970e17addfdadc19ac8
MD5 6c00e22cb72a92ee306344dc92fdb43f
BLAKE2b-256 dd2e8eaecaa5af13c6544e6c618dd5af2def4ccbd3a95cd457a460a06ba5ca33

See more details on using hashes here.

Provenance

The following attestation bundles were made for rackmail-0.6.0.tar.gz:

Publisher: pypi_push.yml on lilrebel17/rackmail

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rackmail-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: rackmail-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rackmail-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 620c09f5634360ad0f684104cd3ed0d051a30e6abc25bf74532cb7b855b454a2
MD5 62a2df79d6d79ca71d7b5944209281c5
BLAKE2b-256 7e6554513e5f677d1e8549ca4846356b57147cb135c16cfdb4fdc9bce40eb791

See more details on using hashes here.

Provenance

The following attestation bundles were made for rackmail-0.6.0-py3-none-any.whl:

Publisher: pypi_push.yml on lilrebel17/rackmail

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page