Author Topic: SpamAssassin MySQL Plugin  (Read 100136 times)

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
SpamAssassin MySQL Plugin
« Reply #15 on: July 11, 2009, 08:25:52 AM »
The offical instructions are here UsingSQL - Spamassassin Wiki If you do a search from Spamassassin and MySQL you should find some guides.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline techdude

  • Jr. Member
  • **
  • Posts: 38
SpamAssassin MySQL Plugin
« Reply #16 on: July 14, 2009, 10:41:46 AM »
What modifications do I need to make to this to get it to work with another Template?  Such as the MobileMe Template?

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
SpamAssassin MySQL Plugin
« Reply #17 on: July 15, 2009, 03:39:26 PM »
It depends what version of RC (and the plugin) you have. If its 0.3b then your options are limited, there is a sauserprefs.css file in the plugin folder and you can tweak that to try and match your skin, but that’s about it – unless you want to edit the code in sauserprefs.php

If you are using SVN trunk then there is a skins folder inside the plugin dir, and default inside that – make a copy of this folder and give it the same name as your skin and you can tweak the template files, css and images.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline spiderling

  • Newbie
  • *
  • Posts: 6
SpamAssassin MySQL Plugin
« Reply #18 on: July 24, 2009, 01:06:02 AM »
I am a newbie to managing a dedicated server and to RC, and I'm having a little trouble understanding the configuration settings for this plugin.

I'm using RC 0.3beta and uploaded the sauserprefs folder into the plugins folder. Added the sausesrprefs to the $rcmail_config['plugins'] array.

I have RC's 'users' table which has a 'username' field and a 'preferences' field, but it does not have a 'value' field. :confused:
Am I to create a separate table for this?

Thanks in advance

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
SpamAssassin MySQL Plugin
« Reply #19 on: July 24, 2009, 03:27:44 AM »
hi, i think maybe you are looking in the wrong place. you should be putting in the info from your SpamAssassin user prefs table, not the RC users table. UsingSQL - Spamassassin Wiki should get you started on setting up SpamAssassin and MySQL.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline spiderling

  • Newbie
  • *
  • Posts: 6
SpamAssassin MySQL Plugin
« Reply #20 on: July 28, 2009, 06:41:56 PM »
Thanks for the info. I'll give it try.

Offline patricktech

  • Newbie
  • *
  • Posts: 6
0.3-stable released
« Reply #21 on: September 15, 2009, 11:42:41 AM »
Do you have the latest stable release of your plugin to work with 0.3-stable release of RC?

Thanks...

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
SpamAssassin MySQL Plugin
« Reply #22 on: September 16, 2009, 03:24:32 AM »
the copy on the website will work with 0.3s
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline voltron81

  • Jr. Member
  • **
  • Posts: 42
SpamAssassin MySQL Plugin
« Reply #23 on: September 17, 2009, 06:03:58 AM »
Have somebody tried to install this plugin with ISPConfig 3?
The difference is that Spamassassin is controlled by ISPConfig, so I think the database is different...
What do you think?

Thanks
Michele

richermartyn

  • Guest
SpamAssassin MySQL Plugin
« Reply #24 on: September 21, 2009, 08:04:42 AM »
Hi...
 I have some information regarding MYSQL...
To begin using the Stats Plugin you will need to create a table for the plugin to write to
CREATE TABLE stats (
  day date NOT NULL default'',
  username varchar(100) NOT NULL default '',
  domain varchar(100) default '',
  spam int(20) default '0',
  ham int(20) default '0',
  PRIMARY KEY (day,username,domain)
) TYPE=MyISAM
You will need to replace the following variables with settings for your configuration  You will need to replace the following variables with settings for your configuration  
# Configure SQL for statistical storage
use_stats                       1
user_stats_dsn                  DBI:mysql:spamassassin_beta:sql_hostname
user_stats_sql_username         sql_username
user_stats_sql_password         sql_password
user_stats_sql_table            sql_table

Offline utiltiy

  • Newbie
  • *
  • Posts: 4
SpamAssassin MySQL Plugin
« Reply #25 on: October 03, 2009, 07:12:26 AM »
Hello,

can me anybody help with the MySQL Settings?

I insert my Database String, but it's save from Settings Possible.

Must i create a new Databse for this or what must i do for it?

Thanks

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
SpamAssassin MySQL Plugin
« Reply #26 on: October 04, 2009, 06:55:22 AM »
the plugin interacts with the mysql database which stores your SpamAssassin settings. If you dont have one of those then either this plugin isnt for you or you need to configure your SpamAssassin to use a mysql database (there are lots of guides on how to do that on the internet just do some searching)
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline henlon

  • Jr. Member
  • **
  • Posts: 40
No fields in the sauserprefs form
« Reply #27 on: October 11, 2009, 01:43:33 PM »
I'm running on RC0.3s and have installed the latest plugins from the repository.
When I go to the 'SPAM' label and click on the settings in the left menu i only receive the button 'SAVE' in the forms.
Is there anything more I have to do?
I have created the mySQL db with the fields 'username' 'preference' and 'value'
There are no errors in the log file.

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
SpamAssassin MySQL Plugin
« Reply #28 on: October 12, 2009, 03:09:00 AM »
Try using the zip/tag.gz version on the website rather than the one from the repo and see if you have the same issue. Also could you post your config file? You should see a "restore default values" button as well as a save one. Are the fields missing for all sections or just one?
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline henlon

  • Jr. Member
  • **
  • Posts: 40
SpamAssassin MySQL Plugin
« Reply #29 on: October 13, 2009, 01:34:13 PM »
Yes, exept from the first 'General settings' wich is the same as the fields under User settings in the first window.