The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Making SpamAssassin useful

Discussion in 'General Discussion' started by sej7278, May 2, 2003.

  1. sej7278

    sej7278 Member

    Joined:
    Jan 12, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    OK, I'm getting really fed-up of spam, so thought I'd give CP6.4's new SA setup a go - the old 5.3 didn't really allow configuration.

    I like that you can now configure it not to change the subject line and add whitelists etc.

    What would really make it useful is to be able to whitelist the To: address as well.

    For example, I want SA to do it's stuff on my Email address, but other users within my domain don't like it.

    There doesn't seem to be any way to apply SA to only certain Email addresses or users within a domain/account.

    Is there a way to whitelist a To: address?

    Also, the only way I can think of really making SA useful is if it can do either of the following:

    A). delete the spam rather than mark it.

    B). move suspected spam to a different INBOX (e.g. a spam box you only check once a month) I don't want to use client-side filtering to do this, I don't want the spam to leave the server.

    I would think procmail (or exim) could do this, but SA is executed at the end of the delivery process, so filters/forward files have already been processed.

    Other than that I'm about ready to make my 5 year Email address into an autoresponder that says "I have changed my Email address to...." and use another address - but do you think spammers would read the bounce messages and harvest my new address (or cause a huge mailqueue due to them using non-existant addresses).
     
    #1 sej7278, May 2, 2003
    Last edited: May 2, 2003
  2. hormigo

    hormigo Well-Known Member

    Joined:
    Sep 9, 2002
    Messages:
    108
    Likes Received:
    0
    Trophy Points:
    16
    Excellent idea, i need that too
     
  3. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Spain
    This would be a /etc/vfilters/domain.com file:

    ---8<-------
    # Exim filter <<== do not edit or remove this line!

    if $header_subject begins "[SPAM]" then
    deliver spam@domain.com
    endif
    ---8<-------

    With a bit of imagination you could even:

    - take the subject tag as defined by the user from his control panel;

    - have a list of users in that domain and what address(es) their spam should be sent to, if any.
     
  4. sej7278

    sej7278 Member

    Joined:
    Jan 12, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    That's the sort of thing we'd like to do, but the exim filters file gets read BEFORE SpamAssassin is run, not AFTER.

    Anyway, a better search would be for the X-Spam-Level header, not the Subject.....
     
  5. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Spain
    Argh you're right...

    So this would require changing exim's configuration serverwide it seems...
     
  6. sej7278

    sej7278 Member

    Joined:
    Jan 12, 2003
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Well I've found how to effectively turn SA off for some users - you can use the whitelist_to (or more_spam_to / all_spam_to) line.

    I've added 'whitelist_to mum@mydomain.com' to my ~/.spamassassin/user_prefs file so that my mother gets all her Emails without SA mucking with them.

    Had to SSH in and do it manually, it's not in CPanel.

    Seems to work.

    Just got to figure out how to make it deliver to spam@mydomain.com now.....
     
Loading...
Similar Threads - Making SpamAssassin useful
  1. sandstorm
    Replies:
    2
    Views:
    275

Share This Page