Posts by timtatam

    Hi guys


    I have the following situation and dont know if its a bug or if i missed something out:

    • I setup spamassassin with a global score of 5
    • for one email address [email protected] I set a lower score of 4 via Roundcube (confirmed set in DB)
    • now I have a catch all for domain @cc.com which is forwarded to [email protected]
    • emails from this catch all address are still having a spam threshold of 5

    Is this behavior correct as I havent made a manual entry for this domain in the imscp_spamassassin database? If yes that means for "inner server" mail transport there is no SA active?


    Debian 8.5
    imscp 1.3.0
    Spamassassin plugin 1.1.0
    other plugins: ClamAV, Mailgraph, OpenDKIM, Panel Redirect, Postscreen, Roundcube, SA

    Hi @Ninos


    I substituted the methode you provide, but now I get the following error:

    Code
    1. An unexpected error occurred: Modules::Plugin::_call: Global symbol "$self" requires explicit package name at /var/www/imscp/gui/plugins/SpamAssassin/backend/SpamAssassin.pm line 1331, <$fh> line 370.Global symbol "$self" requires explicit package name at /var/www/imscp/gui/plugins/SpamAssassin/backend/SpamAssassin.pm line 1332, <$fh> line 370.Compilation failed in require at /var/www/imscp/engine/PerlLib/Modules/Plugin.pm line 349, <$fh> line 370.

    The first code line which causes the error is the following from your method

    Code
    1. next if($_ eq 'pyzor' && $self->{'config'}->{'use_pyzor'} ne 'yes');

    Oh, sorry. Here´s thre requested info from the db:


    column plugin_config

    Code
    1. {"use_bayes":"yes","site_wide_bayes":"no","cronjob_bayes_sa-learn":{"minute":"*","hour":"*\/12","day":"*","month":"*","dweek":"*"},"cronjob_clean_bayes_db":{"minute":"@daily","hour":"","day":"","month":"","dweek":""},"use_auto-whitelist":"no","cronjob_clean_awl_db":{"minute":"@daily","hour":"","day":"","month":"","dweek":""},"use_razor2":"no","use_pyzor":"no","use_dcc":"no","use_rbl_checks":"no","use_lang_check":"no","heinlein-support_sa-rules":"yes","DecodeShortURLs":"yes","iXhash2":"yes","markasjunk2":"yes","sauserprefs":"yes","sauserprefs_dont_override":"'{headers}', 'use_razor1', 'bayes_auto_learn_threshold_nonspam', 'bayes_auto_learn_threshold_spam'","spamassMilter_config":{"reject_spam":"-1","check_smtp_auth":"yes","networks":[],"spamassMilterOptions":"-e -f -u spamass-milter","spamassMilterSocket":"\/var\/spool\/postfix\/spamass\/spamass.sock"},"spamassassinOptions":"--max-children=5 --sql-config --nouser-config --username=debian-spamd --port=783 --helper-home-dir=\/var\/lib\/spamassassin"}


    column plugin_config_prev

    Code
    1. {"use_bayes":"yes","site_wide_bayes":"no","cronjob_bayes_sa-learn":{"minute":"*","hour":"*\/12","day":"*","month":"*","dweek":"*"},"cronjob_clean_bayes_db":{"minute":"@daily","hour":"","day":"","month":"","dweek":""},"use_auto-whitelist":"no","cronjob_clean_awl_db":{"minute":"@daily","hour":"","day":"","month":"","dweek":""},"use_razor2":"no","use_pyzor":"no","use_dcc":"no","use_rbl_checks":"no","use_lang_check":"no","heinlein-support_sa-rules":"yes","DecodeShortURLs":"yes","iXhash2":"yes","markasjunk2":"yes","sauserprefs":"yes","sauserprefs_dont_override":"'{headers}', 'use_razor1', 'bayes_auto_learn_threshold_nonspam', 'bayes_auto_learn_threshold_spam'","spamassMilter_config":{"reject_spam":"-1","check_smtp_auth":"yes","networks":[],"spamassMilterOptions":"-e -f -u spamass-milter","spamassMilterSocket":"\/var\/spool\/postfix\/spamass\/spamass.sock"},"spamassassinOptions":"--max-children=5 --sql-config --nouser-config --username=debian-spamd --port=783 --helper-home-dir=\/var\/lib\/spamassassin"}

    Hi guys


    I just tried to install Spamassassin on my system, but got the following error message:


    An unexpected error occurred:


    Plugin::SpamAssassin::_checkRequirements: The `pyzor` package is not installed on your system
    Plugin::SpamAssassin::_checkRequirements: The `razor` package is not installed on your system



    I disabled the use of razor2 and Pyzor ind the config.php prior the installation of the plugin. I assume this error should not occur as both are optional?


    my system data:
    Debian 8.5i
    MSCP 1.3.0
    Plugins installed: ClamAV, Mailgraph, OpenDKIM, PanelRedirect, Postscreen, RoundcubePlugins)
    PHP: PHP-FPM


    Log shows that:

    Code: Plugin_module_SpamAssassin.log
    1. [Wed Aug 17 19:57:44 2016] [fatal] iMSCP::DbTasksProcessor::_process: Plugin::SpamAssassin::_checkRequirements: The `pyzor` package is not installed on your system at /var/www/imscp/engine/PerlLib/iMSCP/DbTasksProcessor.pm line 447, <$fh> line 370.


    Glad for any help.


    Cheers
    Timo