[horde] [SOLVED] How can I setup sieve in Horde Groupware Webmail Edition 5.0.2?
"[SOLTECSIS] Carles Xavier Munyoz Baldó"
carles at unlimitedmail.org
Tue Dec 4 10:50:03 UTC 2012
Hi,
I have solved the problem using the hooks.php file:
[...]
public function transport_auth($driver)
{
switch ($driver) {
case 'timsieved':
// Example #2: Use IMP password/username.
$ob = $GLOBALS['registry']->call('mail/imapOb');
return array(
'euser' => $ob->getParam('username'),
'password' => $ob->getParam('password'),
'username' => $ob->getParam('username')
);
}
// DEFAULT: Use hordeauth (identical to not defining hook at all).
return true;
}
[...]
And this is my final backends.local.php:
[...]
<?php
$backends['imap']['disabled'] = true;
$backends['sieve']['disabled'] = false;
$backends['sieve'] = array(
'disabled' => false,
'transport' => 'timsieved',
'preferred' => '10.99.4.151',
'params' => array(
// Hostname of the timsieved server
'hostspec' => '10.99.4.151',
// Login type of the server
//'logintype' => 'PLAIN',
//'logintype' => 'CRAM-MD5',
'logintype' => 'DIGEST-MD5',
// Enable/disable TLS encryption
'usetls' => true,
// Port number of the timsieved server
'port' => 4190,
// Name of the sieve script
'scriptname' => 'ingo',
// Enable debugging. With Net_Sieve 1.2.0 or later, the sieve
protocol
// communication is logged with the DEBUG level. Earlier versions
// print the log to the screen.
'debug' => false,
),
'script' => 'sieve',
'scriptparams' => array(
// If using Dovecot or any other Sieve implementation that requires
// folder names to be UTF-8 encoded, set this parameter to true.
'utf8' => true,
),
'shares' => false
);
[...]
Best regards.
On 04/12/12 11:33, Simon Wilson wrote:
> ----- Message from "[SOLTECSIS] Carles Xavier Munyoz Baldó"
> <carles at unlimitedmail.org> ---------
> Date: Tue, 04 Dec 2012 10:18:31 +0100
> From: "[SOLTECSIS] Carles Xavier Munyoz Baldó"
> <carles at unlimitedmail.org>
> Subject: Re: [horde] How can I setup sieve in Horde Groupware Webmail
> Edition 5.0.2?
> To: horde at lists.horde.org
>
>
>> On 04/12/12 02:14, Simon Wilson wrote:
>>>>> This is the contents of my ingo/config/backends.local.php file:
>>>>> [...]
>>>>> <?php
>>>>> $backends['sieve'] = array(
>>>>> 'disabled' => false,
>>>>> 'transport' => 'timsieved',
>>>>> 'preferred' => '10.99.4.151',
>>>>> 'params' => array(
>>>>> // Hostname of the timsieved server
>>>>> 'hostspec' => '10.99.4.151',
>>>>> // Login type of the server
>>>>> //'logintype' => 'PLAIN',
>>>>> //'logintype' => 'CRAM-MD5',
>>>>> 'logintype' => 'DIGEST-MD5',
>>>>> // Enable/disable TLS encryption
>>>>> 'usetls' => true,
>>>>> // Port number of the timsieved server
>>>>> 'port' => 4190,
>>>>> // Name of the sieve script
>>>>> 'scriptname' => 'ingo',
>>>>> // Enable debugging. With Net_Sieve 1.2.0 or later, the sieve
>>>>> protocol
>>>>> // communication is logged with the DEBUG level. Earlier
>>>>> versions
>>>>> // print the log to the screen.
>>>>> 'debug' => false,
>>>>> ),
>>>>> 'script' => 'sieve',
>>>>> 'scriptparams' => array(
>>>>> // If using Dovecot or any other Sieve implementation that
>>>>> requires
>>>>> // folder names to be UTF-8 encoded, set this parameter to true.
>>>>> 'utf8' => false,
>>>>> ),
>>>>> 'shares' => false
>>>>> );
>>>>> [...]
>>>>>
>>>>> Is it correct?
>>>>>
>>>>> Best regards.
>>>>
>>>> Mine is as follows. Note that I was completely unable to get it
>>>> working with TLS on mine. Every other Horde app successfully uses TLS
>>>> for me, but Sieve just always point blank refused in my setup:
>>>>
>>>> <?php
>>>> $backends['imap']['disabled'] = true;
>>>> $backends['sieve']['disabled'] = false;
>>>> $backends['sieve'] = array(
>>>> 'disabled' => false,
>>>> 'transport' => 'timsieved',
>>>> 'hordeauth' => true,
>>>> 'params' => array(
>>>> 'hostspec' => 'server04.simonandkate.lan',
>>>> 'logintype' => 'PLAIN',
>>>> 'usetls' => false,
>>>> 'port' => 2000,
>>>> 'scriptname' => 'ingo',
>>>> 'debug' => true,
>>>> ),
>>>> 'script' => 'sieve',
>>>> 'scriptparams' => array(
>>>> 'utf8' => false,
>>>> ),
>>>> 'shares' => false
>>>> );
>>>>
>>>> Simon
>>>
>>> From just doing some re-reading around the 'net it appears that Sieve
>>> TLS in cyrus-imapd is broken, and I think fixed in 2.3.10 (happy for
>>> anyone else to chip in here!). My CentOS 5.8 mail server runs
>>> cyrus-imapd 2.3.7, and things fail when you try and access sieve
>>> using TLS.
>>>
>>> Which IMAP server are you using? What version?
>>>
>>> Simon
>>
>> Hello,
>> Now I get communication with Cyrus Sieve daemon, but I have problems
>> with the authentication.
>> I always get the error of authentication failure.
>> I'm using Cyrus 2.4.12.
>>
>> Thie is my ingo/config/backends.local.php file now:
>> [...]
>> <?php
>> $backends['imap']['disabled'] = true;
>> $backends['sieve']['disabled'] = false;
>> $backends['sieve'] = array(
>> 'disabled' => false,
>> 'transport' => 'timsieved',
>> 'preferred' => '10.99.4.151',
>> 'hordeauth' => false,
>> 'params' => array(
>> // Hostname of the timsieved server
>> 'hostspec' => '10.99.4.151',
>> // Login type of the server
>> 'logintype' => 'PLAIN',
>> //'logintype' => 'CRAM-MD5',
>> //'logintype' => 'DIGEST-MD5',
>> // Enable/disable TLS encryption
>> 'usetls' => false,
>> // Port number of the timsieved server
>> 'port' => 4190,
>> // Name of the sieve script
>> 'scriptname' => 'ingo',
>> // Enable debugging. With Net_Sieve 1.2.0 or later, the sieve
>> protocol
>> // communication is logged with the DEBUG level. Earlier versions
>> // print the log to the screen.
>> 'debug' => false,
>> ),
>> 'script' => 'sieve',
>> 'scriptparams' => array(
>> // If using Dovecot or any other Sieve implementation that
>> requires
>> // folder names to be UTF-8 encoded, set this parameter to true.
>> 'utf8' => true,
>> ),
>> 'shares' => false
>> );
>> [...]
>>
>> May someone help?
>>
>> Best regards.
>>
>>
>>
>
> Is there any useful information in the maillog from cyrus? How do you
> have cyrus auth setup? Can you auth to Cyrus any other way, i.e. IMAP?
>
> Simon
>
>
--
Saludos.
========================================
SOLTECSIS SOLUCIONES TECNOLOGICAS, S.L.
Carles Xavier Munyoz Baldó
Departamento de Tecnología
Tel./Fax: 966 446 046
cmunyoz at soltecsis.com
www.soltecsis.com
========================================
---
La información contenida en este e-mail es confidencial,
siendo para uso exclusivo del destinatario arriba mencionado.
Le informamos que está totalmente prohibida cualquier
utilización, divulgación, distribución y/o reproducción de
esta comunicación sin autorización expresa en virtud de la
legislación vigente. Si ha recibido este mensaje por error,
le rogamos nos lo notifique inmediatamente por la misma vía
y proceda a su eliminación.
---
More information about the horde
mailing list