\!DOCTYPE html>
Mail-Rulez can be installed using Docker (recommended) or manually. This guide covers both methods and helps you get up and running quickly.
Docker provides the easiest and most reliable way to run Mail-Rulez.
# Pull and run with Docker
docker run -d \
--name mail-rulez \
-p 5001:5001 \
-v mail_rulez_data:/app/data \
-v mail_rulez_logs:/app/logs \
ghcr.io/real-pm/mail-rulez:latest
curl -O https://raw.githubusercontent.com/Real-PM/mail-rulez-public/main/docker/docker-compose.yml
docker-compose up -d
docker ps
# Should show mail-rulez container as "healthy"
Screenshot: Docker container running successfully
Create a .env
file to customize your deployment:
# Port configuration
PORT=5001
# Logging
LOG_LEVEL=INFO
# Security (auto-generated if not provided)
MASTER_KEY=your-secure-master-key
FLASK_SECRET_KEY=your-secure-flask-key
For development or when Docker isn't available.
git clone https://github.com/Real-PM/mail-rulez-public.git
cd mail-rulez-public
# Create virtual environment
python -m venv venv
# Activate it
# On Linux/macOS:
source venv/bin/activate
# On Windows:
venv\Scripts\activate
pip install -r requirements.txt
python web/app.py
Screenshot: Manual installation terminal output
Once Mail-Rulez is running:
http://localhost:5001
Screenshot: Initial login screen
admin
changeme
⚠️ Important: Change the default password immediately after first login!
# For Docker
docker exec mail-rulez curl -s localhost:5001/health
# For manual installation
curl -s localhost:5001/health
Expected response:
{
"status": "healthy",
"version": "1.0.2"
}
# View recent logs
docker logs mail-rulez --tail 50
# Follow logs in real-time
docker logs -f mail-rulez
If port 5001 is already in use:
# Use a different port
docker run -d \
--name mail-rulez \
-p 5002:5001 \
-e PORT=5002 \
ghcr.io/real-pm/mail-rulez:latest
If you encounter permission errors with volumes:
# Create volumes with proper permissions
docker volume create mail_rulez_data
docker volume create mail_rulez_logs
# Then run with named volumes
docker run -d \
--name mail-rulez \
-p 5001:5001 \
-v mail_rulez_data:/app/data \
-v mail_rulez_logs:/app/logs \
ghcr.io/real-pm/mail-rulez:latest
docker ps
docker logs mail-rulez
http://127.0.0.1:5001
instead of localhostFor more troubleshooting help, see our Troubleshooting Guide.