Hi I am having a problem with this script, therror Im getting is
"uid=400, ddelay=0.795735, xdelay=0.742994, stat=Deferred (/usr/local/bin/checkhab:__:_command_not_found//usr/local/bin/checkhab:__:_command_not_found//usr/local/bin/checkhab:__:_command_not_found//usr/local/bin/checkhab:__:_command_not_found//usr/local/bin/checkhab:__:_command_not_found//usr/local/bin/checkhab:__:_command_not_found//usr/local/bin/checkhab:__:_command_not_found//usr/local/bin/checkhab:__:_command_not_found//usr/local/bin/checkhab:__:_command_not_found//usr/local/bin/checkhab:__:_command_not_found//usr/local/bin/checkhab:__:_command_not_found//usr/local/bin/checkhab:__:_command_not_found//usr/local/bin/checkhab:__:_command_not_found//usr/local/bin/checkhab:__:_command_not_found//usr/local/bin/checkhab:__:_command_not_found//usr/local/bin/checkhab:__:_command_not_found//usr/local/bin/checkhab:__:_command_not_found//usr/local/bin/checkhab:__:_command_not_found//usr/local/bin/checkhab:__:_command_not_found//usr/local/bin/checkhab:__:_command_not_found//usr/local/bin/checkhab:_line_132:_syntax_error_near_unexpected_token_{_'//usr/local/bin/checkhab:_line_132:_recimsg_()_{_'/)"
I have checked the script and the .qmail and they both look correct. the server is 5,5 if thats any help. I hope you can give me an idea as to waht s going on.
Cheers Ian
www.bathford-broadband.co.uk luis wrote:
>
> Checkhab on SME
>
> One of the biggest issues that i found on SME was the lack of
> antivirus software. I think if you dont allow the vbs, bat,
> exe ... attachments you will have 90% of the work done. For
> that purpose Noel G. Mistula made a very good script called
> checkhab and is able to:
> - Check if an email is HTML formatted
> - Check if an attachment has an extension contained in a list
> - Check if the email has a binary or is UUENCODED
> - Subject filter
> This script takes the email and sends it to a mailbox named
> junkmail. It also sends an email to both the sender and the
> recipient explainig the situation.
> The script is so easy to modify. I´m only using UUENCODED and
> attach filter and took me 15 min to finish.
>
> The unique problem is that you have to modify the .qmail file
> of all the users you want to prevent from those emails and
> add the path of the executable script. If anyone please can
> make this job easyer... For example a checkbox on the user
> interface that injects one line in the .qmail
> On the other hand, are there any way to include one line on
> the .qmail file for all new user? could it be done with
> templates?
>
> Thanks in advance.
>
> --------------------------------------------------------------------------------------------------------------------------
> Download:
>
http://ngm.id.au/checkhab>
http://ngm.id.au/banfiles.txt>
http://ngm.id.au/banphrase.txt>
> Steps:
> 1. Download and edit the script: Edit the variables. I didn´t
> need to change anything else
> 2. Move the script (i.e. SCP) to /usr/local/bin
> 3. chmod 755 /usr/local/bin/checkhab
> 4. chown root:qmail /usr/local/bin/checkhab
> 5. Move the banfiles.txt and the banphrase.txt to /etc
> 6. chmod 644 /etc/banfiles.txt
> 7. chmod 644 /etc/banphrase.txt
> 8. create an account named junkmail or whatever you assigned
> to MYJ
> 9. add | /usr/local/bin/checkhab to every .qmail file except
> for junkmail account.
> 10. send some vbs or exe and take a look!.
>
> Luismor