sej7278

Member
Jan 12, 2003
20
0
151
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).
 
Last edited:

hormigo

Well-Known Member
Sep 9, 2002
108
0
166
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.
Excellent idea, i need that too
 

Juanra

Well-Known Member
Sep 22, 2001
777
0
316
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 [email protected]
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.
 

sej7278

Member
Jan 12, 2003
20
0
151
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.....
 

sej7278

Member
Jan 12, 2003
20
0
151
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 [email protected]' 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 [email protected] now.....