1. Bei GMX eine E-Mail-Adresse für den Server anlegen. In meinem Fall wurde mainserver@svenhoefer.com neu angelegt, da ich eine GMX-Maildomain besitze. Es funktioniert aber auch mit einem Standart-GMX-Account.
2. /etc/exim4/email-addresses bearbeiten
Benutzer bekommen ihre Absender-Adresse zugeteilt.
# This is /etc/email-addresses. It is part of the exim package # # This file contains email addresses to use for outgoing mail. Any local # part not in here will be qualified by the system domain as normal. # # It should contain lines of the form: # #user: someone@isp.com #otheruser: someoneelse@anotherisp.com sven: sven@svenhoefer.com munin: mainserver@svenhoefer.com www-data: mainserver@svenhoefer.com
3. /etc/exim4/passwd.client bearbeiten
LOGIN ist mit der GMX-Kundennummer und PASSWD mit dem GMX-Passwort zu ersetzen.
# password file used when the local exim is authenticating to a remote # host as a client. # # see exim4_passwd_client(5) for more documentation # # Example: ### target.mail.server.example:login:password mail.gmx.net:LOGIN:PASSWD
4. /etc/exim4/update-exim4.conf.conf bearbeiten
Der Rest bleibt unverändert.
5. exim neu starten
/etc/init.d/exim4 restart
Fertig.
Ist beispielsweise in /etc/munin/munin.conf die Benachrichtigung korrekt aktiviert…
# Drop somejuser@fnord.comm and anotheruser@blibb.comm an email everytime
# something changes (OK -> WARNING, CRITICAL -> OK, etc)
#contact.someuser.command mail -s "Munin notification" somejuser@fnord.comm
#contact.anotheruser.command mail -s "Munin notification" anotheruser@blibb.comm
contacts sven
contact.sven.command mail -s "Munin notification from ${var:host} - ${var:graph_title}" sven@svenhoefer.com
contact.sven.always_send warning critical
…versendet Exim die warning- und critical-E-Mails von Munin an die entsprechende Adresse. In dem hier beschriebenen Szenario geht die E-Mail von mainserver@svenhoefer.com an sven@svenhoefer.com.