2022-02-14 16:09:31 +00:00
type : email # Don't change
name : email_default # Must match the registered plugin in the profile
2022-01-06 10:20:59 +00:00
2022-02-14 16:09:31 +00:00
# One of "trace", "debug", "info", "warn", "error", "off"
log_level : info
2022-01-06 10:20:59 +00:00
2022-02-14 16:09:31 +00:00
# group_wait: # Time to wait collecting alerts before relaying a message to this plugin, eg "30s"
# group_threshold: # Amount of alerts that triggers a message before <group_wait> has expired, eg "10"
# max_retry: # Number of attempts to relay messages to plugins in case of error
timeout : 20s # Time to wait for response from the plugin before considering the attempt a failure, eg "10s"
#-------------------------
# plugin-specific options
# The following template receives a list of models.Alert objects
# The output goes in the email message body
format : |
2022-01-06 10:20:59 +00:00
{{range . -}}
{{$alert := . -}}
{{range .Decisions -}}
2022-03-10 15:44:21 +00:00
<html><body><p><a href=https://www.whois.com/whois/{{.Value}}>{{.Value}}</a> will get <b>{{.Type}}</b> for next <b>{{.Duration}}</b> for triggering <b>{{.Scenario}}</b> on machine <b>{{$alert.MachineID}}</b>.</p> <p><a href=https://www.shodan.io/host/{{.Value}}>Shodan</a></p></body></html>
2022-01-06 10:20:59 +00:00
{{end -}}
{{end -}}
2022-02-14 16:09:31 +00:00
smtp_host: # example : smtp.gmail.com
smtp_username : # Replace with your actual username
smtp_password : # Replace with your actual password
smtp_port : # Common values are any of [25, 465, 587, 2525]
auth_type : # Valid choices are "none", "crammd5", "login", "plain"
2022-03-07 09:18:12 +00:00
sender_name : "CrowdSec"
2022-02-14 16:09:31 +00:00
sender_email: # example : foo@gmail.com
email_subject : "CrowdSec Notification"
receiver_emails :
# - email1@gmail.com
# - email2@gmail.com
2022-01-06 10:20:59 +00:00
2022-02-14 16:09:31 +00:00
# One of "ssltls", "none"
encryption_type : ssltls
2022-01-06 10:20:59 +00:00
2022-05-19 07:54:26 +00:00
---
# type: email
# name: email_second_notification
# ...