[sork] Re: R: Re: R: account, vacation and other...

Christian Affolter caffolter at purplehaze.ch
Thu Apr 7 07:33:37 PDT 2005


> At the beginning, i try to use ldapvacation programm but it works only
> on BSD. So, i installed gnarwl and i saw there was a specific schema to
> used (ISPEnv2.schema). I included it in my slapd.conf and modified the
> following files consequently:
> 
> * in /var/www/html/webmail/horde/vacation/config/conf.php
> $conf['vacation']['path'] = '/usr/local/gnarwl/bin/gnarwl';
The path above isn't necessary. Because you're going to use LDAP, horde
doesn't need to interact with your vacation program, it's the job of
your MTA/MDA (in your case sendmail).

> $conf['server']['params']['default']['vacation'] = 'vacationInfo';
> $conf['server']['params']['default']['active'] = 'vacationActive';
> $conf['server']['params']['default']['enabled'] = 'TRUE';
> $conf['server']['params']['default']['disabled'] = 'FALSE';
This looks good.

> * in /var/www/html/webmail/horde/vacation/lib/Driver.php to put TRUE
> instead of Y:
> // Check vacation flag.
>       if ($current_details['vacation'] === 'TRUE' ||
>           $current_details['vacation'] === 
> $this->params[$realm]['enabled']){
>           return 'TRUE';
>       } elseif ($current_details['vacation'] === 'FALSE' ||
>                 $current_details['vacation'] ===
> $this->params[$realm]['disabled']) {
>           return 'FALSE';
>       } else {
>           return false;
>       }
There's no need to change those line. You've specified
$this->params[$realm]['enabled'] and $this->params[$realm]['disabled']
in your config above (TRUE/FALSE). I left the 'Y' and 'N' values there
for backwards compatibility with other drivers.


> Did someone already integrate gnarwl into sendmail?
I can't help you on this since I'm using postfix. You need to figure out
how you can add an alias in the following form:
user at example.org -> user at example.org, user at exmaple.org@autoreply.example.org
(replace @autoreply.example.org with your dedicated autoreply transport
domain)
All mails which are going to autoreply.example.org should be handed over
to gnarwl.

> N.B: I join my gnarwl.conf

> # If outgoing mail may contain non ASCII characters, specify your locale 
> # charset here for character conversion. Check iconv(1) for allowed values.
> # Leave blank to disable this feature.
> charset ISO8859-1
I figured out, that it's easier to disable this feature (leave it blank)
and use UTF-8 encoding for all mails. For this to work you need to
modify the header.txt (see below).

> # The contents of this textfile are pasted in front of each outgoing mail.
> forceheader /usr/local/gnarwl/var/lib/gnarwl/header.txt
For the UTF-8 encoding to work properly you need to add the following
header to this file:
Content-Type: text/plain; charset=UTF-8; format=flowed
instead of:
Content-Type: text/plain

hope this helps...
Christian


More information about the sork mailing list