#Mailmodul zum automatischen mailen $ModLoad ommail $ActionMailSMTPServer my.smtp.ser.ver $ActionMailSMTPPort 25 $ActionMailEnableBody on $ActionMailFrom rsyslog@my.domain $ActionMailTo admin@my.domain $template mailSubject,"Rsyslog Meldung von %hostname%" $template mailBody,"RSYSLOG Meldung:\r\n\r\n\ hostname=%hostname%\r\n\ timereported=%timereported%\r\n\ syslogfacility-text=%syslogfacility-text%\r\n\ programname=%programname%\r\n\ msg=%msg%" $ActionMailSubject mailSubject #$ActionExecOnlyOnceEveryInterval 60 if $msg contains 'wichtige Meldung' then :ommail:;mailBody