Advertisement
Guest User

Untitled

a guest
May 4th, 2012
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. # --- ExtLookup ---
  2.  
  3. # ExtLookup: Perform various external lookup functions depending on user-
  4. # defined variables. ExtLookup can either be set to 'on' or 'off'. The
  5. # behavior of such lookups are defined by the use of ExtLookupMode, which
  6. # can be set to 'verify', 'map' and 'strict'.
  7. #
  8. # verify Will cause dspam to validate the user, prior to
  9. # creating the user entry in the system.
  10. #
  11. # map Will cause dspam to try to map the user address
  12. # to a certain unique identifier.
  13. #
  14. # strict Will cause dspam to enforce both 'verify' and 'map'.
  15. #
  16. # ExtLookupDriver will set the engine behind the lookups. For now the only
  17. # supported mechanisms are 'ldap' and 'program'. The first will make dspam
  18. # talk directly to the configured LDAP server. The second will prefrom the
  19. # various lookup functions by running a certain binary program or executable
  20. # script. The program MUST be a binary executable or a script with a well
  21. # defined interperter in its first line ( #!/path/to/interpreter ). There
  22. # are plans to support TLS/SSL connections to backend databases.
  23. #
  24. #ExtLookup on # Turns on/off external lookup
  25. #ExtLookupMode strict # available modes are 'verify', 'map' and 'strict'.
  26. # 'strict' enforces both verify and map
  27. #ExtLookupDriver ldap # Currently only ldap and program are supported.
  28. # There are plans to support both MySQL and Postgres.
  29. #ExtLookupServer ldap.domain.com # Can either be a database hostname or the full path to
  30. # an executable lookup program and its arguments.
  31. #ExtLookupPort 389 # Desired port when connecting to the lookup database.
  32. #ExtLookupDB "ou=Users,dc=domain,dc=com" # Can either be an LDAP search base or a database name (TODO).
  33. #ExtLookupQuery "(&(objectClass=qmailUser)(|(mail=%u)(mailAlternateAddress=%u)))" # Can either be an LDAP search filter or an SQL query (TODO)
  34. #ExtLookupLDAPAttribute "mail" # Attribute to be used when ExtLookupDriver is 'ldap'
  35. # and ExtLookupMode 'map' or 'strict'
  36. #ExtLookupLDAPScope sub # Can be set to 'base', 'sub' or 'one'. Only used when ExtLookupDriver is 'ldap'.
  37. #ExtLookupLDAPVersion 3 # Sets the LDAP protocol version (1, 2 or 3)
  38. #ExtLookupLogin "cn=admin,dc=domain,dc=com" # Login to be used when connecting to any direct database backend.
  39. #ExtLookupPassword itsasecret # Password to use with ExtLookupLogin.
  40. #ExtLookupCrypto tls # Sets the use of TLS on backend communication (only compatible with LDAPv3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement