Ekkehard,

> we have a larger installation of postfix with amavisd-new as a content
> filter. Settings for all users are stored in LDAP.
> There is a web frontend where users can manage the sensitivity of the spam
> filter as well as manage black-/whitelisting.
>
> The problem ist that the users, depending on their email client, have no
> easy access to the envelope sender of an email. Since amavisd-new
> blacklisting operates on the envelope sender only it is hard for the user
> to maintain their lists.
>
> Is there a way of passing info from the LDAP lookups down to spamassassin
> which then operates on the header information. Or do we have to sync the
> black and whitelisting info with a mysql server.

I don't see an easy way to interface SpamAssassin blacklisting to LDAP.

You could use the following hack to amavisd-new 2.5.2, it changes the
white- and blacklisting to work on author's address ('From' address
in a header), instead of taking the envelope sending address:


--- amavisd.orig        Wed Jun 27 12:43:00 2007
+++ amavisd     Thu Nov 29 17:26:49 2007
@@ -17479,5 +17479,7 @@
   my($conn,$msginfo,$sql_wblist,$user_id_sql,$ldap_policy) = @_;
   my($any_w)=0; my($any_b)=0; my($all)=1; my($wr,$br);
-  my($sender) = $msginfo->sender;
+# my($sender) = $msginfo->sender;
+  my(@rfc2822_from) = do { my $f = $msginfo->rfc2822_from; ref $f ? @$f : $f };
+  my($sender) = $rfc2822_from[0];
   do_log(4,"wbl: checking sender <%s>", $sender);
   for my $r (@{$msginfo->per_recip_data}) {  # for each recipient


Mark

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to