I did uninstall the plugin and after this i installed it again. I can't reproduce your problem. Take a look in the main.inc.php of roundcube wheter the plugins are activated
SpamAssassin
- TheCry
- Closed
- Thread is marked as Resolved.
-
-
Ok, i've tried and theses are the results:
- In main.inc.php the 'markasjunk2', 'sauserprefs' are not present in plugin array
- Uninstalling and Reinstalling the plugin, some values in user_prefs are double and the plugin installation fails. When removed from table, it worksThanks
-
-
This should be a problem from an older version.
With the current versions this double entries will not appear -
This should be a problem from an older version.
With the current versions this double entries will not appearI have installed this server on 16 june, so the spamassassin plugin used before was the 0.0.8 version...
So, no problem for me, but the upgrade process does not work in this case
-
-
I will test it again, but with the last update the duplicate entries did not appear on my system
-
How to automatically move a message to the .Junk folder?
EDIT: I have found a solution
apt-get install dovecot-sieve dovecot-managesieved spamassassin spamass-milter libmail-dkim-perl libnet-ident-perl libencode-detect-perl
$ mkdir /var/lib/dovecot/sieve/
Create the file default.sieve
$ nano /var/lib/dovecot/sieve/default.sieve
require "fileinto";
if exists "X-Spam-Flag" {
if header :contains "X-Spam-Flag" "YES" {
fileinto "INBOX.Junk";
stop;
}
}$ chown vmail /var/lib/dovecot/sieve/default.sieve
Edit the file dovecot.conf change the red options
$ nano /etc/dovecot/dovecot.conf
protocol lda {
auth_socket_path = /var/run/dovecot/auth-master
mail_plugins = $mail_plugins sieve
postmaster_address = postmaster(at)yourdomain.tld
}
plugin {
sieve_global_path = /var/lib/dovecot/sieve/default.sieve
sieve_global_dir = /var/lib/dovecot/sieve/
}
$ /etc/init.d/dovecot restart
$ /etc/init.d/spamassassin restart
$ /etc/init.d/spamass-milter restart -
-
This is included in the roundcube plugin!
-
For me was the debian package "libio-socket-ip-perl" missing.
Code- spamd -VSpamAssassin Server version 3.3.2 running on Perl 5.14.2Jul 25 10:35:42.604 [2591] error: Socket version 1.95 required--this is only version 1.94 at /usr/share/perl5/IO/Socket/SSL.pm line 71.Jul 25 10:35:42.604 [2591] error: Can't locate IO/Socket/IP.pm in @INC (@INC contains: /usr/share/perl5 /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl) at /usr/share/perl5/IO/Socket/SSL.pm line 85. with SSL support (IO::Socket::SSL 1.76) with zlib support (Compress::Zlib 2.033)
After installation:For reference --> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=685157#10
-
-
Hi,
I have implemented a little change to the Spamassassin plugin
Many users have informed to me that they received too much spam, even if it was properly stored in the Junk folder.
Many of these emails have a very high spam score, much higher than 10 points. Looking at the spamass-milter demon options, I see that it's possible to reject the mail if the spamassassin score reaches a certain level.
I have edited the file /var/www/imscp/gui/plugins/SpamAssassin/config.php:
Quote// Don't change anything, if you don't know what you are doing!
'spamassMilterOptions' => '-e -f -I -u spamass-milter -r 10',In this way, all the emails that reach or exceed the 10 points of spam are rejected
Updated / Reloaded plugin in the i-MSCP panel and it works
I think that it can be interesting for many users, it can be implemented directly in the Spamassassin plugin as an option?
Thank you very much
-
Hey there,
I found following error log (/var/log/imscp/spamassassin-plugin-cronjob-discover-razor.log):Quote
[Sun Oct 19 00:00:01 2014] [debug] iMSCP::Debug::verbose: Debug mode off
[Sun Oct 19 00:00:02 2014] [error] iMSCP::Debug::__ANON__: Use of uninitialized value in pattern match (m//) at /var/www/imscp/gui/plugins/SpamAssassin/backend/SpamAssassin.pm line 272.[Sun Oct 19 00:00:02 2014] [error] iMSCP::Debug::__ANON__: Use of uninitialized value $1 in concatenation (.) or string at /var/www/imscp/gui/plugins/SpamAssassin/backend/SpamAssassin.pm line 275.
After rerunning the command in the cronjob file, I get the same error message.
Plugin config:
Code- return array(
- /*
- * Below you can adjust the SpamAssassin configuration.
- *
- * For more information about the different configuration
- * options please check the SpamAssassin documentation at:
- * http://spamassassin.apache.org/full/3.3.x/doc/ or
- * http://spamassassin.apache.org/full/3.4.x/doc/
- *
- * ATTENTION:
- * - Don't change anything, if you don't know what you are doing!
- * - Make sure you know if you need/want the checks or not before enabling them,
- * because each SpamAssassin plugin needs resources and also time to be executed.
- */
- // On this plugin implementation rejecting SPAM is totally legal, because the SPAM check will be done
- // before the MTA accepts the mail message (before-queue filter with spamass-milter).
- //
- // reject_spam = 'YES' -> The mail will be rejected after SpamAssassin recognized it as SPAM.
- // reject_spam = 'NO' -> The mail will be tagged as SPAM and delivered to the user mailbox.
- 'reject_spam' => 'yes', // YES, NO (default)
- // This enables the usage of the bayes database.
- 'use_bayes' => 'yes', // YES (default), NO
- // If set to 'YES', global bayes database will be activated.
- // This could be used to group all users together to share bayesian filter data.
- 'site-wide_bayes' => 'yes', // YES, NO (default)
- // Cronjob to learn the bayesian database with Spam/Ham maila.
- // Normally it is sufficient to run this cronjob twice a day.
- 'cronjob_bayes_sa-learn' => array( // See man CRONTAB(5) for allowed values
- 'minute' => '*/30',
- 'hour' => '*',
- 'day' => '*',
- 'month' => '*',
- 'dweek' => '*'
- ),
- // Cronjob to cleanup the bayes database from expired tokens.
- // Normally it is sufficient to run this cronjob on a daily basis.
- 'cronjob_clean_bayes_db' => array( // See man CRONTAB(5) for allowed values
- 'minute' => '@daily',
- 'hour' => '',
- 'day' => '',
- 'month' => '',
- 'dweek' => ''
- ),
- // This enables the usage of the Auto-Whitelist (awl) factor.
- 'use_auto-whitelist' => 'no', // YES, NO (default)
- // Cronjob to cleanup the awl database from old entries.
- // Normally it is sufficient to run this cronjob on a daily basis.
- 'cronjob_clean_awl_db' => array( // See man CRONTAB(5) for allowed values
- 'minute' => '@daily',
- 'hour' => '',
- 'day' => '',
- 'month' => '',
- 'dweek' => ''
- ),
- // Perform Razor check of messages if installed.
- 'use_razor2' => 'yes', // YES, NO (default)
- // Perform Pyzor check of messages if installed.
- 'use_pyzor' => 'yes', // YES, NO (default)
- // Perform DCC (Distributed Checksum Clearinghouse) check of messages if installed.
- 'use_dcc' => 'yes', // YES, NO (default)
- // Whether RBL (Realtime Blackhole List) check should be used or not.
- // You don't need this if you already use Policyd-Weight or the Postscreen Plugin.
- 'use_rbl_checks' => 'no', // YES, NO (default)
- // This plugin will try to guess the language used in the message text.
- 'use_lang_check' => 'no', // YES, NO (default)
- /*
- * 3rd party SpamAssasin Plugins
- */
- // Plugin DecodeShortURLs - https://github.com/smfreegard/DecodeShortURLs
- 'DecodeShortURLs' => 'yes', // YES, NO (default)
- // Plugin iXhash2 - http://mailfud.org/iXhash2/
- 'iXhash2' => 'yes', // YES, NO (default)
- /*
- * Roundcube Plugins
- */
- // Adds a new button to the mailbox toolbar to mark the selected messages as Junk/Not Junk,
- // optionally detaching original messages from spam reports if the message is not junk and
- // learning the bayesian database with junk/not junk.
- 'markasjunk2' => 'yes', // YES (default), NO
- // Adds a 'Spam' tab to the 'Settings' in Roundcube to allow the users to change
- // their SpamAssassin preferences which are stored in the imscp_spamassassin database.
- 'sauserprefs' => 'yes', // YES (default), NO
- // Don't allow these settings to be overriden by the user.
- // Check webmail/plugins/sauserprefs/config.inc.php for all options.
- // Don't change anything, if you don't know what you are doing!
- 'sauserprefs_dont_override' => "'{headers}', 'use_razor1'", // default: "'{headers}', 'use_razor1'"
- /*
- * SpamAssassin and spamass-milter default configuration
- */
- // Don't change anything, if you don't know what you are doing!
- 'spamassMilterOptions' => '-e -f -I -u spamass-milter',
- // Don't change anything, if you don't know what you are doing!
- 'spamassMilterSocket' => '/var/spool/postfix/spamass/spamass.sock',
- // Don't change anything, if you don't know what you are doing!
- 'spamassassinOptions' => '--max-children=5 --sql-config --nouser-config --username=debian-spamd --port=783 --helper-home-dir=/var/lib/spamassassin'
- );
iMSCP Version: 1.1.11
php-fpm, postfix, mariadb
Debian Wheezy x64
Spamassassin version: 0.0.10
Plugins: ClamAV, Mailgraph, Monitorix, OpenDKIM, Postscreen, RecaptchaPMA, RoundcubePlugins, ServerDefaultPage, SpamAssassin -