[Kolab-devel] gunnar: server/kolab-filter/filter config.php, 1.3, 1.4 kolabfilter.php, 1.2, 1.3 kolabmailboxfilter.php, 1.2, 1.3

Gunnar Wrobel wrobel at pardus.de
Thu Nov 29 11:25:12 CET 2007


Richard Bos <richard at radoeka.nl> writes:

> Hi Gunnar,
>
> Op Monday 26 November 2007 21:15:16 schreef Gunnar Wrobel:
>> > I'm a bit confused about the config files, that define more or less the
>> > same variables.
>> >
>> > At the end of server/kolab-filter/filter config.php is stated:
>> >
>> > // In order to check if both are in sync:
>> > //
>> > // cd server
>> > // diff -Nau kolab-filter/filter/config.php
>> > kolabd/kolabd/templates/resmgr.conf.template.in
>> >
>> > If one performs that diff, it is rather big, I think to big and it makes
>> > it hard to judge whether they are sync or not.  Especially now params has
>> > been changed to conf.
>> > Is it possible to merge the 2 files, or let kolab-filter use the resmgr
>> > config file?
>>
>> I'll merge them tomorrow when I'm doing the installation testing. This
>> was just my commit for today. I'm currently a little bit in a hurry to
>> get things done before the next release and that's why this is a
>> partially sloppy commit. But thanks for reminding me to not do such
>> things since I am no fan of breaking CVS either. So I should try to
>> stick to my own standards
>
> it's in sync again, but why the differences, for example:
> --- kolab-filter/filter/config.php      2007-11-29 09:27:19.000000000 +0100
> +++ kolabd/kolabd/templates/resmgr.conf.template.in     2007-11-29 
> 09:27:18.000000000 +0100
> .........................
> @@ -37,7 +42,7 @@
>  $conf = array();
>
>  /* Cyrus server connection string */
> -$conf['filter']['imap_server'] = 'localhost';
> +$conf['filter']['imap_server'] = '@@@connect_addr@@@';
>
>  /* LMTP settings (Cyrus IMAPd usually offers LMTP on port 2003) */
>  $conf['filter']['lmpt_host'] = $conf['filter']['imap_server'];
> @@ -46,20 +51,20 @@
>  /* SMTP settings (Kolab Postfix usually offers reinjection port on
>   * 10025)
>   */
> -$conf['filter']['smpt_host'] = 'localhost';
> +$conf['filter']['smpt_host'] = '@@@local_addr@@@';
>  $conf['filter']['smpt_port'] = 10025;
>
>  /* Local IP address of the mailserver for bypassing content filters */
> -$conf['filter']['local_addr'] = 'localhost';
> +$conf['filter']['local_addr'] = '@@@local_addr@@@';
>
>  /* What is our default mail domain? This is used if any users do not
>   * have '@domain' specified after their username as part of their
>   * email address.
>   */
> -$conf['filter']['email_domain'] = 'example.com';
> +$conf['filter']['email_domain'] = '@@@postfix-mydomain@@@';
>
>  /* List of kolab hosts that are privileged */
> -$conf['filter']['kolabhosts'] 
> = 'one.example.com,two.example.com,three.example.com';
> +$conf['filter']['kolabhosts'] = '@@@kolabhost|join(,)@@@';
>
>  /* Are we using virtual domains with Cyrus? */
>  $conf['filter']['virtual_domains'] = true;
>
>
>
> In which file is filter/config.php used (I could not find it, in the modules I 
> have checked out)?

In both kolabfilter.php and kolabmailboxfilter.php you'll find this
line:

/* Read our configuration */
require_once 'config.php';

> It looks like filter/config.php is used as to determine default
> values that are shown to a user on a for example a configuration
> webpage.

The "@@@variable@@@" is solely used in Kolab templates and I won't add
these to the dummy config.php in kolab-filter/filter.

Of course the config.php in kolab-filter/filter get's ultimately
rewritten with the template contents but that only happens on a Kolab
Server.

If we desire to distribute source packages these should be clean
source packages and not tainted by some very specific Kolab concepts.

Let's assume somebody else is interested in the Kolab specific
resource management and the corresponding postfix filters provided
with kolab-filter. That person would download the package and look at
the configuration file and would probably wonder about the "@@@"
stuff. Without a Kolab server these do not make much sense but the
package itself does.

Cheers,

Gunnar

-- 
______ http://kdab.com _______________ http://kolab-konsortium.com _

p at rdus Kolab work is funded in part by KDAB and the Kolab Konsortium

____ http://www.pardus.de _________________ http://gunnarwrobel.de _
E-mail : p at rdus.de                                 Dr. Gunnar Wrobel
Tel.   : +49 40 432 72335                           Bundesstrasse 29
Fax    : +49 40 432 70855                            D-20146 Hamburg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   >> Mail at ease - Rent a kolab groupware server at p at rdus <<                 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




More information about the devel mailing list