Anders Norrbring skrev:
Anders Norrbring skrev:
Benny Pedersen skrev:
[..snip..]

After some more error-message-surfing on Google, it looks like it's SA itself that doesn't allow any other username than root to use the Bayes SQL plugin.

So, maybe I need to tell SA that "vscan" is authorized to use it, the question is how... Would I need to install and configure the AuthzUser plugin? Or some other?

So, I installed the AuthzUser plugin.. No big luck with that either.

v314.pre:

loadplugin      Mail::SpamAssassin::Plugin::AuthzUser

local.cf:

authzuser_group_file       /var/spool/amavis/.spamassassin/auth_users
bayes_store_module         Mail::SpamAssassin::BayesStore::MySQL
bayes_sql_dsn              DBI:mysql:sa_bayes:localhost:3306
bayes_sql_override_username     vscan
bayes_sql_username_authorized   1


Result:
[8848] dbg: plugin: loading Mail::SpamAssassin::Plugin::AuthzUser from @INC
[8848] dbg: plugin: registered Mail::SpamAssassin::Plugin::AuthzUser=HASH(0x990b900)

[8848] dbg: bayes: using username: vscan
[8848] dbg: bayes: database connection established
[8848] dbg: bayes: found bayes db version 3
[8848] dbg: bayes: username not allowed by services_allowed_for_username plugin call

Any ideas? What user names *DO* SA allow to use the MySQL connector for Bayes? (besides root)

--

Anders Norrbring
Norrbring Consulting

Reply via email to