Pradeep Mishra wrote: > Dear All > > I have ovserved that iostat on one of my servers running spamassassin > is aprox 12% and when i moved $Home/.spamassassin to somewhere else it > comes down to 2%. I would like to know where can i change the path to > /somehere/.spamassassin ?? If it's IO, it's probably the bayes and AWL. Those can be changed using bayes_path and auto_whitelist_path settings at the local.cf level.
WARNING: despite their names, these options are not just paths. bayes takes a path plus a partial filename that it will append _toks, _seen, etc to. The AWL one takes a path and a filename. However, unless this path is in ~/ you'll loose per-user state for these files, causing them all to be shared.. That might or might not be OK with you. see man Mail::SpamAssassin::Conf for more details. > OR How do i change the userstate_dir path to > /something_else/.spamassassin in place of /$USER_DIR/.spamassassin. If you use spamd, you can use the --virtual-config-dir option, to use SA data in some completely different path. This also allows %l to be specified to generate per-user directories. ie: --virtual-config-dir /vhome/%l/.spamaassassin see man spamd for more details