Version 3.12.1

3.7.1. Email

Here is an example of a notification config to send backup events to e-mail

notifications:
  mail:
    enabled: true
    smtp_server: smtp.mail.com
    smtp_port: 465
    smtp_user: [email protected]
    smtp_password: some5Tr0n9P@s5worD
    recipients:
      - [email protected]
      - [email protected]

`mail` reference for nxs-backup.conf:

  mail: map
    # Enables this notification channel 
    enabled: bool # Default: true
    # Mailbox on behalf of which mails will be sent
    mail_from: string # Required
    # SMTP host. If not specified mail will be sent using /usr/sbin/sendmail
    smtp_server: string # Required
    # SMTP port. 
    smtp_port: numeric # Default: 465
    # SMTP user login
    smtp_user: string 
    # SMTP user password
    smtp_password: string 
    # Each event in the log has a certain level: "error", "warning", "info", "debug". Here it defines the minimum level of events to be sent to email.
    message_level: string # Default: warning
    # List of email addresses of notification recipients
    recipients: list # Default: []
        # Email of a recipient
      - string