From: Tomas K. <to...@us...> - 2005-09-14 10:46:08
|
open plugins/bayesspam/setup.php find bayesspam_load_hook() function --- function bayesspam_load_hook () { include_once(SM_PATH . 'plugins/bayesspam/bayesspam_functions.php'); bayesspam_load(); } --- add debugging calls after bayesspam_load();. For example: error_log($GLOBALS['username'] . ' - ' . $GLOBALS['bayes_username'] . "\n",3,'/tmp/bayes-user.log'); --- function bayesspam_load_hook () { include_once(SM_PATH . 'plugins/bayesspam/bayesspam_functions.php'); bayesspam_load(); error_log($GLOBALS['username'] . ' -> ' . $GLOBALS['bayes_username'] . "\n",3,'/tmp/bayes-user.log'); } this error_log() function call should log username -> bayes plugin username mappings to /tmp/bayes-user.log file. > Hello, > > I have SM with vlogin (to implement virtual web mail for different > domains) > and bayes spam plugin (to filter e-mail on the client side). > > I have no particular configuration for bayes spam plugin. > > The only modification to the config file is: > > $GLOBALS['bayes_granularity'] 'user' -> 'domain' > > It seems that another account (of the same domain) other than my account, > at > the moment, put the spam messages in trash even if that user has never > defined his own spam (so I think that really the modification above > implied > that bayes spam works not only per domain basis). > > How I can verify that all works fine? More precisely, how can I verify > that > only the account of one domain shares the same rules? > > I hope to be clear. If you need further information, I'm here. > > BR, > > rocsca > > ----- Original Message ----- > From: "Tomas Kuliavas" <to...@us...> > To: <squ...@li...> > Sent: Tuesday, September 13, 2005 3:52 PM > Subject: Re: [SM-PLUGINS] manage spam per domain basis > > >> Do you understand that you haven't provided any useful information about >> your setup? Check bayesspam configuration options and test it in your >> setup or at least in environment similar to your setup. Please note that >> I >> can't do that. Not with all those tiny bits of information about your >> setup. >> >> Plugin can be configured to >> a) use username from session >> b) take username from session and use only domain part. >> 'bayes_domain_seperator' option is used to detect domain. >> c) use 'server' string instead of username >> >> > That's all? >> > >> > How the plugin distiguish betwen different domain (I use virtual >> webmail >> > implemented by vlogin plugin)? Is important the choice of the >> separator? >> > >> > Thanks, >> > >> > rocsca >> > >> > ----- Original Message ----- >> > From: "Tomas Kuliavas" <to...@us...> >> > To: <squ...@li...> >> > Sent: Tuesday, September 13, 2005 1:11 PM >> > Subject: Re: [SM-PLUGINS] manage spam per domain basis >> > >> > >> >> from BayesSpam plugin configuration file. >> >> ---------------- >> >> // Granularity >> >> // user : Every user has their own Spam DB >> >> // domain : Every domain has it's own Spam DB >> >> // server : Every user/domain shares the same Spam DB >> >> // >> >> // If set to domain or server, bayes_allow_db_nuke should be FALSE >> >> $GLOBALS['bayes_granularity'] = 'user'; >> >> ---------------- >> >> >> >> Do it in BayesSpam plugin or integrate SpamAssassin into local >> delivery >> >> program. procmail or maildrop. If SpamAssassin is configured to store >> >> preferences in SQL, it can be controlled with sasql plugin. > SpamAssassin >> >> provides more options than BayesSpam plugin. >> >> >> >> Please keep conversation on the list. Others might find it useful. >> >> >> >> -- >> >> Tomas >> >> >> >> > Thanx, >> >> > >> >> > I have no SA on IMAP server.. I have SA only on SMTP server (Is a >> > different >> >> > server which receives message for all domains of mine and then > forward >> > them >> >> > to the IMAP server). So I can implement server side filtering.. :) >> >> > >> >> > Instead, I have SA on WebMail server so that it is possible to > filter >> >> email >> >> > with bayesian plugin... >> >> > >> >> > But I ld like to manage domains.. >> >> > >> >> > rocsca >> >> > >> >> > >> >> > ----- Original Message ----- >> >> > From: "Tomas Kuliavas" <to...@us...> >> >> > To: <squ...@li...> >> >> > Sent: Monday, September 12, 2005 7:26 PM >> >> > Subject: Re: [SM-PLUGINS] manage spam per domain basis >> >> > >> >> > >> >> >> > Hello, >> >> >> > >> >> >> > is there any SM plugin which permits to manage the definition of >> >> >> 'spam' >> >> >> > per domain basis? >> >> >> > >> >> >> > PS: At the moment, my users are using Bayesian spam, but I'ld >> like >> >> to >> >> delegate a responsible to administer the hole domain defining what >> >> >> spam >> >> >> > really is, for the entire domain.. >> >> >> >> >> >> Use server side filtering with SpamAssassin. SpamAssassin settings >> >> can >> > be >> >> >> stored in SQL. Group of users can share same username and >> settings. >> >> SpamAssassin supports Bayes. >> >> >> >> >> >> -- >> >> >> Tomas >> >> >> >> ------------------------------------------------------- >> SF.Net email is Sponsored by the Better Software Conference & EXPO >> September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices >> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & >> QA >> Security * Process Improvement & Measurement * >> http://www.sqe.com/bsce5sf >> -- >> squirrelmail-plugins mailing list >> Posting Guidelines: > http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines >> List Address: squ...@li... >> List Archives: > http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.plugins >> List Archives: >> http://sourceforge.net/mailarchive/forum.php?forum_id=3931 >> List Info: > https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > -- > squirrelmail-plugins mailing list > Posting Guidelines: > http://squirrelmail.org/wiki/wiki.php?MailingListPostingGuidelines > List Address: squ...@li... > List Archives: > http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.plugins > List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=3931 > List Info: > https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins > |