Hello How to.. We have a functioning spam snake so far, whcih is good. Now we were going back to put in the "extras" and have hit 2 small problems. After completing steps 9.24 and 9.25, we aree getting 2 errors. 1 first is that when you restart mailscanner, it says it cannot open ruleset file /etc/MailScanner/rules/content.scanning.rules, No such file or directory at /usr/share/MailScanner//MailScanner/Config.pm does the same thing for filename-rules file...even though they are actually in the appropriate directories. and 2...since adding the 9.25 sections, we get a constant Cron message about a syntax error Parse error: syntax error, unexpected T_STRING in /var/www/mailscanner/functions.php on line 1438 and mailscanner web interface says the same thing. Wierd part is, nowhere in the 9.25 instructions did we even touch that part of the functions.php file. Any ideas what we're missing here? Tom P
update to post When we remove the change array_unshift($row, "<INPUT NAME=\"OPT-REPLACEME\" TYPE=RADIO VALUE=\"S\"> <INPUT NAME=\"OPT-REPLACEME\" TYPE=RADIO VALUE=\"H\"> <INPUT NAME=\"OPT-REPLACEME\" TYPE=RADIO VALUE=\"F\"> <INPUT NAME=\"OPT-REPLACEME\" TYPE=RADIO VALUE=\"R\"> "); back to array_unshift($row, "<INPUT NAME=\"OPT-REPLACEME\" TYPE=RADIO VALUE=\"S\"> <INPUT NAME=\"OPT-REPLACEME\" TYPE=RADIO VALUE=\"H\"> <INPUT NAME=\"OPT-REPLACEME\" TYPE=RADIO VALUE=\"F\">"); and comment out the echo " } else if (p == 'R') {\n"; echo " val = 3;\n"; lines, then mailscanner returns to normal.
Hey, 1. You have to create the /etc/MailScanner/rules/content.scanning.rules file adding the following to it: Code: From: 127.0.0.1 no FromOrTo: default yes 2. If you don't want to allow multiple release of messages, you don't have to follow section 9.25. However, if you do want that feature, then you'll need to make sure everything is correctly typed or you will get errors. Make sure to double check your edits with the guide.