Spamassassin rules based on IP

Hugo van der Kooij hvdkooij at vanderkooij.org
Wed Apr 23 06:06:40 IST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gottschalk, David wrote:
| Can anyone give me any insight into how to do this?
|
| I can't determine how I would go about this.

One idea to get something done.

Write a SA  rule to catch the condition for which you want to bypass a
rule. Then write a compound rule to counteract the effect of the normal
SA rule.

Say you have a rule to give 3 points if the string "many dollars" is
present. Then you happen to use this string a lot in outgoing mail
because mortgages is your business and you need to remind your customers
to pay their bill.

So you write a rule to detect it is an outgoing message. Then write a
rule to give -3 points if the condition for the "many dollars" is met
along with the condition you set for outgoing messages.

It is a lot of work and you get a very big rulebase you need to maintain
~ yourself. But technically you could make it work.

Hugo.

- --
hvdkooij at vanderkooij.org               http://hugo.vanderkooij.org/
PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc

	A: Yes.
	>Q: Are you sure?
	>>A: Because it reverses the logical flow of conversation.
	>>>Q: Why is top posting frowned upon?

Bored? Click on http://spamornot.org/ and rate those images.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFIDsPeBvzDRVjxmYERAh9fAJ9WkZtN2FnRgJAiFOWtmrjWYwocTgCgmtuR
q/qXQ6XkAM/vEmjrrXBYUrA=
=WTyt
-----END PGP SIGNATURE-----


More information about the MailScanner mailing list