How to Rules rules_du_jour For SA the easy way

duke28 said:
hi
where is the crondjob hjas been added ??

or what i need to add to cronjob..

cronjob is automatically done for you.

I believe its in cron.daily folder
 
everything is eluminated

Hello all,

I am actually the creator/maintainer of installRDJ.pl. Hopefully I can answer some questions regarding the script.

First of all, the script was written on a Debian box and should not require a '--debian' switch. You simply need to pass the command line switches to properly install it. For example, something like:

Code:
perl installRDJ.pl --install --sa_restart="/etc/init.d/exim restart" --sa_dir=/etc/spamassassin

...etc


I am not familiar with the Direct Admin stuff, however I will be more than happy to add the code in to the maintained version of the script. Please send me an email if anyone wants to submit comments/feature requests/etc.

The cronjob is created for 1am by default, but can be overridden with the --cron_hour switch.

All configurations are made in the proper location of /etc/rulesdujour/config. You should *NOT* edit the rules_du_jour script to add/remove trusted rulesets or other configurations.

I hope that clarifies things a bit. Please email me if you have any questions/comments/etc.

I'm glad that you all found the script useful!
 
Hello,
Just my 1 cent comment =>

I know rulesdujour original script, yes there are a few bugs.
but i don't use it because it make cpu/memory load for a unsignifiant increase result if you have a good exim.conf and a fex choosen SA plugin.
Even this can be dangerous for your costumers.

But i think it's a good learning, to push servermaster to go to next station : SA and exim config
 
i suggest it


cd /etc/mail/spamassassin/

rm -rf *

# after it do it , delete cron of rules du jour:


cd /etc/cron.d/

rm -rf rules_du_jour

# after it i recommand to reinstall spamassassin only :

cd /usr/local/directadmin/scripts/

./spam.sh

service exim restart
 
Better late than never....

The mail command is the command that you use to send email from the command line.

A default (even minimal) CentOS command should have the mail command.

Try, logging in as shell as admin:

$ mail

and

again as root:

# mail

(you do not type the $ or the #; they're just to show you're either root or not)

and see if you get something or an error. If you get an error you may not have a proper installation.

Either way, exit the program with control-C, and then do:

$ whereis mail

and post the results.

Jeff

Sorry about letting this go by for a long time...

Code:
-bash-3.00# mail
-bash: mail: command not found
-bash-3.00# whereis mail
mail: /etc/mail

looking in /etc/mail only contains a folder called spamassassin, no mail program however....

Thanx, Michiel
 
I didn't set up your OS distribution and I don't know why it doesn't include the mail command :( .

Jeff
 
Back
Top