Frappe Mail Agent
Project description
Mail Agent
Installation
Get started with Mail Agent by following these steps:
git clone https://github.com/frappe/mail_agent
cd mail_agent
virtualenv venv
source venv/bin/activate
pip install .
Setup
Development
Follow these steps to set up Mail Agent for development:
-
Prerequisites
Before setting up Mail Agent, ensure you have the following:
- Yarn: A package manager that simplifies working with JavaScript projects.
npm install --global yarn
- Yarn: A package manager that simplifies working with JavaScript projects.
-
Set Up Mail Agent
This command will install Node packages, set up Haraka, and generate a Procfile to manage processes.
mail-agent setup
-
Start Mail Agent
mail-agent start
Production (Ubuntu)
For production deployment on Ubuntu, follow these steps:
-
Install Required Packages
Ensure you have the necessary tools and libraries installed:
sudo apt install curl build-essential -y
-
Install Node.js, npm, and Yarn
Set up Node.js and Yarn, which are required for running
Haraka
:curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - sudo apt install -y nodejs sudo npm install -g yarn
-
Obtain a TLS Certificate (Optional)
If you want to obtain TLS certificate for your Mail Agent from Let's Encrypt, follow these steps:
- Install Certbot:
sudo apt install certbot -y
- Generate a TLS certificate for your host:
sudo certbot certonly --standalone -d $(hostname -f)
- Install Certbot:
-
Set Up Mail Agent
This command will install Node packages, set up Haraka, generate a Procfile and create systemd services:
mail-agent setup --prod # Use --inbound to setup agent for inbound
-
Verify Services
Ensure that all services are running correctly:
sudo systemctl status haraka # Inbound sudo systemctl status spamassassin # Outbound sudo systemctl status mail-agent
License
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
Built Distribution
File details
Details for the file mail_agent-0.0.3.tar.gz
.
File metadata
- Download URL: mail_agent-0.0.3.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 584f82d43ccd2efd27f79da5f9df7a0a9d73fd660cfadba069fec40cc96190eb |
|
MD5 | 4c9884dc2273294d16ab1f9e17824007 |
|
BLAKE2b-256 | 68d51b18e0fce48ce4fac2ddac5e5979736bad40e58b8bd2d2f9d093d1fc2174 |
File details
Details for the file mail_agent-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: mail_agent-0.0.3-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cce6e75192b28f2b9d1ee91f6144f977eecb846d1d209e134ede7f88b55f8477 |
|
MD5 | 3bec1b124f08c96241ba88c8af5271ce |
|
BLAKE2b-256 | 54f83a07b413e107a64c2d6788ecf345ab0f85e09dbab0a1fad3aaff0140fa40 |