Skip to main content

Email

The Decanter e-mail alerter sends an e-mail for each alert.

The decanter-alerting-email feature installs the e-mail alerter:
karaf@root()> feature:install decanter-alerting-email
This feature also installs the etc/org.apache.karaf.decanter.alerting.email.cfg configuration file where you can specify the SMTP server and e-mail addresses to use:
#
# Decanter e-mail alerter configuration
#

# From e-mail address
from=

# To e-mail address
to=

# Hostname of the SMTP server
host=smtp.gmail.com

# Port of the SMTP server
port=587

# enable SMTP auth
auth=true

# enable starttls and ssl
starttls=true
ssl=false

# Optionally, username for the SMTP server
#username=

# Optionally, password for the SMTP server
#password=
  • the from property specifies the from e-mail address (for instance dev@karaf.apache.org)
  • the to property specifies the to e-mail address (for instance dev@karaf.apache.org)
  • the host property specifies the SMTP server hostname or IP address
  • the port property specifies the SMTP server port number
  • the auth property (true or false) specifies if the SMTP server requires authentication (true) or not (false)
  • the starttls property (true or false) specifies if the SMTP server requires STARTTLS (true) or not (false)
  • the ssl property (true or false) specifies if the SMTP server requires SSL (true) or not (false)
  • the username property is optional and specifies the username to connect to the SMTP server
  • the password property is optional and specifies the password to connect to the SMTP server

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!