Re: need help in writing spamassassin rules on FC3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ankush Grover wrote:
> hey friends,
>
> I am using postfix 2.1.5 on Fc3 with MailScanner 4.44 version +
> spamassassin 3.1.1 + clamav 0.88.3 + Mailwatch + Isoqlog + Fetchmail +
> Dovecot.
>
> The problem I am facing is that I am receiving lot of spams with the
> subject as "Viagra or Vijagra"  these are not alone words mostly it is
> like this "sxafdviagra or wxxxweessfsdvijara" any words but the
> subject line do contains "Viagra or Vijagra" so If I can write a rule
> which treat the mail as spam if it contains "Viagra or Vijagra" in the
> subject line.
>
> I am not a programmer by any means but I know through perl regular
> expressions one can write such  a rule, but so far I am not able to
> write such a rule.
>
> Any kind of guidance or help will be very fruitful.
>
> Thanks & Regards
>
> Ankush Grover
>
You may want to take a look in pregmatching, such as (or similar,
haven't tried this):

subject VIAGRA_SPAM_1 /^.*V[a-z]*i[a-z]*a[a-z]*g[a-z]*r[a-z]*a.*$/i
describe VIAGRA_SPAM_1 This is probably a viagra spam message
score VIAGRA_SPAM_1 10.0

I usually, with these new spam threats, have sa-learn parse a couple of
messages, learning those to be regarded to as spam.

It gets you rid of almost every spam message, as I have received 48 spam
mails today alone, and just needed to remove 1 manually.

Hope this helps,

Kind regards,

Jeroen van Meeuwen

-- 
Jeroen van Meeuwen, LPIC-1, MCP
http://www.kanarip.com/
C6B0 7FB4 43E6 CDDA D258  F70B 28DE 9FDA 9342 BF08


Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux