Koozali.org: home of the SME Server

DB keys name difference

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
DB keys name difference
« on: November 07, 2007, 01:51:10 AM »
I am searching and reading Gordon's SME developer guide, and I can't found.

What is the difference (and purpose) in keys name on the configuration db?
For example:

Quote
xxx=service|
yyy=interface|
zzz=configuration|

These names are static, or signify something? Can I choose another (your own)?
« Last Edit: November 07, 2007, 01:52:53 AM by Normando »

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: DB keys name difference
« Reply #1 on: November 07, 2007, 05:24:58 AM »
I don't know for sure, but I do know this:
* the 'masq' template fragments step through all keys named 'service' when looking for 'TCPPort', 'UDPPort', 'Allowhosts' and 'Denyhosts'.
* the ibay template fragments look for and process all 'ibay' keys
* the user directory template fragments look for and process all 'user' keys

I suspect that all pseudonym keys are processed when creating the various qmail and qpsmtpd config files.
I think local networks are identified and processed using a 'key'.

From this I assume that the general purpose of the keys is to allow common processing of similar items in the SME templating system.

Creating your own keys should not cause any problems (said the know-nothing non-programmer), but proper key selection will optimize the integration of your modifications with SME.

There are now several contribs that create their own entire databases (affa and webshare, to name two)


Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: DB keys name difference
« Reply #2 on: November 07, 2007, 07:14:57 AM »
Thank you for your reply mmccarn.

I think that there should be a guideline on the use of the names, like you say "...proper key selection will optimize the integration of your modifications with SME..."