Advertisement
Guest User

Mail shizz

a guest
Feb 18th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.85 KB | None | 0 0
  1. ------------master.cf----------------------------
  2.  
  3. smtp      inet  n       -       -       -       -       smtpd
  4.     -o content_filter=myhook:dummy
  5.  
  6. # (At bottom)
  7. myhook unix - n n - - pipe
  8.   flags=F user=www-data argv=/hsp/mail.php
  9.  
  10. -------------------------------------------------
  11.  
  12. ------------mail.php-----------------------------
  13. #!/usr/bin/php
  14. <?php
  15.  
  16. $file = @ fopen("/hsp/test.txt","a");
  17. fwrite($file, "Message received!");
  18. fclose($file);
  19.  
  20. ?>
  21. -------------------------------------------------
  22.  
  23. ---------mail.log--------------------------------
  24. Feb 18 13:33:09 horus postfix/pipe[6194]: 3FB3B12006C: to=<n0bane@localhost>, relay=myhook, delay=0.11, delays=0.07/0.01/0/0.03, dsn=2.0.0, status=sent (delivered via myhook service)
  25. Feb 18 13:33:09 horus postfix/qmgr[6172]: 3FB3B12006C: removed
  26. -------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement