Untitled

From Unknown, 2 Months ago, written in Bash, viewed 205 times.
URL https://paste.gxis.eu/view/af81b51c Embed
Download Paste or View Raw
  1. #!/bin/bash
  2.  
  3. # some code stripped out here
  4.  
  5. (
  6. echo "EHLO sender.example.com"
  7. echo "MAIL FROM: <test@sender.example.com>"
  8. echo "RCPT TO: <user@recipient.example.com>"
  9. echo "DATA"
  10. echo "From: <test@sender.example.com>"
  11. echo "To: <user@recipient.example.com>"
  12. echo "Subject: ${eventseverity}: ${eventname} on ${eventsourcename}"
  13. echo ""
  14. echo "Summary:"
  15. echo "${eventseverity}: ${eventname} on ${eventsourcename}"
  16. echo "${eventargs}"
  17. echo ""
  18. echo "."
  19. echo "QUIT"
  20. ) | stdbuf -oL nc -C -i1 mailrelay.example.com 25 >/dev/null
  21.  

Reply to "Untitled"

Here you can reply to the paste above