SpamAssassin

  • Version 1.0.3 has been released in plugin store.

    CHANGELOG

    • Fixed: imscp_panel service must be restarted to force flush of any opcode cache
  • Hi,


    i try to install the plugin. It shows Installation in progress.


    On shell i get this error:


    Code
    1. root@ispcp:~# perl /var/www/imscp/engine/imscp-rqst-mngr
    2. [FATAL] iMSCP::Debug::__ANON__: Could not restart the spamassassin service: Plugin::SpamAssassin::_updateSpamassassinRules: Can't locate Net/DNS/RR/CNAME.pm: Permission denied at (eval 65) line 2.
    3. RR at octet 48 corrupt/incomplete at /usr/bin/sa-update line 1306.
    4. Can't locate Net/DNS/RR/TXT.pm: Permission denied at (eval 66) line 2.
    5. RR at octet 50 corrupt/incomplete at /usr/bin/sa-update line 1306.
    6. channel: no 'mirrors.updates.spamassassin.org' record found, channel failed at /var/www/imscp/engine/PerlLib/iMSCP/Service.pm line 237.
    7. root@ispcp:~#


    Any idea ?


    Best wishes


    Niels

  • @sfsolutions


    First, the problem doesn't comes from the SpamAssassin service restart attempt. It comes from the sa-update tasks which failed with an exit status greater than 4. The error is reported at the iMSCP::Service level because the error is not handled correctly in the plugin backend script (ATM the error is ignored)... Whatever, I'll fix that in next release but for the moment:



    Distro? Codename?


    Result of the following command?


    Code
    1. # getent passwd |grep 'debian-spamd'


    @Ninos


    When you release a new vesion, don't forget to bu

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Here, in a fresh debian 8 install, it appears these messages:


    spamd[2394]: config: failed to parse line, skipping, in "(no file)": use_dcc 0



    Does anyone know something about it?


    Thanks

  • Hi,


    which versions do you use (i-MSCP, SpamAssassin)?


    Give us the setting 'use_dcc' in /var/www/imscp/gui/plugins/SpamAssassin


    And also the $global settings in mySQL imscp_spamassassin.userpref


    Greets

  • Hi Backdraft007,


    i-MSCP is on 1.2.9


    SpamAssassin Server version 3.3.2
    running on Perl 5.14.2
    with SSL support (IO::Socket::SSL 1.76)
    with zlib support (Compress::Zlib 2.033)


    root@hs2:/var/www/imscp/gui/plugins/SpamAssassin# cat config.php |grep use_dcc
    'use_dcc' => 'no',



    mysql> select * from userpref;
    +----------+------------------------------------+----------------+--------+
    | username | preference | value | prefid |
    +----------+------------------------------------+----------------+--------+
    | $GLOBAL | bayes_auto_learn | 1 | 6 |
    | $GLOBAL | bayes_auto_learn_threshold_nonspam | 0.1 | 7 |
    | $GLOBAL | bayes_auto_learn_threshold_spam | 12.0 | 8 |
    | $GLOBAL | report_safe | 1 | 3 |
    | $GLOBAL | required_score | 5 | 1 |
    | $GLOBAL | rewrite_header Subject | *****SPAM***** | 2 |
    | $GLOBAL | score USER_IN_BLACKLIST | 10 | 14 |
    | $GLOBAL | score USER_IN_WHITELIST | -6 | 15 |
    | $GLOBAL | skip_rbl_checks | 1 | 10 |
    | $GLOBAL | use_auto_whitelist | 0 | 9 |
    | $GLOBAL | use_bayes | 1 | 4 |
    | $GLOBAL | use_bayes_rules | 1 | 5 |
    | $GLOBAL | use_dcc | 0 | 13 |
    | $GLOBAL | use_pyzor | 0 | 12 |
    | $GLOBAL | use_razor2 | 0 | 11 |
    +----------+------------------------------------+----------------+--------+
    15 rows in set (0.00 sec)


    mysql>


    Thank you Mr.


    Regards,

  • @Backdraft007


    A little PR maybe ;) I'm busy with v2 specifications (I'm on the API part atm)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @Nuxwin I will try it in the next days. I have to read some pages about DCC. :)
    I think it is not required and can remove from Plugin.
    Afaik it is now commercial.


    Like I wrote, I have to read some pages. :)