Guest User

Untitled

a guest
Dec 24th, 2017
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. > #!/bin/sh
  2. >
  3. > export smtpemailfrom=zabbix@yourdomain.com export zabbixemailto=$1
  4. > export zabbixsubject=$2 export zabbixbody=$3 export
  5. > smtpserver=yoursmtpserver.com export smtplogin=smtpuser export
  6. > smtppass=smtppassword
  7. >
  8. > /usr/bin/sendEmail -f $smtpemailfrom -t $zabbixemailto -u
  9. > $zabbixsubject -m $zabbixbody -s $smtpserver:25 -xu $smtplogin -xp
  10. > $smtppass
  11.  
  12. #!/bin/sh
  13. echo "$3" | /bin/mailx
  14. -r zabbix@yourdomain.example
  15. -s "$2"
  16. -S smtp="yoursmtpserver.example:25"
  17. -S smtp-auth=login
  18. -S smtp-auth-user="your-user"
  19. -S smtp-auth-password="your-password"
  20. "$1"
  21.  
  22. mynetworks_style = host
Add Comment
Please, Sign In to add comment