> | For incoming email I have dspam doing externallookups using zimbra's > | ldap - great for making sure you keep all training per account + all > | it's aliases. > | > > Ahhh ok here we go - this is the essential part of your setup > till now i dont see a reason todo all this on the zimbra gateway machine, > well > the ldap lookup is the criticial part to get real userbased behave > > can you kindly post your dspam config to make the ldap lookups?
I use an unconventional method using the extlookup.conf's ExtLookupDriver "program". I use this because I don't just query our zimbra ldap server but also a mysql db (we sympa running for our lists). That said I did test the "ldap" ExtLookupDriver with some other parameters before resorting to a custom script. What will probably work for you is something like this (note I have not tested this config myself): ----------------------------------------------------------------------------- ExtLookup on # Turns on/off external lookup ExtLookupMode strict # available modes are 'verify', 'map' and 'strict'. # 'strict' enforces both verify and map ExtLookupDriver ldap # Currently only ldap and program are supported. # There are plans to support both MySQL and Postgres. ExtLookupServer zimbra.example.com # Can either be a database hostname or the full path to # an executable lookup program and its arguments. ExtLookupPort 389 # Desired port when connecting to the lookup database. ExtLookupDB "" # Can either be an LDAP search base or a database name (TODO). ExtLookupQuery "(mail=%u)" # Can either be an LDAP search filter or an SQL query (TODO) ExtLookupLDAPAttribute "zimbraMailDeliveryAddress" # Attribute to be used when ExtLookupDriver is 'ldap'i # and ExtLookupMode 'map' or 'strict' ExtLookupLDAPScope sub # Can be set to 'base', 'sub' or 'one'. Only used when ExtLookupDriver is 'ldap'. ExtLookupLDAPVersion 3 # Sets the LDAP protocol version (1, 2 or 3) ExtLookupLogin "uid=zimbra,cn=admins,cn=zimbra" # Login to be used when connecting to any direct database backend. ExtLookupPassword XXXXXXXX # Password to use with ExtLookupLogin. ----------------------------------------------------------------------------- Its important to note that /opt/zimbra/conf/ldap-vmm.cf on your zimbra machine should give you the clues you need here. -- Garith Dugmore Senior System Administrator South African Astronomical Observatory and Southern African Large Telescope ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Dspam-user mailing list Dspam-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-user