On Sat, 2009-04-04 at 10:45 +0100, Jeremy Morton wrote:
> I'm running Spamassassin on my server because of my cPanel installation 
> and have been for ages.  It's been working GREAT for blocking spam, and 
> I'm happy about that.  However, of late, I've been joe-jobbed majorly, 
> and I'm receiving thousands of bounceback messages in probably 20+ 
> different languages that I don't want.  :-(  I'm prepared to lose 
> bounceback messages to my genuine e-mails, to avoid all these.
> 
> So, I have 2 questions.
> 
> 1. Is it possible to have a Spamassassin rule that considers subjects 
> that contain a character glyph not used by the English or French 
> languages (obviously punctuation, numbers, and some other stuff would 
> also be allowed) to be spam?

ok_locales en    # all Western char sets in general

Also see the Language Options [1] section in the docs. Enabling this
will score character sets used in mail which are not explicitly allowed
in the list. Despite the name, 'en' applies to *all* western charsets,
including locale specific chars like in French, German, Norway, etc. Not
limited to the Subject only, but scores on the body and MIME parts, too.


> 2. Is there a Spamassassin rule that tries to catch any bounceback 
> message (unfortunately in any language, I am getting bounceback messages 
> in most languages known to mankind) to be spam?

whitelist_bounce_relays  your.outgoing.smtp

See the VBounce documentation [2] and 20_vbounce.cf on your machine.
Simply define all your outgoing SMTP servers to enable the VBounce
plugin and rescue legit bounce messages. One server per line, multiple
instances allowed.

Please note, that the VBounce plugin is *not* intended to mark back-
scatter as spam. Instead, filter on the rule hit and deliver it into a
dedicated folder. From 20_vbounce.cf:

  If you use this, set up procmail or your mail app to spot the
  "ANY_BOUNCE_MESSAGE" rule hits in the X-Spam-Status line, and move
  messages that match that to a 'vbounce' folder.

Naturally, it doesn't catch all bounces, but it helps a great deal. Also
it does hit some daemon auto-generated, non-backscatter.


Both these options can be set site-wide in local.cf and on a per-user
basis in user_prefs.

  guenther


[1] 
http://spamassassin.apache.org/full/3.2.x/doc/Mail_SpamAssassin_Conf.html#language_options
[2] 
http://spamassassin.apache.org/full/3.2.x/doc/Mail_SpamAssassin_Plugin_VBounce.html

-- 
char *t="\10pse\0r\0dtu...@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}

Reply via email to