Advertisement
Guest User

Untitled

a guest
Sep 4th, 2015
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. if (/^To: *auto@domain.com$/)
  2. to this_mail | python ~/script.py command
  3.  
  4. $ tail -n 1 /etc/aliases
  5. fakeuser: "| /tmp/fakescript"
  6.  
  7. $ cat /tmp/fakescript
  8. #!/bin/bash
  9. cat - >> /tmp/log
  10.  
  11. $ chmod +x /tmp/fakescript
  12.  
  13. $ echo test | mail -s 'subject 1' fakeuser
  14. $ echo test | mail -s 'subject 2' fakeuser
  15.  
  16. $ grep '^Subject:' /tmp/log
  17. Subject: subject 1
  18. Subject: subject 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement