[Mimedefang] how can i change the required score in spamassassin in a mimedefang script?
t.schmidt at phoenixsoftware.de
Wed Feb 3 04:13:48 EST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Am 2010-02-02 18:21 schrieb ml ml:
> What i am trying to do now is to get the required spamassassin score per domain.
> Here is my code:
> http://pastebin.com/m690faaa2 (ok, this is a terrible
> proof-of-concept code, but it does its job so far for testing)
> It look, that's its actually working, although the spam report keeps
> talking about the required default score of 5, which is definitely not
> being used.
What do you expect? SpamAssassin has no way of knowing the required
score value you are retrieving from LDAP in MIMEDefang.
More precisely, the required score value is configured in SpamAssassin
(specifically, /etc/mail/sa-mimedefang.cf) and reported back to
MIMEDefang in the 2nd element of the result vector. By the time you
replace $req by the value retrieved from LDAP, SpamAssassin has already
done its work and written the report.
So either you devise a way of passing your LDAP value into SpamAssassin
for inclusion in the report, or you generate your own report in MIMEDefang.
Phoenix Software GmbH
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
More information about the MIMEDefang