Worth Zabbix 2.2 on Debian. Created a script for sending mail via SMTP with authorization in /usr/lib/zabbix/alertscripts/sendEmail.sh:

#!/bin/sh export smtpemailfrom=zbx@domain.ru export zabbixemailto=$1 export zabbixsubject=$2 export zabbixbody=$3 export smtpserver=mail.domain.ru export smtplogin=zbx export smtppass=zbxPassword /usr/bin/sendEmail -f $smtpemailfrom -t $zabbixemailto -u $zabbixsubject -m $zabbixbody -s $smtpserver:25 -xu $smtplogin -xp $smtppass 

Rights to sendEmail.sh 755. If you execute in the console and pass the corresponding parameters, then the letters come normally. Zabbiks configured according to the instructions https://www.zabbix.com/documentation/ru/2.2/manual/config/notifications/media/script but when the trigger is triggered, the letters do not come, although the Audit-> Actions writes that the letter was sent and no errors not. And in fact, the letter does not come in the mail. I tried to send mail to the hidden email service sms.ru for the same events - everything went well and worked. Where to dig?

    1 answer 1

    Resolved: http://toster.ru/q/112779?utm_source=email_toster&utm_medium=email_notification&utm_content=answer&utm_campaign=notifications

    • @cbone, If possible, publish solutions on the forum, information on the link can be deleted. - Nicolas Chabanovsky