6.0.0-alpha10
5/14/25

[#7231] Amavis LDAP backend for SAM
Summary Amavis LDAP backend for SAM
Queue Sam
Queue Version HEAD
Type Enhancement
State Accepted
Priority 1. Low
Owners Horde Developers (at)
Requester okelet (at) gmail (dot) com
Created 08/23/2008 (6108 days ago)
Due
Updated 11/05/2014 (3843 days ago)
Assigned 08/25/2008 (6106 days ago)
Resolved
Milestone
Patch Yes

History
10/05/2009 09:20:00 PM Jan Schneider State ⇒ Accepted
 
10/04/2009 04:20:41 PM okelet (at) gmail (dot) com Comment #8 Reply to this comment
Sorry, but I no longer use Horde, and I can't do any more modifications.
10/01/2009 10:05:39 PM Jan Schneider Comment #7 Reply to this comment
Ping?
08/18/2009 09:50:36 PM Jan Schneider Comment #6
State ⇒ Feedback
Reply to this comment
Are you going to update your patch with the suggestions that falon made?
09/17/2008 12:10:05 PM falon (at) csi (dot) it Comment #5 Reply to this comment
Testing this patch in my environment I also found what follow.



1) Net_LDAP2 is linked by horde only if I modify lib/core.php adding 
include_path written in php.ini:



line 33 of core.php - horde 3.2.2:



ini_set('include_path', ini_get('include_path') . ':' . 
dirname(__FILE__) . PATH_SEPARATOR . dirname(__FILE__) . '/../pear');





2) In "Level Options" of SAM "Spam Options", using web form, I can't 
set decimal values with '.'(dot), but only using separator 
','(commas). Unfortunately, amavisd-new accepts only values with '.', 
and not ','.
09/17/2008 09:19:12 AM falon (at) csi (dot) it Comment #4 Reply to this comment
Very useful!

I tried this patch, beautiful!



I notice this:

if I set every attribute in forms (spam options, whitelist, blacklist 
options), then when I reload the page I don't see any changes made.



It should be a pre-check that compile the form reading from LDAP 
attributes already set.
09/01/2008 03:05:22 AM Chuck Hagenbuch Deleted Original Message
 
08/31/2008 06:47:46 PM okelet (at) gmail (dot) com Comment #3
New Attachment: sam_amavisd_ldap.tar[1].gz Download
Reply to this comment
Hi



I have updated tar file:



- Modified driver, so it can manage now black and white lists correctly

- Updated amavis_ldap attributes.php and backends.php example 
configuration files; it now uses the most of the standard attributes 
yet defined (new attributes from dist: rewrite_sub, subject_tag, 
subject_tag2, hit_level, warn_virus_rcpt, warn_banned_rcpt, 
warn_header_rcpt, size_limit and reminder_freq)

- Updated spanish help file:

   - Modified subject_tag (this options adds the text when spam level 
is more than tag_level, different from subject_tag2)

   - Added subject_tag2 (this options adds the text when spam level is 
more than hit_level, different from subject_tag), warn_virus_rcpt, 
warn_banned_rcpt, warn_header_rcpt, size_limit, reminder_freq

- Updated spanish translation


08/25/2008 09:38:23 PM okelet (at) gmail (dot) com Comment #2 Reply to this comment
Please add this new attribute to attributes.php so the translation for 
the text will be available:



$_attributes['amavisReminderFrequency'] = array(

     'label' => _("Reminder frequency"),

     'type' => 'enum',

     'default' => 2,

     'required' => false,

     'params' => array(array(

           '' => _("Select Value:"),

           '1' => _("Daily"),

           '2' => _("Weekly"),

           '3' => _("Weekly + Daily"),

           '4' => _("Monthly"),

           '5' => _("Monthly + Daily"),

           '6' => _("Monthly + Weekly"),

           '7' => _("Monthly + Weekly + Daily"),

     )),

);



This is not a standard attribute from the Amavis LDAP schema, but 
could be useful for sending reminders to the users about the messages 
stored in the quarintine.


08/25/2008 12:08:44 PM Jan Schneider Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
 
08/24/2008 11:59:08 PM Chuck Hagenbuch Patch ⇒ Yes
 
08/23/2008 10:33:04 PM okelet (at) gmail (dot) com Comment #1
New Attachment: sam_amavisd_ldap.tar.gz
State ⇒ New
Patch ⇒ No
Milestone ⇒
Queue ⇒ Sam
Summary ⇒ Amavis LDAP backend for SAM
Type ⇒ Enhancement
Priority ⇒ 1. Low
Reply to this comment
SAM backend for options for Amavis stored in a LDAP server.



Not much flexible in the configuration, but working for me.



Attached tar.gz with driver, attributes file example and backend 
configuration example. Some new string should be added to *.po and 
translated. Please contact me to do this in spanish.



Regards.

Saved Queries