-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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. HTH Tilman - -- Tilman Schmidt Phoenix Software GmbH Bonn, Germany -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAktpPkwACgkQ780oymN0g8NBZgCePJh3t76QX4V4W4jGGEB8eY2D uH8AoIEpN9j0gFHwQTxO8deVFZUFwfnp =Ko4Y -----END PGP SIGNATURE----- _______________________________________________ NOTE: If there is a disclaimer or other legal boilerplate in the above message, it is NULL AND VOID. You may ignore it. Visit http://www.mimedefang.org and http://www.roaringpenguin.com MIMEDefang mailing list [email protected] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

