Byteplant Forum

Home » CleanMail Support » CleanMail SpamAssassin Filter » SpamAssassin
SpamAssassin [message #572] Fri, 04 March 2005 22:04
the_stranger
Messages: 8
Registered: March 2005
Junior Member
Is there a way to config Spamassassin to block a specific recipient address?
Re: SpamAssassin [message #573 is a reply to message #572] Sat, 05 March 2005 04:24 Go to previous message
Heidner
Messages: 121
Registered: February 2005
Senior Member
If you do not want ANY mail going to that recipient, you could add the address to the SPAM TRAP filter. That would result in the e-mail being considered spam AND it being deleted....
Re: SpamAssassin [message #574 is a reply to message #572] Sat, 05 March 2005 05:17 Go to previous message
smorris
Messages: 10
Registered: December 2004
Junior Member
I think there's a big difference there though... You don't necessarily want the e-mails going to a user to be learned as spam (you may, but be careful). Because that will affect everyone going forward.

If you are trying to filter all inbound mail going to a specific user, wouldn't it be easier just to delete the user-id, and that way people will get a user not found error?



Scott Morris
swm@emanon.com
Re: SpamAssassin [message #575 is a reply to message #572] Sun, 06 March 2005 09:49 Go to previous message
Heidner
Messages: 121
Registered: February 2005
Senior Member
I think you could also add a second spam trap filter... call it the black hole, setup the receipents name as one of the "honeypot" addresses, then select your accept,reject,delete,deliver rules.

If you don't want spam assassin to learn, I am pretty sure you could change the command line to some other routine that will set the errorlevel to zero... perhaps a simle "dir" command?

OR you could create an external filter

1) uncheck the "Use same address as the previous filter"
2) add in the name of the addressee that you want to block e-mail for
3) in command line screen - set errorlevel=1 (I think exit code is checked as errorlevel) ??
4) In the select filter actions screen - set up a rule to match the errorlevel above

This filter should probably the VERY last filter -- because it changes the filter processing rules (see step 1 and 2).
Re: SpamAssassin [message #576 is a reply to message #572] Mon, 07 March 2005 10:53 Go to previous message
support
Messages: 919
Registered: April 2004
Senior Member
You can also use the blacklist_to setting of SpamAssassin. Add the following line to your local.cf file (in the sa\ruleset subdirectory of your installation):

blacklist_to offending_recipient_address



Customer Support
Byteplant GmbH
Re: SpamAssassin [message #577 is a reply to message #574] Wed, 18 May 2005 11:25 Go to previous message
akhoudary
Messages: 3
Registered: May 2005
Junior Member
What is the difference between using the line in the local.cf file and using the black list field in the SpamAssassin wizard, if the same why should I use this line command.

Re: SpamAssassin [message #578 is a reply to message #577] Wed, 18 May 2005 11:32 Go to previous message
support
Messages: 919
Registered: April 2004
Senior Member
> What is the difference between using the line in the local.cf
> file and using the black list field in the SpamAssassin wizard,
> if the same why should I use this line command.

The black list field in the SpamAssassin setup dialog of the NoSpamToday! admin app sets "blacklist_from", and not "blacklist_to".

blacklist_to checks the recipient address (To: or Cc: header fields), you can only set this with a text editor, adding a line to local.cf

blacklist_from checks the sender address (From: header field, and the envelope-sender of MAIL TO command), you can set this either using the admin app, or with a text editor, changing the blacklist_from line in local.cf.



Customer Support
Byteplant GmbH
Previous Topic: Porn Rule
Next Topic: Misclasified as spam
Goto Forum:
  


Current Time: Sat Dec 03 14:38:02 CET 2016