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

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux