Jim Moyes wrote:
> Sorry = I should have said NO access to *.cf files
>
> I use a simple blacklist/whitelist in a user_prefs file as I have access to 
> any *.cf
> files.
>
> Is there a rule/line I can add which will mark as spam any message which has 
> been
> sent to a user which contains a number 
>
> ie = blacklist_to *0 - [EMAIL PROTECTED]
>
> We have only 6/7 mail addresses which are "proper" user names but we get an
> assortment of generated names which are non existent on our system. I assume 
> these
> cannot be filtered so only known users get "clean" mail and the rest are 
> marked as
> Spam.
>   

There's no support for any regular expressions at the user_prefs level,
unless the system admin has enabled the allow_user_rules at the
site-wide configuration level.

The basic problem is that any kind of regular expression has the
potential to be abused by a malicious rule-writer and execute code. In
general, SA tries to protect against this, and even if it fails this
isn't a problem, as spamd is going to be running as you at the time.
However, this setting is a basic protection in case other protections
break down.

Really, I would talk to your site admin and see if they'd be willing to
get rid of the wildcard email alias and only alias the proper usernames
into your account. It'd be much better for their systems if the mail was
never accepted in the first place.

Failing that, I might look and see if you can create a .procmailrc and
use procmail rules to /dev/null the invalid mail.


Reply via email to