does spam check works

Discussion in 'Installation/Configuration' started by pgh001, Aug 19, 2011.

  1. pgh001

    pgh001 New Member

    Hi,

    How can I check is spam software is working?
    Because since a few days i'll get things like:

    "Registreer bij King Spin Club en geniet van een eersteklas behandeling
    http://www.kingsspellen.com/nl/?id648d6b8471103507fe42eb09a759bd260d49cb"

    Regards, Patrick.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Are there any errors in your mail log (in the /var/log/ directory)?
     
  3. pgh001

    pgh001 New Member

    There are no errors.

    But how do I know if spamassin is working?
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Does
    Code:
    /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamassassin --lint
    return any errors?

    Also, can you try to update your SpamAssassin rules by running
    Code:
    /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/sa-update --no-gpg
    ?
     
  5. pgh001

    pgh001 New Member

    I did a sa-update and when running:

    /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamassassin --lint

    I get:

    Subroutine IO::Socket::INET6::AF_INET6 redefined at /usr/lib/perl5/5.8.8/Exporter.pm line 65.
    at /usr/lib/perl5/vendor_perl/5.8.8/IO/Socket/INET6.pm line 16
    Subroutine Net::DNS::Resolver::Base::AF_INET6 redefined at /usr/lib/perl5/5.8.8/Exporter.pm line 65.
    at /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/Net/DNS/Resolver/Base.pm line 66


    But is there a way to test this?
    Can I send a fake spam message?
     
  6. falko

    falko Super Moderator Howtoforge Staff

  7. madmucho

    madmucho Member

    You can check if your spam assassin working if in incoming messages header is 'x-spam' section with no error, if is not there you spamassasin dont work. Easy can be checked.
     
  8. Ovidiu

    Ovidiu Active Member

    what if the two commands given above by falko don't return anything and I can't see any x-spam headers?
     
  9. macguru

    macguru Member HowtoForge Supporter

    I've got the same problem since I upgraded to the latest 2.2.40.
    /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamassassin --lint
    return nothing

    /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/sa-update --no-gpg
    seem to run successfully (no error messages).

    I found no error messages in /var/log/mail related to spamassassin.

    Anyone have any clue what might go wrong?
     
  10. falko

    falko Super Moderator Howtoforge Staff

    This is a good thing, it means there are no errors with your SpamAssassin configuration. :)
     
  11. Ovidiu

    Ovidiu Active Member

    just a quick question: is that path still valid for ispcfg 3.0.4.4?
     
  12. falko

    falko Super Moderator Howtoforge Staff

    No, ISPConfig 3 uses the system's Spamassassin, so the path is probably something like

    /usr/bin/sa-update

    or

    /usr/sbin/sa-update
     
  13. Ovidiu

    Ovidiu Active Member

    oh shoot, I am posting in the ISPCFG2 forum :-(
    really sorry for that.
     

Share This Page