Skip to main content

SpamAssassin sa-learn errors

Comments

10 comments

  • cPanelMichael
    Hello Jonathan,
    xyz@domain.co.uk[/EMAIL] [~/mail/domain.co.uk/abc/.spam/cur]# sa-learn --spam ./123.456.server.example.com\,S\=3542\,W\=3615\:2\,Sc

    Could you verify if the issue persists when using the full path to the sa-learn binary offered with cPanel? For example, you'd replace "sa-learn" with:
    /usr/local/cpanel/3rdparty/bin/sa-learn
    Thank you.
    0
  • jdcopelin
    Hello, If I use the path:
    /usr/local/cpanel/3rdparty/bin/sa-learn
    there are no errors. However, if I use:
    /usr/local/bin/sa-learn or /usr/bin/sa-learn
    I get the same errors as just calling sa-learn with no path. Not sure if this is any help:
    ll /usr/local/cpanel/3rdparty/bin/sa-learn lrwxrwxrwx 1 root root 48 Jun 6 2016 /usr/local/cpanel/3rdparty/bin/sa-learn -> /usr/local/cpanel/3rdparty/perl/522/bin/sa-learn* ll /usr/local/bin/sa-learn -r-xr-xr-x 1 root root 45284 Jan 29 2012 /usr/local/bin/sa-learn* ll /usr/bin/sa-learn lrwxrwxrwx 1 root root 21 Jun 20 2015 /usr/bin/sa-learn -> ../local/bin/sa-learn* ll /usr/local/cpanel/3rdparty/perl/522/bin/sa-learn -rwxr-xr-x 1 root root 45714 Aug 17 19:23 /usr/local/cpanel/3rdparty/perl/522/bin/sa-learn*
    I am not an expert on Linux file linking but it seemed to me that there were two sa-learn "executables" so I did this to confirm:
    # /usr/bin/sa-learn -V SpamAssassin version 3.3.1 # /usr/local/cpanel/3rdparty/perl/522/bin/sa-learn -V SpamAssassin version 3.4.1
    This server just has cPanel (on CentOS 6) and I don't do any manual installs/updates so should the existence of the dual-versions happen? Can I safely link the /usr/bin version to the cpanel/3rdparty one? Sorry I don't have root access to another server to compare it to. Thanks in advance for your assistance, Jonathan
    0
  • cPanelMichael
    This server just has cPanel (on CentOS 6) and I don't do any manual installs/updates so should the existence of the dual-versions happen? Can I safely link the /usr/bin version to the cpanel/3rdparty one? Sorry I don't have root access to another server to compare it to.

    Hello, You should uninstall the system's SpamAssassin package and use the one provided with cPanel instead. The following command should list the existing SpamAssassin RPMs installed on the system:
    rpm -qa|grep -i spam
    Could you let us know the output from this command? Thank you.
    0
  • :-)
    I am also experiencing this issue. And have the duplicate installs on my cpanel server. Running that command on my server yields: # rpm -qa|grep -i spam cpanel-perl-522-Mail-SpamAssassin-3.004001-13.cp1156.x86_64 # If there is only supposed to be one installed version, what is the best way to get rid of the incorrect one?
    0
  • cPanelMichael
    [QUOTE=":), post: 2391559, member: 708131">I am also experiencing this issue. And have the duplicate installs on my cpanel server. Running that command on my server yields: # rpm -qa|grep -i spam cpanel-perl-522-Mail-SpamAssassin-3.004001-13.cp1156.x86_64 # If there is only supposed to be one installed version, what is the best way to get rid of the incorrect one?
    Hello, The output suggests a manually compiled version of SpamAssassin on the system. You'd need to browse to the directory where you manually compiled SpamAssassin and use the "make uninstall" command to remove it. Once you do that, you may also want to run the following command to make sure the version installed with cPanel is properly installed:
    /scripts/check_cpanel_rpms
    Thank you.
    0
  • :-)
    Hello, The output suggests a manually compiled version of SpamAssassin on the system. You'd need to browse to the directory where you manually compiled SpamAssassin and use the "make uninstall" command to remove it. Once you do that, you may also want to run the following command to make sure the version installed with cPanel is properly installed:
    /scripts/check_cpanel_rpms
    Thank you.

    All well and good, except I have not manually installed SpamAssassin on this system. And other than the staff at the hosting center, I am the only person here who has the access and ability to install packages on the server since it initially went online. The staff at the hosting center claimed, when asked about this dual install long ago, that all of their cpanel servers have the dual installation of SpamAssassin - that it comes that way with the initial cpanel installation, and that it is not safe to remove the extra install. The dual install goes back years (2012?), but only became overly problematic with a recent cpanel automatic upgrade. I searched the server but found no evidence of any manual SpamAssassin compilation directory. And thus no place where one could do the "make uninstall" that you recommend. Further suggestions welcome and appreciated.
    0
  • cPanelMichael
    Hello, Could you open a support ticket using the link in my signature so we can take a closer look at the system? You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • jdcopelin
    Hello, You should uninstall the system's SpamAssassin package and use the one provided with cPanel instead. The following command should list the existing SpamAssassin RPMs installed on the system:
    rpm -qa|grep -i spam
    Could you let us know the output from this command? Thank you.

    Hello, Sorry for the late reply I get the same output as the other user posted:
    root@lion [~]# rpm -qa|grep -i spam cpanel-perl-522-Mail-SpamAssassin-3.004001-13.cp1156.x86_64
    I do not install any software on this server nor compile anything. Thanks for your continued assistance. Regards, Jonathan
    0
  • :-)
    Hello, Could you open a support ticket using the link in my signature so we can take a closer look at the system? You can post the ticket number here so we can update this thread with the outcome. Thank you.

    Support ticket 8181337 opened.
    0
  • cPanelMichael
    To update, it was determined the additional SpamAssassin installation came from the custom image used during the cPanel installation process. Removing or disabling those third-party binaries and then using the following path addresses the issue:
    /usr/local/cpanel/3rdparty/bin/sa-learn
    Thank you.
    0

Please sign in to leave a comment.