Hello,
I’m quite new to icinga - at least as in configuring myself.
I’m struggling how to set the sender email address for notificaitons using the director. I’ve created:
- notification template
- notification
- /etc/msmtp/aliases
root: system@, system@mydomain.de
default: root@
- /etc/msmtp/msmtprc
defaults
auth on
tls on
tls_starttls off
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile /var/log/msmtp.log
aliases /etc/aliases
# strato
account strato
host smtp.strato.de
port 465
from system@mydomain.de
user system@mydomain.de
password XXX
# Set a default account
account default: strato
Everything works fine apart from the fact that the sender is always nagios@icinga2 which will cause that the email is filtered by most of the email providers.
I saw that in templates.conf you have:
vars += {
// notification_icingaweb2url = "https://www.example.com/icingaweb2"
// notification_from = "Icinga 2 Host Monitoring <system@mydomain.de>"
notification_logtosyslog = false
}
But I can not configure this in director?!
So how does it work?
Thanks for help,
Robert