Please find attached the (slightly) modified bouncer.pl code (basically added tables support and removed reporting of the userid as it doesn't mean an awful lot to my users.)
Create 2 shell scripts (bounce-list.sh and bounce-do.sh or similar, and make sure they are executable by you, the owner and are in the same group as your mail bounce file. (chmod 700 should suffice.)
bounce-list.sh:
Code:
#!/bin/sh
/root/./bouncer.pl -test > /home/virtual/site1/fst/var/www/html/output.html
A=`date "+%H:%M"`
T=`date "+%d/%m/%Y"`
echo "<br><br>Last Updated: $A on $T" >> /home/virtual/site1/fst/var/www/html/output.html
Note: -test is required to stop perl moaning about an empty variable check, or something. Replace /home/virtual[yadeya]/output.html with the file you would like to dump the results in. Then you can use php to include this file into your site template.
bouncer.sh:
As above, but replace -test with -bouncer.
These 2 scripts can then be placed in a crontab as required. I run mine every 8 hours or so in list mode, and manually run the bouncer when I can remember/be bothered.
Original code author: If you do not wish this code to be published, please email me and I will remove it. Just trying to make a great piece of software just that little bit better.