github.com/crowdsecurity/crowdsec@v1.6.1/cmd/notification-email/email.yaml (about) 1 type: email # Don't change 2 name: email_default # Must match the registered plugin in the profile 3 4 # One of "trace", "debug", "info", "warn", "error", "off" 5 log_level: info 6 7 # group_wait: # Time to wait collecting alerts before relaying a message to this plugin, eg "30s" 8 # group_threshold: # Amount of alerts that triggers a message before <group_wait> has expired, eg "10" 9 # max_retry: # Number of attempts to relay messages to plugins in case of error 10 timeout: 20s # Time to wait for response from the plugin before considering the attempt a failure, eg "10s" 11 12 #------------------------- 13 # plugin-specific options 14 15 # The following template receives a list of models.Alert objects 16 # The output goes in the email message body 17 format: | 18 <html><body> 19 {{range . -}} 20 {{$alert := . -}} 21 {{range .Decisions -}} 22 <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://app.crowdsec.net/cti/{{.Value}}">CrowdSec CTI</a></p> 23 {{end -}} 24 {{end -}} 25 </body></html> 26 27 smtp_host: # example: smtp.gmail.com 28 smtp_username: # Replace with your actual username 29 smtp_password: # Replace with your actual password 30 smtp_port: # Common values are any of [25, 465, 587, 2525] 31 auth_type: # Valid choices are "none", "crammd5", "login", "plain" 32 sender_name: "CrowdSec" 33 sender_email: # example: foo@gmail.com 34 email_subject: "CrowdSec Notification" 35 receiver_emails: 36 # - email1@gmail.com 37 # - email2@gmail.com 38 39 # One of "ssltls", "starttls", "none" 40 encryption_type: "ssltls" 41 42 # If you need to set the HELO hostname: 43 # helo_host: "localhost" 44 45 # If the email server is hitting the default timeouts (10 seconds), you can increase them here 46 # 47 # connect_timeout: 10s 48 # send_timeout: 10s 49 50 --- 51 52 # type: email 53 # name: email_second_notification 54 # ... 55