Install BashEmail on cPanel & WHM

Summary: One command installs BashEmail on a cPanel server running Exim, with a WHM dashboard and a Spam Quarantine page for each customer.

BashEmail installs on a cPanel & WHM server running Exim with one command, as root.

Requirements

RequirementDetail
Accessroot on the server
Processor64-bit x86 (x86_64)
Systemsystemd and curl installed
Mail serverExim or Postfix, already running
Diskat least 500 MB free on /opt (the installer warns below this)
Licencean install token from your BashPilot account, valid for one hour

cPanel servers on EL8 or EL9 based systems are supported, for example AlmaLinux, Rocky Linux or CloudLinux 8 and 9.

Install

Copy the install command from your BashPilot account. It contains your install token, which works once and expires after one hour. Run it as root:

shell
curl -sSL https://bashemaildownloads.bashpilot.com/install-bashemail.sh | bash -s -- --install-token YOUR_TOKEN

What the installer does

  • Checks the requirements before anything is downloaded or changed.
  • Downloads the agent and verifies its checksum. Nothing is installed if the check fails.
  • Activates your licence with the install token.
  • Puts BashEmail in the mail path using the panel's own extension points. It never edits the main mail server configuration file, so panel updates do not undo it.
  • Turns the panel's own spam scanner off, so two filters do not judge the same mail. Uninstalling turns it back on.
  • Installs the dashboard into the panel.
  • Checks that the mail server is still valid and running before it finishes.

Installer options

OptionWhat it does
--install-token <token>Required for a first install. Ignored on a server that is already activated.
--no-wireInstall everything but leave the mail path untouched.
--keep-spamassassinInstall without turning off the panel's own spam scanner. Only use this if you have a specific reason to run both.
--uninstallRemove BashEmail, see Uninstall BashEmail.

Check it is running

shell
systemctl status bashemail-agent
/opt/bashemail/bashemail-agent license

Where to find it

  • You: WHM > Plugins > BashEmail
  • Your customers: cPanel > Email > Spam Quarantine, showing only mail for their own domains

Questions

Does it edit exim.conf?

No. It uses cPanel's own configuration drop-ins, which cPanel updates keep.

Can I run it next to cPanel's SpamAssassin?

By default BashEmail turns SpamAssassin off while installed and turns it back on when uninstalled. Use --keep-spamassassin only if you need both.

Last updated · Applies to BashEmail