Install BashEmail on Plesk

Summary: One command installs BashEmail on a Plesk server running Postfix, as a Plesk extension with a quarantine page in each domain's Mail tab.

BashEmail installs on a Plesk server running Postfix with one command, as root, and registers itself as a Plesk extension.

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

Plesk on Ubuntu, Debian and RHEL-family systems such as CloudLinux is supported.

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

Plesk's outgoing mail control

To stop a hacked mailbox from sending, BashEmail uses Plesk's own outgoing mail control and sets that one mailbox's limit to zero. It only affects sending: the mailbox still receives mail.

  • If outgoing mail control is already on, your limits are left exactly as they are.
  • If it is off, BashEmail turns it on with every default set to unlimited, so no other mailbox is limited.

Where to find it

  • You: Plesk > Extensions > BashEmail
  • Your customers: the Mail tab of their own domain, showing only mail for their own domains

Last updated · Applies to BashEmail