Skip to content

Event Manager Tutorials

The Event Manager enables administrators to automate server operations by configuring HTTP notifications, executing commands, sending email alerts, and more — based on server events or scheduled triggers.

At its core, the Event Manager consists of two main components: rules and actions.

  • Rules define the conditions that determine when an action should be executed. Think of a rule as a "when this happens, and these conditions are met, then do that" type of logic.
  • Actions are the tasks carried out when a rule is triggered. These actions can be dynamically customized using placeholders — variables that represent contextual data related to the event (such as file name, username, or file size). To further tailor these values, SFTPGo provides helper functions that format or transform placeholders directly within your templates. For a complete list of placeholders and helper functions, see the Placeholders & Templates reference.

Tutorials

The following step-by-step tutorials cover common use cases:

SMTP Configuration

Many tutorials use email actions. Make sure you have a working SMTP configuration. You can configure it using environment variables:

SFTPGO_SMTP__HOST="your smtp server host"
SFTPGO_SMTP__FROM="SFTPGo <sftpgo@example.com>"
SFTPGO_SMTP__USER=sftpgo@example.com
SFTPGO_SMTP__PASSWORD="your password"
SFTPGO_SMTP__AUTH_TYPE=1 # change based on what your server supports
SFTPGO_SMTP__ENCRYPTION=2 # change based on what your server supports

ℹ The SMTP server can also be configured directly through the WebAdmin UI by navigating to Server Manager > Configurations > SMTP.