config spamassassin

Discussion in 'Server Operation' started by hotchilli, Jul 7, 2006.

  1. hotchilli

    hotchilli New Member

    I have these two files in my home dir as you can see that are partly confiured.

    I have seen the SpamAssassin-ClamAV-Procmail-Howto , although I have procmail installed can I still use the howto even though spamassassin and procmail are already installed?

    At the moment all messages are saying:

    "Spam detection software, running on the system "hotchilli.coco.net", has
    identified this incoming email as possible spam. The original message
    has been attached to this so you can view it (if it isn't spam) or label
    similar future email. If you have any questions, see
    the administrator of that system for details."




    here is spamassassin.rc

    # SpamAssassin sample procmailrc
    #
    # Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc'
    # if you use the spamc/spamd combination)
    # The condition line ensures that only messages smaller than 250 kB
    # (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
    # isn't bigger than a few k and working with big messages can bring
    # SpamAssassin to its knees.
    :0fw
    * < 256000
    | /usr/bin/spamassassin --prefs-file=/home/hotchilli/.user_prefs

    # All mail tagged as spam (eg. with a score higher than the set threshold)
    # is moved to "/dev/null".
    #:0:
    #* ^X-Spam-Status: Yes
    #/dev/null

    # Work around procmail bug: any output on stderr will cause the "F" in "From"
    # to be dropped. This will re-add it.
    :0
    * ^^rom[ ]
    {
    LOG="*** Dropped F off From_ header! Fixing up. "

    :0 fhw
    | sed -e '1s/^/F/'
    }

    ------------------------------------------------------------------------------------

    And here is user_prefs

    # SpamAssassin user preferences file. See 'perldoc Mail::SpamAssassin::Conf'
    # for details of what can be tweaked.
    #*
    #* Note: this file is not read by SpamAssassin until copied into the user
    #* directory. At runtime, if a user has no preferences in their home directory
    #* already, it will be copied for them, allowing them to perform personalised
    #* customisation. If you want to make changes to the site-wide defaults,
    #* create a file in /etc/spamassassin or /etc/mail/spamassassin instead.
    ###########################################################################

    # How many hits before a mail is considered spam.
    required_score 5.0

    rewrite_header Subject ***SPAM***

    # Whitelist and blacklist addresses are now file-glob-style patterns, so
    # "[email protected]", "*@isp.com", or "*.domain.net" will all work.
    # whitelist_from [email protected]

    # Add your own customised scores for some tests below. The default scores are
    # read from the installed spamassassin rules files, but you can override them
    # here. To see the list of tests and their default scores, go to
    # http://spamassassin.org/tests.html .
    #
    # score SYMBOLIC_TEST_NAME n.nn

    # Speakers of Asian languages, like Chinese, Japanese and Korean, will almost
    # definitely want to uncomment the following lines. They will switch off some
    # rules that detect 8-bit characters, which commonly trigger on mails using CJK
    # character sets, or that assume a western-style charset is in use.
    #
    # score HTML_COMMENT_8BITS 0
    # score UPPERCASE_25_50 0
    # score UPPERCASE_50_75 0
    # score UPPERCASE_75_100 0


    ---------------------------
    hotchilli
     
    Last edited: Jul 8, 2006
  2. falko

    falko Super Moderator ISPConfig Developer

    Yes, no problem. You don't have to install procmail and SpamAssassin again, just concentrate on the procmail recipes.
     

Share This Page