Skip to main content

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
      
  • 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)
      
  • 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

GNU Affero General Public License v3.0

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

mail_agent-0.0.4.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

mail_agent-0.0.4-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file mail_agent-0.0.4.tar.gz.

File metadata

  • Download URL: mail_agent-0.0.4.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

Hashes for mail_agent-0.0.4.tar.gz
Algorithm Hash digest
SHA256 8ba68f1e6b3e7d224fec73b789181120f48ac6aa5c79b895a12e91dea0a68553
MD5 f777bb2cd2bd6a93a5f2b0ee0b90dcac
BLAKE2b-256 73f1d3b8b0df354bc9bd319d8471a3b4d097186655f33a6da77ef01e6a89438f

See more details on using hashes here.

File details

Details for the file mail_agent-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: mail_agent-0.0.4-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

Hashes for mail_agent-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a50d661dee79cbc53fbe0777ff360c12497c983f318c76d9df6e07292b342966
MD5 9c911c68f3aa69060f4ab8b1cbf17d92
BLAKE2b-256 25039a4a49d1c4ee619693c1e5b0e3945b459780db41541347521de17909a8b7

See more details on using hashes here.

Supported by

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