Keith De Souza wrote: > > I'm trying to understand why is it taking 300.0 seconds to scan a > message only 24Kb in size?? > I'm begeining to think that because SA is taking so long to scan the > message, it is timing out > and hence Exim returning a "temporarily reject after DATA". > > My thoughs so far is to perhaps reducing the file size that SA takes > to scan and see if the scan time reduces. > I may be wrong in my troublshooting methods but I'm not sure why this > is happeninig at present.
My first suggestion to anyone who is having problems with SA running slowly is to check memory usage. You posted previously that your conf file contained this: SPAMD_OPTS="-m 25 -H -u mail -D" "-m 25" means that you are running 25 spamd processes. On my system (with a few extra rulesets), the spamd processes take up about 60-70M each. How much memory do you have? You need to make sure that the machine doesn't go into swap. If it does, SA will slow down dramatically. Try running the "free" command to see how much memory you have available. If you are close to the edge, you may want to lower the number of processes. "-H" is a command to change the home directory and generally requires an argument, so I'm not sure what it's doing here. "-u mail" means spamd is running as the user "mail". So when you are testing, manually learning the Bayes db, etc, make sure you are logged in as "mail" so that you are using the same settings and databases as spamd. "-D" puts spamd into debug mode. Aside from filling up your logs with excess debug information, this will probably slightly increase the memory use and slow down the scanning process. If you don't need it for some reason, get rid of it. -- Bowie