Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > #!/bin/sh
- >
- > export smtpemailfrom=zabbix@yourdomain.com export zabbixemailto=$1
- > export zabbixsubject=$2 export zabbixbody=$3 export
- > smtpserver=yoursmtpserver.com export smtplogin=smtpuser export
- > smtppass=smtppassword
- >
- > /usr/bin/sendEmail -f $smtpemailfrom -t $zabbixemailto -u
- > $zabbixsubject -m $zabbixbody -s $smtpserver:25 -xu $smtplogin -xp
- > $smtppass
- #!/bin/sh
- echo "$3" | /bin/mailx
- -r zabbix@yourdomain.example
- -s "$2"
- -S smtp="yoursmtpserver.example:25"
- -S smtp-auth=login
- -S smtp-auth-user="your-user"
- -S smtp-auth-password="your-password"
- "$1"
- mynetworks_style = host
Add Comment
Please, Sign In to add comment