can we block mails with perticular subject line

shuttlebox shuttlebox at gmail.com
Wed Jun 21 13:26:39 IST 2006


On 6/21/06, Raj <rajlinux at gmail.com> wrote:
> Can we block any particular subject line in MailScanner
> i mean if subject have words like Viagra, sex, fuck etc.. can we block them ?
> MailScanner is working very well blocking with extension like *.exe.
>
> I am facing too many problem with spams these days. Some time
> spamassassin fails to recognise the spams. So can we block them with
> its subject line.
>
> it is possible on qmail by QTRAP. it blockes mails with customised words.
>
> i gone through docs of MS, But fails to find such function out of it.
> If this is possible on MS that will be great.

Just make your own SA rule (in any .cf file):

describe local_sub Banned subject words
header local_sub Subject =~ /\bviagra|fuck|sex\b/i
score local_sub 0.1

Check with spamassassin --lint for syntax errors.

-- 
/peter


More information about the MailScanner mailing list