alias em socklisten serv 25
on 1:socklisten:serv:{
var %sock = _test. $+ $r(111, 999)
sockaccept %sock
echo -a sockaccepted from $sock(%sock).ip
}
on 1:SOCKREAD:_test.*:{
var %s
sockread %s
tokenize 32 %s
echo -a %s
}
Now when i send myself an email by php mail function like:
<?php
if (mail("pouncer@mydns.whatever", "subject", "message")) echo "Mail sent";
?>
It actually echos, sockaccpeted etc.. but it doesnt echo anything from the sockread, im trying to make it echo the subject and message somehow,