jlevandowski Posted September 7, 2004 Posted September 7, 2004 With help from the following thread How To Install Squirrelmail - The Ultimate Guide, including a powerful spam fighting setup I have tried to set up a script to learn spam. Here is what I have done. I have created a file name saspam.sh and placed it in public_html/cgi-bin with permissions 755 >#!/bin/sh echo "Learning SPAM" sa-learn --showdots --spam --mbox /home/username/mail/spam_missed echo "Done" I have created a php file named learnspam.php in public_html/learnspam with permissions 644. The learnspam folder is webprotected from cpanel. ><html> <body> <?php $input = '/home/username/public_html/cgi-bin/saspam.sh'; $output = shell_exec("$input" . " 2>&1"); echo (nl2br("$output")); ?> </body> </html> The mail folder spam_missed has permissions 755. When I open the learnspam.php file I get the following: >Learning SPAM bayes expire_old_tokens: lock: 22313 cannot create tmp lockfile //.spamassassin/bayes.lock.server80.totalchoicehosting.com.22313 for //.spamassassin/bayes.lock: No such file or directory unable to open /home/username/mail/spam_missed: Permission denied Learned from 0 message(s) (0 message(s) examined). Done Can anyone help diagnose the problem. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.