Spam Question

Discussion in 'Installation/Configuration' started by b00gz, Nov 27, 2007.

  1. b00gz

    b00gz New Member

    I searched for this and I am sure the answer is somewhere on the forums but I was unable to find it

    I keep adding the lines below to /var/www/web#/user/username/.spamassassin.rc to move spam but when I change certain things the file gets rebuilt and I lose the settings. I only want to change this for a few users and not globally. Any ideas?

    :0:
    * ^X-Spam-Status: Yes
    /var/www/web#/user/username/Maildir/.Junk/cur
     
  2. falko

    falko Super Moderator Howtoforge Staff

    You must change the template file in /root/ispconfig/isp/conf, or even better create your customized template in /root/ispconfig/isp/conf/customized_templates (so that it will be preserved when you update ISPConfig).
     
  3. b00gz

    b00gz New Member

    OK so I made a custom template how do I make the specific users use it and also how can I make it so it goes to their maildir ... so instead of creating a template for each user have it specify their junk email folder. Below is the code to my custom template.

    # 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
    | /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamassassin --prefs-file={PREFS_FILE}

    # Mails with a score of 15 or higher are almost certainly spam (with 0.05%
    # false positives according to rules/STATISTICS.txt). Let's put them in a
    # different mbox. (This one is optional.)
    #:0:
    #* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
    #/dev/null

    # 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/'
    }
     
  4. b00gz

    b00gz New Member

    Any ideas?
     
  5. b00gz

    b00gz New Member

    Sorry guys I am still looking for this answer?
     
  6. falko

    falko Super Moderator Howtoforge Staff

    I don't think you can have individual recipes for each user...
     

Share This Page