Author Topic: sauserprefs - question about it  (Read 5274 times)

Offline myname

  • Newbie
  • *
  • Posts: 1
sauserprefs - question about it
« on: January 08, 2011, 08:52:29 AM »
Hi,

  I set-up SA to use mysql as per here:
UsingSQL - Spamassassin Wiki

...And also read this about the mysql connector:
http://svn.apache.org/repos/asf/spamassassin/tags/spamassassin_current_release_3.3.x/sql/README

I installed the plugin and set the mysql connector as:
// spamassassin database settings
$rcmail_config['sauserprefs_db_dsnw'] = 'mysql://spamman:ffffffff()-1@localhost/spamassassin';

This message is displayed when I try via Roundcube to save some settings:
Error: Cannot change spam settings.

From the logs:
 [Native code: 1142] [Native message: INSERT command denied to user 'spamman'@'localhost' for table 'userpref']  in /www/roundcube/program/include/rcube_mdb2.php on line 646 (POST /?_task=settings&_action=plugin.sauserprefs.save)


Does anyone know what I might have mis-configured?

Regards, S.

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
sauserprefs - question about it
« Reply #1 on: January 09, 2011, 10:55:39 AM »
look up the mysql error, looks like the user `spamman` doesnt have permission to run inster commands.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦