SpamAssassin

  • Hello ;


    Once the parameter changed in the plugin configuration file, you must update the plugin list in the plugin management interface to trigger a reconfiguration. Restarting SA manually is a no go because the configuration has not been updated.

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

  • Please have a look at the log-files oft the plugin

  • this says the log file:


    [Fri Nov 27 15:23:29 2015] [debug] iMSCP::File::save: Saving file /etc/imscp/cron.d/working/imscp
    [Fri Nov 27 15:23:29 2015] [debug] iMSCP::File::mode: Changing mode for /etc/imscp/cron.d/working/imscp to 640
    [Fri Nov 27 15:23:29 2015] [debug] iMSCP::File::owner: Changing owner and group for /etc/imscp/cron.d/working/imscp to 0:0
    [Fri Nov 27 15:23:29 2015] [debug] iMSCP::File::copyFile: Copying file /etc/imscp/cron.d/working/imscp to /etc/cron.d/imscp
    [Fri Nov 27 15:23:29 2015] [debug] iMSCP::File::copyFile: Changing mode for /etc/cron.d/imscp to 640
    [Fri Nov 27 15:23:29 2015] [debug] iMSCP::File::copyFile: Changing owner and group for /etc/cron.d/imscp to 0:0
    [Fri Nov 27 15:23:29 2015] [debug] iMSCP::Execute::execute: Executing command: rm -f /etc/spamassassin/DecodeShortURLs.*
    [Fri Nov 27 15:23:29 2015] [debug] iMSCP::Execute::getExitCode: External command exited with value 0
    [Fri Nov 27 15:23:29 2015] [debug] iMSCP::Execute::execute: Executing command: rm -f /etc/spamassassin/iXhash2.*
    [Fri Nov 27 15:23:29 2015] [debug] iMSCP::Execute::getExitCode: External command exited with value 0
    [Fri Nov 27 15:23:29 2015] [debug] iMSCP::Execute::execute: Executing command: /etc/init.d/spamassassin status
    [Fri Nov 27 15:23:29 2015] [debug] iMSCP::Execute::getExitCode: External command exited with value 3
    [Fri Nov 27 15:23:29 2015] [debug] iMSCP::Execute::execute: Executing command: /etc/init.d/spamassassin start
    [Fri Nov 27 15:23:38 2015] [debug] iMSCP::Execute::getExitCode: External command exited with value 98
    [Fri Nov 27 15:23:38 2015] [fatal] iMSCP::Debug::__ANON__: Could not restart the spamassassin service: iMSCP::Provider::Service::Sysvinit::_exec: server socket setup failed, retry 1: spamd: could not create IO::Socket::INET6 socket on [::1]:783: Cannot assign requested address
    server socket setup failed, retry 2: spamd: could not create IO::Socket::INET6 socket on [127.0.0.1]:783: Address already in use
    server socket setup failed, retry 3: spamd: could not create IO::Socket::INET6 socket on [127.0.0.1]:783: Address already in use
    server socket setup failed, retry 4: spamd: could not create IO::Socket::INET6 socket on [127.0.0.1]:783: Address already in use
    server socket setup failed, retry 5: spamd: could not create IO::Socket::INET6 socket on [127.0.0.1]:783: Address already in use
    server socket setup failed, retry 6: spamd: could not create IO::Socket::INET6 socket on [127.0.0.1]:783: Address already in use
    server socket setup failed, retry 7: spamd: could not create IO::Socket::INET6 socket on [127.0.0.1]:783: Address already in use
    server socket setup failed, retry 8: spamd: could not create IO::Socket::INET6 socket on [127.0.0.1]:783: Address already in use
    server socket setup failed, retry 9: spamd: could not create IO::Socket::INET6 socket on [127.0.0.1]:783: Address already in use
    spamd: could not create IO::Socket::INET6 socket on [127.0.0.1]:783: Address already in use at /var/www/imscp/engine/PerlLib/iMSCP/Service.pm line 237.

  • [Fri Nov 27 15:23:38 2015] [fatal] iMSCP::Debug::__ANON__: Could not restart the spamassassin service: iMSCP::Provider::Service::Sysvinit::_exec: server socket setup failed, retry 1: spamd: could not create IO::Socket::INET6 socket on [::1]:783: Cannot assign requested address


    So here the socket was already in use. You could kill the process and reactivate the plugin. Than it should work :)

  • Open the config file of the plugin /var/www/imscp/gui/plugins/SpamAssassin/config.php and go the end and change the last line (add --ipv4-only) to this:


    Code
    1. 'spamassassinOptions' => '--max-children=5 --sql-config --nouser-config --username=debian-spamd --port=783 --ipv4-only --helper-home-dir=/var/lib/spamassassin'

    Go to the i-MSCP panel -> Settings -> Plugins management and click on 'Update plugins'.


    Check if it is working.

  • If you want I could check and fix your problem via Teamviewer. Just send me your ID and Password as PM.

  • Hello,
    I have the same problem with the update of the plugins. After changed reject_spam = yes in config.php nothing happens.
    What was the solution?
    Thank
    Debian 3.16.7-ckt20-1+deb8u4
    Apache 2.4.10
    i-mscp 1.2.17 Build: 20160312
    Plugin spamassassin 1.0.7

  • Go to the i-MSCP panel -> Settings -> Plugins management and click on 'Update plugins'.